org.lexevs.dao.database.ibatis
Class AbstractIbatisDao

java.lang.Object
  extended by org.lexevs.dao.database.access.AbstractBaseDao
      extended by org.lexevs.dao.database.ibatis.AbstractIbatisDao
All Implemented Interfaces:
LexGridSchemaVersionAwareDao, org.springframework.beans.factory.InitializingBean
Direct Known Subclasses:
IbatisAssociationDao, IbatisAssociationDataDao, IbatisAssociationTargetDao, IbatisCodedNodeGraphDao, IbatisCodingSchemeDao, IbatisEntityDao, IbatisNciHistoryDao, IbatisPickListDao, IbatisPickListEntryNodeDao, IbatisPropertyDao, IbatisRevisionDao, IbatisSystemReleaseDao, IbatisValueSetDefinitionDao, IbatisVersionsDao, IbatisVSDefinitionEntryDao, IbatisVSEntryStateDao, IbatisVSPropertyDao

public abstract class AbstractIbatisDao
extends AbstractBaseDao
implements org.springframework.beans.factory.InitializingBean

The Class AbstractIbatisDao.

Author:
Kevin Peterson

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.lexevs.dao.database.access.LexGridSchemaVersionAwareDao
LexGridSchemaVersionAwareDao.IndividualDaoCallback<T>
 
Field Summary
static java.lang.String VERSIONS_NAMESPACE
          The VERSION s_ namespace.
static java.lang.String VSENTRYSTATE_NAMESPACE
          The VERSION s_ namespace.
 
Constructor Summary
AbstractIbatisDao()
           
 
Method Summary
 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.
 
Methods inherited from class org.lexevs.dao.database.access.AbstractBaseDao
createRandomIdentifier, createUniqueId, doGetSupportedLgSchemaVersions, getPrefixResolver, getPrimaryKeyIncrementer, setPrefixResolver, setPrimaryKeyIncrementer, supportsLgSchemaVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSIONS_NAMESPACE

public static java.lang.String VERSIONS_NAMESPACE
The VERSION s_ namespace.


VSENTRYSTATE_NAMESPACE

public static java.lang.String VSENTRYSTATE_NAMESPACE
The VERSION s_ namespace.

Constructor Detail

AbstractIbatisDao

public AbstractIbatisDao()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
java.lang.Exception

executeInTransaction

@Transactional
public <T> T executeInTransaction(LexGridSchemaVersionAwareDao.IndividualDaoCallback<T> callback)
Description copied from interface: LexGridSchemaVersionAwareDao
Execute in transaction.

Specified by:
executeInTransaction in interface LexGridSchemaVersionAwareDao
Parameters:
callback - the callback
Returns:
the t

setSqlMapClientTemplate

public void setSqlMapClientTemplate(org.springframework.orm.ibatis.SqlMapClientTemplate sqlMapClientTemplate)
Sets the sql map client template.

Parameters:
sqlMapClientTemplate - the new sql map client template

getSqlMapClientTemplate

public org.springframework.orm.ibatis.SqlMapClientTemplate getSqlMapClientTemplate()
Gets the sql map client template.

Returns:
the sql map client template

getBatchTemplateInserter

public BatchInserter getBatchTemplateInserter(com.ibatis.sqlmap.client.SqlMapExecutor executor)

setNonBatchTemplateInserter

public void setNonBatchTemplateInserter(Inserter nonBatchTemplateInserter)
Sets the non batch template inserter.

Parameters:
nonBatchTemplateInserter - the new non batch template inserter

getNonBatchTemplateInserter

public Inserter getNonBatchTemplateInserter()
Gets the non batch template inserter.

Returns:
the non batch template inserter

entryStateExists

public boolean entryStateExists(java.lang.String prefix,
                                java.lang.String entryStateUId)
Method finds if the given entryState already exists. Returns true if entryState exists or else returns false.

Parameters:
entryStateUId -
Returns:
boolean

vsEntryStateExists

public boolean vsEntryStateExists(java.lang.String prefix,
                                  java.lang.String entryStateUId)
Method finds if the given entryState already exists. Returns true if entryState exists or else returns false.

Parameters:
entryStateUId -
Returns:
boolean

Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER.