public class SQLSessionImpl extends Object implements br.com.anteros.persistence.session.SQLSession
| Modifier and Type | Field and Description |
|---|---|
static int |
FIRST_RECORD |
| Constructor and Description |
|---|
SQLSessionImpl(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory,
Connection connection,
br.com.anteros.persistence.metadata.EntityCacheManager entityCacheManager,
br.com.anteros.persistence.session.query.AbstractSQLRunner queryRunner,
br.com.anteros.persistence.sql.dialect.DatabaseDialect dialect,
br.com.anteros.persistence.session.query.ShowSQLType[] showSql,
boolean formatSql,
int queryTimeout,
int lockTimeout,
br.com.anteros.persistence.transaction.TransactionFactory transactionFactory,
int batchSize,
boolean validationActive) |
| Modifier and Type | Method and Description |
|---|---|
void |
activateValidation() |
void |
addListener(br.com.anteros.persistence.session.SQLSessionListener listener) |
String |
applyLock(String sql,
Class<?> resultClass,
br.com.anteros.persistence.session.lock.LockOptions lockOptions) |
int[] |
batch(String sql,
Object[][] params) |
void |
batchSize(int batchSize) |
void |
clear() |
String |
clientId() |
<T> T |
cloneEntityManaged(Object object) |
void |
close() |
<T> br.com.anteros.persistence.metadata.identifier.Identifier<T> |
createIdentifier(Class<T> clazz) |
br.com.anteros.persistence.session.query.SQLQuery |
createNamedQuery(String name) |
<T> br.com.anteros.persistence.session.query.TypedSQLQuery<T> |
createNamedQuery(String name,
Class<T> resultClass) |
<T> br.com.anteros.persistence.session.query.TypedSQLQuery<T> |
createNamedQuery(String name,
Class<T> resultClass,
Object parameters) |
br.com.anteros.persistence.session.query.SQLQuery |
createNamedQuery(String name,
Object parameters) |
br.com.anteros.persistence.handler.EntityHandler |
createNewEntityHandler(Class<?> resultClass,
List<br.com.anteros.persistence.session.query.ExpressionFieldMapper> expressionsFieldMapper,
Map<br.com.anteros.persistence.session.query.SQLQueryAnalyserAlias,Map<String,String[]>> columnAliases,
br.com.anteros.persistence.session.cache.Cache transactionCache,
boolean allowDuplicateObjects,
Object objectToRefresh,
int firstResult,
int maxResults,
boolean readOnly,
br.com.anteros.persistence.session.lock.LockOptions lockOptions) |
br.com.anteros.persistence.session.query.SQLQuery |
createQuery(String sql) |
<T> br.com.anteros.persistence.session.query.TypedSQLQuery<T> |
createQuery(String sql,
Class<T> resultClass) |
<T> br.com.anteros.persistence.session.query.TypedSQLQuery<T> |
createQuery(String sql,
Class<T> resultClass,
br.com.anteros.persistence.session.lock.LockOptions lockOptions) |
<T> br.com.anteros.persistence.session.query.TypedSQLQuery<T> |
createQuery(String sql,
Class<T> resultClass,
Object parameters) |
<T> br.com.anteros.persistence.session.query.TypedSQLQuery<T> |
createQuery(String sql,
Class<T> resultClass,
Object parameters,
br.com.anteros.persistence.session.lock.LockOptions lockOptions) |
br.com.anteros.persistence.session.query.SQLQuery |
createQuery(String sql,
br.com.anteros.persistence.session.lock.LockOptions lockOptions) |
br.com.anteros.persistence.session.query.SQLQuery |
createQuery(String sql,
Object parameters) |
br.com.anteros.persistence.session.query.SQLQuery |
createQuery(String sql,
Object parameters,
br.com.anteros.persistence.session.lock.LockOptions lockOptions) |
br.com.anteros.persistence.session.query.SQLQuery |
createStoredProcedureNamedQuery(String name) |
<T> br.com.anteros.persistence.session.query.TypedSQLQuery<T> |
createStoredProcedureNamedQuery(String name,
Class<T> resultClass) |
<T> br.com.anteros.persistence.session.query.TypedSQLQuery<T> |
createStoredProcedureNamedQuery(String name,
Class<T> resultClass,
Object[] parameters) |
br.com.anteros.persistence.session.query.SQLQuery |
createStoredProcedureNamedQuery(String name,
Object parameters) |
br.com.anteros.persistence.session.query.SQLQuery |
createStoredProcedureQuery(String procedureName,
br.com.anteros.persistence.metadata.annotation.type.CallableType type) |
<T> br.com.anteros.persistence.session.query.TypedSQLQuery<T> |
createStoredProcedureQuery(String procedureName,
br.com.anteros.persistence.metadata.annotation.type.CallableType type,
Class<T> resultClass) |
<T> br.com.anteros.persistence.session.query.TypedSQLQuery<T> |
createStoredProcedureQuery(String procedureName,
br.com.anteros.persistence.metadata.annotation.type.CallableType type,
Class<T> resultClass,
Object[] parameters) |
br.com.anteros.persistence.session.query.SQLQuery |
createStoredProcedureQuery(String procedureName,
br.com.anteros.persistence.metadata.annotation.type.CallableType type,
Object parameters) |
void |
deactivateValidation() |
void |
detach(Object entity) |
void |
disablelockOptions() |
void |
enablelockOptions() |
protected void |
errorIfClosed() |
void |
evict(Class object) |
void |
evictAll() |
void |
executeDDL(String ddl) |
protected void |
finalize() |
<T> T |
find(Class<T> entityClass,
Object primaryKey) |
<T> T |
find(Class<T> entityClass,
Object id,
boolean readOnly) |
<T> T |
find(Class<T> entityClass,
Object primaryKey,
br.com.anteros.persistence.session.lock.LockOptions lockOptions) |
<T> T |
find(Class<T> entityClass,
Object id,
br.com.anteros.persistence.session.lock.LockOptions lockOptions,
boolean readOnly) |
<T> T |
find(Class<T> entityClass,
Object primaryKey,
br.com.anteros.persistence.session.lock.LockOptions lockOptions,
Map<String,Object> properties) |
<T> T |
find(Class<T> entityClass,
Object id,
br.com.anteros.persistence.session.lock.LockOptions lockOptions,
Map<String,Object> properties,
boolean readOnly) |
<T> T |
find(Class<T> entityClass,
Object primaryKey,
Map<String,Object> properties) |
<T> T |
find(Class<T> entityClass,
Object id,
Map<String,Object> properties,
boolean readOnly) |
<T> T |
find(br.com.anteros.persistence.metadata.identifier.Identifier<T> id) |
<T> T |
find(br.com.anteros.persistence.metadata.identifier.Identifier<T> id,
boolean readOnly) |
<T> T |
find(br.com.anteros.persistence.metadata.identifier.Identifier<T> id,
br.com.anteros.persistence.session.lock.LockOptions lockOptions) |
<T> T |
find(br.com.anteros.persistence.metadata.identifier.Identifier<T> id,
br.com.anteros.persistence.session.lock.LockOptions lockOptions,
boolean readOnly) |
<T> T |
find(br.com.anteros.persistence.metadata.identifier.Identifier<T> id,
Map<String,Object> properties) |
<T> T |
find(br.com.anteros.persistence.metadata.identifier.Identifier<T> id,
Map<String,Object> properties,
boolean readOnly) |
<T> T |
find(br.com.anteros.persistence.metadata.identifier.Identifier<T> id,
Map<String,Object> properties,
br.com.anteros.persistence.session.lock.LockOptions lockOptions) |
<T> T |
find(br.com.anteros.persistence.metadata.identifier.Identifier<T> id,
Map<String,Object> properties,
br.com.anteros.persistence.session.lock.LockOptions lockOptions,
boolean readOnly) |
void |
flush() |
void |
forceFlush(Set<String> tableNames) |
void |
forceGenerationIdentifier(Object entity) |
int |
getBatchSize() |
Map<Object,Map<br.com.anteros.persistence.metadata.descriptor.DescriptionColumn,br.com.anteros.persistence.metadata.identifier.IdentifierPostInsert>> |
getCacheIdentifier() |
String |
getClientInfo() |
List<br.com.anteros.persistence.sql.command.CommandSQL> |
getCommandQueue() |
Connection |
getConnection() |
br.com.anteros.persistence.sql.dialect.DatabaseDialect |
getDialect() |
br.com.anteros.persistence.metadata.EntityCacheManager |
getEntityCacheManager() |
<T> br.com.anteros.persistence.metadata.identifier.Identifier<T> |
getIdentifier(T owner) |
List<br.com.anteros.persistence.session.SQLSessionListener> |
getListeners() |
Long |
getNextValFromCacheSequence(String sequenceName) |
br.com.anteros.persistence.session.context.SQLPersistenceContext |
getPersistenceContext() |
br.com.anteros.persistence.session.query.AbstractSQLRunner |
getQueryRunner() |
br.com.anteros.persistence.session.query.AbstractSQLRunner |
getRunner() |
br.com.anteros.persistence.session.query.ShowSQLType[] |
getShowSql() |
br.com.anteros.persistence.session.SQLSessionFactory |
getSQLSessionFactory() |
br.com.anteros.persistence.transaction.Transaction |
getTransaction() |
boolean |
hasNextValFromCacheSequence(String sequenceName) |
boolean |
isClosed() |
boolean |
isFormatSql() |
boolean |
isProxyObject(Object object) |
boolean |
isShowSql() |
void |
lock(Object entity,
br.com.anteros.persistence.session.lock.LockOptions lockOptions) |
void |
lockAll(Collection<?> entities,
br.com.anteros.persistence.session.lock.LockOptions lockOptions) |
void |
lockAll(Object[] entities,
br.com.anteros.persistence.session.lock.LockOptions lockOptions) |
void |
onAfterExecuteCommit(Connection connection) |
void |
onAfterExecuteRollback(Connection connection) |
void |
onBeforeExecuteCommit(Connection connection) |
void |
onBeforeExecuteRollback(Connection connection) |
boolean |
proxyIsInitialized(Object object) |
void |
refresh(Object entity) |
void |
refresh(Object entity,
br.com.anteros.persistence.session.lock.LockOptions lockOptions) |
void |
refresh(Object entity,
br.com.anteros.persistence.session.lock.LockOptions lockOptions,
Map<String,Object> properties) |
void |
refresh(Object entity,
Map<String,Object> properties) |
void |
remove(Object object) |
void |
remove(Object[] object) |
void |
removeAll(Class<?> clazz) |
void |
removeListener(br.com.anteros.persistence.session.SQLSessionListener listener) |
void |
removeTable(String tableName) |
void |
rollbackToSavePoint(String savepoint) |
void |
save(Class<?> clazz,
String[] columns,
String[] values) |
void |
save(Collection<?> object) |
Object |
save(Object object) |
void |
save(Object[] object) |
void |
saveInBatchMode(Object[] object,
int batchSize) |
void |
saveInBatchMode(Object object,
int batchSize) |
void |
savePoint(String savepoint) |
void |
setClientId(String clientId) |
void |
setClientInfo(String clientInfo) |
void |
setDialect(br.com.anteros.persistence.sql.dialect.DatabaseDialect dialect) |
void |
setEntityCacheManager(br.com.anteros.persistence.metadata.EntityCacheManager entityCacheManager) |
void |
setFormatSql(boolean formatSql) |
void |
setQueryRunner(br.com.anteros.persistence.session.query.AbstractSQLRunner queryRunner) |
void |
setShowSql(br.com.anteros.persistence.session.query.ShowSQLType... showSql) |
void |
storeNextValToCacheSession(String sequenceName,
Long firstValue,
Long lastValue) |
long |
update(String sql) |
long |
update(String sql,
br.com.anteros.persistence.parameter.NamedParameter[] params) |
long |
update(String sql,
Object[] params) |
boolean |
validationIsActive() |
public SQLSessionImpl(br.com.anteros.persistence.session.SQLSessionFactory sessionFactory,
Connection connection,
br.com.anteros.persistence.metadata.EntityCacheManager entityCacheManager,
br.com.anteros.persistence.session.query.AbstractSQLRunner queryRunner,
br.com.anteros.persistence.sql.dialect.DatabaseDialect dialect,
br.com.anteros.persistence.session.query.ShowSQLType[] showSql,
boolean formatSql,
int queryTimeout,
int lockTimeout,
br.com.anteros.persistence.transaction.TransactionFactory transactionFactory,
int batchSize,
boolean validationActive)
throws Exception
Exceptionpublic long update(String sql) throws Exception
update in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic long update(String sql, Object[] params) throws Exception
update in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic long update(String sql, br.com.anteros.persistence.parameter.NamedParameter[] params) throws Exception
update in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic Object save(Object object) throws Exception
save in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void saveInBatchMode(Object object, int batchSize) throws Exception
saveInBatchMode in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void saveInBatchMode(Object[] object, int batchSize) throws Exception
saveInBatchMode in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void save(Object[] object) throws Exception
save in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void save(Collection<?> object) throws Exception
save in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void remove(Object object) throws Exception
remove in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void remove(Object[] object) throws Exception
remove in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic br.com.anteros.persistence.sql.dialect.DatabaseDialect getDialect()
getDialect in interface br.com.anteros.persistence.session.SQLSessionpublic Connection getConnection()
getConnection in interface br.com.anteros.persistence.session.SQLSessionpublic br.com.anteros.persistence.session.query.AbstractSQLRunner getRunner()
throws Exception
getRunner in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void setDialect(br.com.anteros.persistence.sql.dialect.DatabaseDialect dialect)
public br.com.anteros.persistence.metadata.EntityCacheManager getEntityCacheManager()
getEntityCacheManager in interface br.com.anteros.persistence.session.SQLSessionpublic void setEntityCacheManager(br.com.anteros.persistence.metadata.EntityCacheManager entityCacheManager)
public boolean isShowSql()
isShowSql in interface br.com.anteros.persistence.session.SQLSessionpublic br.com.anteros.persistence.session.query.ShowSQLType[] getShowSql()
getShowSql in interface br.com.anteros.persistence.session.SQLSessionpublic void setShowSql(br.com.anteros.persistence.session.query.ShowSQLType... showSql)
setShowSql in interface br.com.anteros.persistence.session.SQLSessionpublic boolean isFormatSql()
isFormatSql in interface br.com.anteros.persistence.session.SQLSessionpublic void setFormatSql(boolean formatSql)
setFormatSql in interface br.com.anteros.persistence.session.SQLSessionpublic br.com.anteros.persistence.session.context.SQLPersistenceContext getPersistenceContext()
getPersistenceContext in interface br.com.anteros.persistence.session.SQLSessionpublic void flush()
throws Exception
flush in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void forceFlush(Set<String> tableNames) throws Exception
forceFlush in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void close()
throws Exception
close in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void onBeforeExecuteCommit(Connection connection) throws Exception
onBeforeExecuteCommit in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void onBeforeExecuteRollback(Connection connection) throws Exception
onBeforeExecuteRollback in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void onAfterExecuteCommit(Connection connection) throws Exception
onAfterExecuteCommit in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void onAfterExecuteRollback(Connection connection) throws Exception
onAfterExecuteRollback in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic br.com.anteros.persistence.session.query.AbstractSQLRunner getQueryRunner()
public void setQueryRunner(br.com.anteros.persistence.session.query.AbstractSQLRunner queryRunner)
public <T> br.com.anteros.persistence.metadata.identifier.Identifier<T> getIdentifier(T owner)
throws Exception
getIdentifier in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> br.com.anteros.persistence.metadata.identifier.Identifier<T> createIdentifier(Class<T> clazz) throws Exception
createIdentifier in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void addListener(br.com.anteros.persistence.session.SQLSessionListener listener)
addListener in interface br.com.anteros.persistence.session.SQLSessionpublic void removeListener(br.com.anteros.persistence.session.SQLSessionListener listener)
removeListener in interface br.com.anteros.persistence.session.SQLSessionpublic List<br.com.anteros.persistence.session.SQLSessionListener> getListeners()
getListeners in interface br.com.anteros.persistence.session.SQLSessionpublic List<br.com.anteros.persistence.sql.command.CommandSQL> getCommandQueue()
getCommandQueue in interface br.com.anteros.persistence.session.SQLSessionpublic Map<Object,Map<br.com.anteros.persistence.metadata.descriptor.DescriptionColumn,br.com.anteros.persistence.metadata.identifier.IdentifierPostInsert>> getCacheIdentifier()
getCacheIdentifier in interface br.com.anteros.persistence.session.SQLSessionpublic String clientId()
clientId in interface br.com.anteros.persistence.session.SQLSessionpublic void setClientId(String clientId)
setClientId in interface br.com.anteros.persistence.session.SQLSessionpublic void save(Class<?> clazz, String[] columns, String[] values) throws Exception
save in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void removeAll(Class<?> clazz) throws Exception
removeAll in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void removeTable(String tableName) throws Exception
removeTable in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void executeDDL(String ddl) throws Exception
executeDDL in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic br.com.anteros.persistence.handler.EntityHandler createNewEntityHandler(Class<?> resultClass, List<br.com.anteros.persistence.session.query.ExpressionFieldMapper> expressionsFieldMapper, Map<br.com.anteros.persistence.session.query.SQLQueryAnalyserAlias,Map<String,String[]>> columnAliases, br.com.anteros.persistence.session.cache.Cache transactionCache, boolean allowDuplicateObjects, Object objectToRefresh, int firstResult, int maxResults, boolean readOnly, br.com.anteros.persistence.session.lock.LockOptions lockOptions) throws Exception
createNewEntityHandler in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void lock(Object entity, br.com.anteros.persistence.session.lock.LockOptions lockOptions) throws Exception
lock in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void lockAll(Collection<?> entities, br.com.anteros.persistence.session.lock.LockOptions lockOptions) throws Exception
lockAll in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void lockAll(Object[] entities, br.com.anteros.persistence.session.lock.LockOptions lockOptions) throws Exception
lockAll in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic boolean isProxyObject(Object object) throws Exception
isProxyObject in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic boolean proxyIsInitialized(Object object) throws Exception
proxyIsInitialized in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void savePoint(String savepoint) throws Exception
savePoint in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void rollbackToSavePoint(String savepoint) throws Exception
rollbackToSavePoint in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> T cloneEntityManaged(Object object) throws Exception
cloneEntityManaged in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void evict(Class object)
evict in interface br.com.anteros.persistence.session.SQLSessionpublic void evictAll()
evictAll in interface br.com.anteros.persistence.session.SQLSessionpublic boolean isClosed()
throws Exception
isClosed in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void setClientInfo(String clientInfo) throws SQLException
setClientInfo in interface br.com.anteros.persistence.session.SQLSessionSQLExceptionpublic String getClientInfo() throws SQLException
getClientInfo in interface br.com.anteros.persistence.session.SQLSessionSQLExceptionpublic br.com.anteros.persistence.transaction.Transaction getTransaction()
throws Exception
getTransaction in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic br.com.anteros.persistence.session.SQLSessionFactory getSQLSessionFactory()
getSQLSessionFactory in interface br.com.anteros.persistence.session.SQLSessionpublic void clear()
throws Exception
clear in interface br.com.anteros.persistence.session.SQLSessionExceptionprotected void errorIfClosed()
public <T> T find(Class<T> entityClass, Object id, boolean readOnly) throws Exception
find in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> T find(Class<T> entityClass, Object id, Map<String,Object> properties, boolean readOnly) throws Exception
find in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> T find(Class<T> entityClass, Object id, br.com.anteros.persistence.session.lock.LockOptions lockOptions, boolean readOnly) throws Exception
find in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> T find(Class<T> entityClass, Object id, br.com.anteros.persistence.session.lock.LockOptions lockOptions, Map<String,Object> properties, boolean readOnly) throws Exception
find in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> T find(br.com.anteros.persistence.metadata.identifier.Identifier<T> id,
boolean readOnly)
throws Exception
find in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> T find(br.com.anteros.persistence.metadata.identifier.Identifier<T> id,
br.com.anteros.persistence.session.lock.LockOptions lockOptions,
boolean readOnly)
throws Exception
find in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> T find(br.com.anteros.persistence.metadata.identifier.Identifier<T> id,
Map<String,Object> properties,
boolean readOnly)
throws Exception
find in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> T find(br.com.anteros.persistence.metadata.identifier.Identifier<T> id,
Map<String,Object> properties,
br.com.anteros.persistence.session.lock.LockOptions lockOptions,
boolean readOnly)
throws Exception
find in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void refresh(Object entity) throws Exception
refresh in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void refresh(Object entity, Map<String,Object> properties) throws Exception
refresh in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void refresh(Object entity, br.com.anteros.persistence.session.lock.LockOptions lockOptions) throws Exception
refresh in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void refresh(Object entity, br.com.anteros.persistence.session.lock.LockOptions lockOptions, Map<String,Object> properties) throws Exception
refresh in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic void detach(Object entity)
detach in interface br.com.anteros.persistence.session.SQLSessionpublic br.com.anteros.persistence.session.query.SQLQuery createQuery(String sql) throws Exception
createQuery in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic br.com.anteros.persistence.session.query.SQLQuery createQuery(String sql, Object parameters) throws Exception
createQuery in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> br.com.anteros.persistence.session.query.TypedSQLQuery<T> createQuery(String sql, Class<T> resultClass) throws Exception
createQuery in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> br.com.anteros.persistence.session.query.TypedSQLQuery<T> createQuery(String sql, Class<T> resultClass, Object parameters) throws Exception
createQuery in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic br.com.anteros.persistence.session.query.SQLQuery createQuery(String sql, br.com.anteros.persistence.session.lock.LockOptions lockOptions) throws Exception
createQuery in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic br.com.anteros.persistence.session.query.SQLQuery createQuery(String sql, Object parameters, br.com.anteros.persistence.session.lock.LockOptions lockOptions) throws Exception
createQuery in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> br.com.anteros.persistence.session.query.TypedSQLQuery<T> createQuery(String sql, Class<T> resultClass, br.com.anteros.persistence.session.lock.LockOptions lockOptions) throws Exception
createQuery in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> br.com.anteros.persistence.session.query.TypedSQLQuery<T> createQuery(String sql, Class<T> resultClass, Object parameters, br.com.anteros.persistence.session.lock.LockOptions lockOptions) throws Exception
createQuery in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic br.com.anteros.persistence.session.query.SQLQuery createNamedQuery(String name) throws Exception
createNamedQuery in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic br.com.anteros.persistence.session.query.SQLQuery createNamedQuery(String name, Object parameters) throws Exception
createNamedQuery in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> br.com.anteros.persistence.session.query.TypedSQLQuery<T> createNamedQuery(String name, Class<T> resultClass) throws Exception
createNamedQuery in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> br.com.anteros.persistence.session.query.TypedSQLQuery<T> createNamedQuery(String name, Class<T> resultClass, Object parameters) throws Exception
createNamedQuery in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic br.com.anteros.persistence.session.query.SQLQuery createStoredProcedureQuery(String procedureName, br.com.anteros.persistence.metadata.annotation.type.CallableType type) throws Exception
createStoredProcedureQuery in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic br.com.anteros.persistence.session.query.SQLQuery createStoredProcedureQuery(String procedureName, br.com.anteros.persistence.metadata.annotation.type.CallableType type, Object parameters) throws Exception
createStoredProcedureQuery in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> br.com.anteros.persistence.session.query.TypedSQLQuery<T> createStoredProcedureQuery(String procedureName, br.com.anteros.persistence.metadata.annotation.type.CallableType type, Class<T> resultClass) throws Exception
createStoredProcedureQuery in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> br.com.anteros.persistence.session.query.TypedSQLQuery<T> createStoredProcedureQuery(String procedureName, br.com.anteros.persistence.metadata.annotation.type.CallableType type, Class<T> resultClass, Object[] parameters) throws Exception
createStoredProcedureQuery in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic br.com.anteros.persistence.session.query.SQLQuery createStoredProcedureNamedQuery(String name) throws Exception
createStoredProcedureNamedQuery in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic br.com.anteros.persistence.session.query.SQLQuery createStoredProcedureNamedQuery(String name, Object parameters) throws Exception
createStoredProcedureNamedQuery in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> br.com.anteros.persistence.session.query.TypedSQLQuery<T> createStoredProcedureNamedQuery(String name, Class<T> resultClass) throws Exception
createStoredProcedureNamedQuery in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> br.com.anteros.persistence.session.query.TypedSQLQuery<T> createStoredProcedureNamedQuery(String name, Class<T> resultClass, Object[] parameters) throws Exception
createStoredProcedureNamedQuery in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> T find(Class<T> entityClass, Object primaryKey) throws Exception
find in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> T find(Class<T> entityClass, Object primaryKey, Map<String,Object> properties) throws Exception
find in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> T find(Class<T> entityClass, Object primaryKey, br.com.anteros.persistence.session.lock.LockOptions lockOptions) throws Exception
find in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> T find(Class<T> entityClass, Object primaryKey, br.com.anteros.persistence.session.lock.LockOptions lockOptions, Map<String,Object> properties) throws Exception
find in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> T find(br.com.anteros.persistence.metadata.identifier.Identifier<T> id)
throws Exception
find in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> T find(br.com.anteros.persistence.metadata.identifier.Identifier<T> id,
br.com.anteros.persistence.session.lock.LockOptions lockOptions)
throws Exception
find in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> T find(br.com.anteros.persistence.metadata.identifier.Identifier<T> id,
Map<String,Object> properties)
throws Exception
find in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic <T> T find(br.com.anteros.persistence.metadata.identifier.Identifier<T> id,
Map<String,Object> properties,
br.com.anteros.persistence.session.lock.LockOptions lockOptions)
throws Exception
find in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic String applyLock(String sql, Class<?> resultClass, br.com.anteros.persistence.session.lock.LockOptions lockOptions) throws Exception
applyLock in interface br.com.anteros.persistence.session.SQLSessionExceptionpublic int getBatchSize()
getBatchSize in interface br.com.anteros.persistence.session.SQLSessionpublic void batchSize(int batchSize)
batchSize in interface br.com.anteros.persistence.session.SQLSessionpublic boolean validationIsActive()
validationIsActive in interface br.com.anteros.persistence.session.SQLSessionpublic void activateValidation()
activateValidation in interface br.com.anteros.persistence.session.SQLSessionpublic void deactivateValidation()
deactivateValidation in interface br.com.anteros.persistence.session.SQLSessionpublic boolean hasNextValFromCacheSequence(String sequenceName)
hasNextValFromCacheSequence in interface br.com.anteros.persistence.session.SQLSessionpublic void storeNextValToCacheSession(String sequenceName, Long firstValue, Long lastValue)
storeNextValToCacheSession in interface br.com.anteros.persistence.session.SQLSessionpublic Long getNextValFromCacheSequence(String sequenceName)
getNextValFromCacheSequence in interface br.com.anteros.persistence.session.SQLSessionpublic void forceGenerationIdentifier(Object entity) throws Exception
forceGenerationIdentifier in interface br.com.anteros.persistence.session.SQLSessionExceptionprotected void finalize()
throws Throwable
Copyright © 2019 Anteros Tecnologia. All rights reserved.