| Constructor and Description |
|---|
NoCommand() |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
execute()
Execute the database statement could be a
Command or a Query |
static Command |
getInstance() |
Command |
with(CommandHandler commandHandler)
Configure the life-cycle of command
|
Command |
with(HandleableException handleableException)
Configure the handler exception for the command
|
<T> Command |
with(T stmt)
The statement to run this command
|
public NoCommand()
public static Command getInstance()
public Command with(HandleableException handleableException)
Commandpublic Command with(CommandHandler commandHandler)
Commandpublic <T> T execute()
CommandCommand or a Querypublic <T> Command with(T stmt)
Commandwith in interface CommandT - Type responsible to execute the statement into database.
For example: Statement for JDBC or Cassandra, EntityManager for JPA,
bucket for Couchbase etcstmt - a statement implementation to run the command.Copyright © 2012–2020 jkniv, copyleft code. All rights reserved.