Package org.jumpmind.db.sql
Interface ISqlTransaction
- All Known Implementing Classes:
AseJdbcSqlTransaction
,CassandraSqlTransaction
,H2JdbcSqlTransaction
,JdbcSqlTransaction
,MsSqlJdbcSqlTransaction
public interface ISqlTransaction
-
Method Summary
Modifier and TypeMethodDescription<T> int
void
void
allowInsertIntoAutoIncrementColumns
(boolean value, Table table, String quote, String catalogSeparator, String schemaSeparator) Indicate that the current session is to allow updates to columns that have been marked as auto increment.void
void
close()
void
commit()
int
int
flush()
<T> List<T>
getUnflushedMarkers
(boolean clear) long
insertWithGeneratedKey
(String sql, String column, String sequenceName, Object[] args, int[] types) boolean
boolean
void
Each time the SQL changes it needs to be submitted for preparationint
prepareAndExecute
(String sql, Object... args) int
prepareAndExecute
(String sql, Object[] args, int[] types) int
prepareAndExecute
(String sql, Map<String, Object> args) <T> List<T>
query
(String sql, ISqlRowMapper<T> mapper, Object[] args, int[] types) <T> List<T>
int
queryForInt
(String sql, Object... args) long
queryForLong
(String sql, Object... args) <T> T
queryForObject
(String sql, Class<T> clazz, Object... args) queryForRow
(String sql, Object... args) void
rollback()
void
setInBatchMode
(boolean batchMode)
-
Method Details
-
addSqlTransactionListener
-
isInBatchMode
boolean isInBatchMode() -
setInBatchMode
void setInBatchMode(boolean batchMode) -
queryForObject
-
queryForRow
-
queryForInt
-
queryForLong
-
execute
-
prepareAndExecute
-
prepareAndExecute
-
prepareAndExecute
-
query
-
query
-
commit
void commit() -
rollback
void rollback() -
close
void close() -
prepare
Each time the SQL changes it needs to be submitted for preparation -
addRow
-
flush
int flush() -
getUnflushedMarkers
-
allowInsertIntoAutoIncrementColumns
void allowInsertIntoAutoIncrementColumns(boolean value, Table table, String quote, String catalogSeparator, String schemaSeparator) Indicate that the current session is to allow updates to columns that have been marked as auto increment. This is specific to SQL Server. -
isAllowInsertIntoAutoIncrement
boolean isAllowInsertIntoAutoIncrement() -
insertWithGeneratedKey
-
clearBatch
void clearBatch()
-