Package net.sf.jkniv.whinstone.commands
Class NoCommand
- java.lang.Object
-
- net.sf.jkniv.whinstone.commands.NoCommand
-
-
Constructor Summary
Constructors Constructor Description NoCommand()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Texecute()Execute the database statement could be aCommandor aQuerystatic CommandgetInstance()Commandwith(net.sf.jkniv.exception.HandleableException handleableException)Configure the handler exception for the commandCommandwith(CommandHandler commandHandler)Configure the life-cycle of command<T> Commandwith(T stmt)The statement to run this command
-
-
-
Method Detail
-
getInstance
public static Command getInstance()
-
with
public Command with(net.sf.jkniv.exception.HandleableException handleableException)
Description copied from interface:CommandConfigure the handler exception for the command
-
with
public Command with(CommandHandler commandHandler)
Description copied from interface:CommandConfigure the life-cycle of command
-
execute
public <T> T execute()
Description copied from interface:CommandExecute the database statement could be aCommandor aQuery
-
with
public <T> Command with(T stmt)
Description copied from interface:CommandThe statement to run this command- Specified by:
within interfaceCommand- Type Parameters:
T- Type responsible to execute the statement into database. For example:Statementfor JDBC or Cassandra,EntityManagerfor JPA,bucketfor Couchbase etc- Parameters:
stmt- a statement implementation to run the command.- Returns:
- a reference to this object.
-
-