|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jenkov.mrpersister.impl.command.DaoCommandExecutorUnchecked
public class DaoCommandExecutorUnchecked
Field Summary | |
---|---|
protected PersistenceManager |
persistenceManager
|
Constructor Summary | |
---|---|
DaoCommandExecutorUnchecked(PersistenceManager manager)
|
Method Summary | |
---|---|
java.lang.Object |
execute(IDaoCommand command)
Obtains a connection from the default data source, executes this dao command and closes the connection afterwards. |
java.lang.Object |
execute(IDaoCommand command,
java.sql.Connection connection)
Executes this dao command using the given connection, and closes the connection afterwards. |
java.lang.Object |
execute(java.lang.Object configKey,
IDaoCommand command)
Obtains a connection from the data source set on the IPersistenceConfiguration stored by the given configKey (in the persistence managers config factory), executes this dao command and closes the connection afterwards. |
java.lang.Object |
execute(java.lang.Object configKey,
IDaoCommand command,
java.sql.Connection connection)
Executes this dao command using the given connection and persistence configuration stored by the given config key, and closes the connection afterwards. |
java.lang.Object |
executeTransaction(IDaoCommand command)
Obtains a connection from the default data source, sets auto commit to false, executes the dao command and tries to commit the transaction. |
java.lang.Object |
executeTransaction(IDaoCommand command,
java.sql.Connection connection)
Executes the dao command using the given connection, and tries to commit the transaction. |
java.lang.Object |
executeTransaction(java.lang.Object config,
IDaoCommand command)
Obtains a connection from the data source set on the IPersistenceConfiguration stored by the given configKey (in the persistence managers config factory), sets auto commit to false, executes the dao command and tries to commit the transaction. |
java.lang.Object |
executeTransaction(java.lang.Object config,
IDaoCommand command,
java.sql.Connection connection)
Executes the dao command using the given connection, and tries to commit the transaction. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected PersistenceManager persistenceManager
Constructor Detail |
---|
public DaoCommandExecutorUnchecked(PersistenceManager manager)
Method Detail |
---|
public java.lang.Object execute(IDaoCommand command)
IDaoCommandExecutorUnchecked
execute
in interface IDaoCommandExecutorUnchecked
command
- The dao command to execute.
public java.lang.Object execute(IDaoCommand command, java.sql.Connection connection)
IDaoCommandExecutorUnchecked
execute
in interface IDaoCommandExecutorUnchecked
command
- The dao command to execute.connection
- The connection the dao command uses during execution.
public java.lang.Object execute(java.lang.Object configKey, IDaoCommand command)
IDaoCommandExecutorUnchecked
execute
in interface IDaoCommandExecutorUnchecked
configKey
- The key of the IPersistenceConfiguration to get the data source from.command
- The dao command to execute.
public java.lang.Object execute(java.lang.Object configKey, IDaoCommand command, java.sql.Connection connection)
IDaoCommandExecutorUnchecked
execute
in interface IDaoCommandExecutorUnchecked
configKey
- The key of the IPersistenceConfiguration to get the data source from.command
- The dao command to execute.connection
- The connection the dao command uses during execution.
public java.lang.Object executeTransaction(IDaoCommand command)
IDaoCommandExecutorUnchecked
executeTransaction
in interface IDaoCommandExecutorUnchecked
public java.lang.Object executeTransaction(IDaoCommand command, java.sql.Connection connection)
IDaoCommandExecutorUnchecked
executeTransaction
in interface IDaoCommandExecutorUnchecked
command
- The command to execute.connection
- The connection the dao command uses during execution.
public java.lang.Object executeTransaction(java.lang.Object config, IDaoCommand command)
IDaoCommandExecutorUnchecked
executeTransaction
in interface IDaoCommandExecutorUnchecked
command
- The command to execute.
public java.lang.Object executeTransaction(java.lang.Object config, IDaoCommand command, java.sql.Connection connection)
IDaoCommandExecutorUnchecked
executeTransaction
in interface IDaoCommandExecutorUnchecked
command
- The command to execute.connection
- The connection the dao command uses during execution.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |