public class BulkJpaCommand extends Object implements Command
| Modifier and Type | Field and Description |
|---|---|
protected CommandHandler |
commandHandler |
protected HandleableException |
handlerException |
protected Queryable |
queryable |
protected StatementAdapter<?,ResultSet> |
stmt |
| Constructor and Description |
|---|
BulkJpaCommand(Queryable queryable,
Connection conn) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
execute()
Execute the database statement could be a
Command or a Query |
Command |
with(CommandHandler commandHandler)
Configure the life-cycle of command
|
Command |
with(HandleableException handlerException)
Configure the handler exception for the command
|
<T> Command |
with(T stmt)
The statement to run this command
|
protected HandleableException handlerException
protected CommandHandler commandHandler
protected StatementAdapter<?,ResultSet> stmt
public BulkJpaCommand(Queryable queryable, Connection conn)
public <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.public <T> T execute()
CommandCommand or a Querypublic Command with(HandleableException handlerException)
CommandCopyright © 2012–2020 jkniv, copyleft code. All rights reserved.