public abstract class AbstractIbatisDao extends AbstractBaseDao implements org.springframework.beans.factory.InitializingBean
LexGridSchemaVersionAwareDao.IndividualDaoCallback<T>
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
VERSIONS_NAMESPACE
The VERSION s_ namespace.
|
static java.lang.String |
VSENTRYSTATE_NAMESPACE
The VERSION s_ namespace.
|
Constructor and Description |
---|
AbstractIbatisDao() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
boolean |
entryStateExists(java.lang.String prefix,
java.lang.String entryStateUId)
Method finds if the given entryState already exists.
|
<T> T |
executeInTransaction(LexGridSchemaVersionAwareDao.IndividualDaoCallback<T> callback)
Execute in transaction.
|
BatchInserter |
getBatchTemplateInserter(com.ibatis.sqlmap.client.SqlMapExecutor executor) |
Inserter |
getNonBatchTemplateInserter()
Gets the non batch template inserter.
|
org.springframework.orm.ibatis.SqlMapClientTemplate |
getSqlMapClientTemplate()
Gets the sql map client template.
|
void |
setNonBatchTemplateInserter(Inserter nonBatchTemplateInserter)
Sets the non batch template inserter.
|
void |
setSqlMapClientTemplate(org.springframework.orm.ibatis.SqlMapClientTemplate sqlMapClientTemplate)
Sets the sql map client template.
|
boolean |
vsEntryStateExists(java.lang.String prefix,
java.lang.String entryStateUId)
Method finds if the given entryState already exists.
|
createRandomIdentifier, createUniqueId, doGetSupportedLgSchemaVersions, getPrefixResolver, getPrimaryKeyIncrementer, setPrefixResolver, setPrimaryKeyIncrementer, supportsLgSchemaVersion
public static java.lang.String VERSIONS_NAMESPACE
public static java.lang.String VSENTRYSTATE_NAMESPACE
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
@Transactional public <T> T executeInTransaction(LexGridSchemaVersionAwareDao.IndividualDaoCallback<T> callback)
LexGridSchemaVersionAwareDao
executeInTransaction
in interface LexGridSchemaVersionAwareDao
callback
- the callbackpublic void setSqlMapClientTemplate(org.springframework.orm.ibatis.SqlMapClientTemplate sqlMapClientTemplate)
sqlMapClientTemplate
- the new sql map client templatepublic org.springframework.orm.ibatis.SqlMapClientTemplate getSqlMapClientTemplate()
public BatchInserter getBatchTemplateInserter(com.ibatis.sqlmap.client.SqlMapExecutor executor)
public void setNonBatchTemplateInserter(Inserter nonBatchTemplateInserter)
nonBatchTemplateInserter
- the new non batch template inserterpublic Inserter getNonBatchTemplateInserter()
public boolean entryStateExists(java.lang.String prefix, java.lang.String entryStateUId)
entryStateUId
- public boolean vsEntryStateExists(java.lang.String prefix, java.lang.String entryStateUId)
entryStateUId
-