org.lexevs.dao.database.ibatis.property
Class IbatisPropertyDao

java.lang.Object
  extended by org.lexevs.dao.database.access.AbstractBaseDao
      extended by org.lexevs.dao.database.ibatis.AbstractIbatisDao
          extended by org.lexevs.dao.database.ibatis.property.IbatisPropertyDao
All Implemented Interfaces:
LexGridSchemaVersionAwareDao, PropertyDao, org.springframework.beans.factory.InitializingBean

public class IbatisPropertyDao
extends AbstractIbatisDao
implements PropertyDao

The Class IbatisPropertyDao.

Author:
Kevin Peterson

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.lexevs.dao.database.access.property.PropertyDao
PropertyDao.PropertyType
 
Nested classes/interfaces inherited from interface org.lexevs.dao.database.access.LexGridSchemaVersionAwareDao
LexGridSchemaVersionAwareDao.IndividualDaoCallback<T>
 
Field Summary
static java.lang.String DELETE_ALL_CODINGSCHEME_PROPERTIES_OF_CODINGSCHEME_SQL
           
static java.lang.String DELETE_ALL_ENTITY_PROPERTIES_OF_CODINGSCHEME_SQL
          The DELET e_ al l_ entit y_ propertie s_ o f_ codingschem e_ sql.
static java.lang.String DELETE_ALL_PROPERTIES_OF_PARENT_SQL
           
static java.lang.String DELETE_ALL_RELATION_PROPERTIES_OF_CODINGSCHEME_SQL
           
static java.lang.String DELETE_PROPERTY_BY_UID_SQL
           
static java.lang.String DELETE_PROPERTY_MULTIATTRIB_BY_PROPERTY_ID_SQL
           
static java.lang.String GET_ALL_HISTORY_PROPERTY_UIDS_OF_PARENT_SQL
           
static java.lang.String GET_ALL_PROPERTIES_OF_PARENT_SQL
          The GE t_ al l_ propertie s_ o f_ paren t_ sql.
static java.lang.String GET_PROPERTIES_OF_PARENT_UIDS_SQL
           
static java.lang.String GET_PROPERTY_ATTRIBUTES_BY_UID_SQL
           
static java.lang.String GET_PROPERTY_ID_SQL
          The GE t_ propert y_ i d_ sql.
static java.lang.String GET_PROPERTY_MULTIATTRIB_BY_PROPERTY_ID_SQL
           
static java.lang.String GET_PROPERTY_UID_BY_ID_AND_NAME
           
static java.lang.String INSERT_PROPERTY_MULTIATTRIB_SQL
           
static java.lang.String INSERT_PROPERTY_QUALIFIER_SQL
          The INSER t_ propert y_ qualifie r_ sql.
static java.lang.String INSERT_PROPERTY_SOURCE_SQL
          The INSER t_ propert y_ sourc e_ sql.
static java.lang.String INSERT_PROPERTY_SQL
          The INSER t_ propert y_ sql.
static java.lang.String INSERT_PROPERTY_USAGECONTEXT_SQL
          The INSER t_ propert y_ usagecontex t_ sql.
static java.lang.String INSERT_PROPERTYLINK_SQL
          The INSER t_ propertylin k_ sql.
static java.lang.String PROPERTY_NAMESPACE
           
static java.lang.String UPDATE_PROPERTY_BY_UID_SQL
           
static java.lang.String UPDATE_PROPERTY_VERSIONABLE_ATTRIB_BY_UID_SQL
           
 
Fields inherited from class org.lexevs.dao.database.ibatis.AbstractIbatisDao
VERSIONS_NAMESPACE, VSENTRYSTATE_NAMESPACE
 
Constructor Summary
IbatisPropertyDao()
           
 
Method Summary
protected  InsertOrUpdatePropertyBean buildInsertPropertyBean(java.lang.String prefix, java.lang.String parentUId, java.lang.String propertyUId, java.lang.String entryStateUId, PropertyDao.PropertyType referenceType, Property property)
          Builds the insert property bean.
protected  InsertPropertyMultiAttribBean buildInsertPropertyQualifierBean(java.lang.String prefix, java.lang.String propertyId, java.lang.String qualifierId, java.lang.String entryStateId, PropertyQualifier propertyQualifier)
          Builds the insert property qualifier bean.
protected  InsertPropertyMultiAttribBean buildInsertPropertySourceBean(java.lang.String prefix, java.lang.String propertyId, java.lang.String sourceId, java.lang.String entryStateId, Source source)
          Builds the insert property source bean.
protected  InsertPropertyMultiAttribBean buildInsertPropertyUsageContextBean(java.lang.String prefix, java.lang.String propertyId, java.lang.String qualifierId, java.lang.String entryStateId, java.lang.String usageContext)
          Builds the insert property usage context bean.
 void deleteAllCodingSchemePropertiesOfCodingScheme(java.lang.String codingSchemeUId)
          Delete all coding scheme properties of coding scheme.
 void deleteAllEntityPropertiesOfCodingScheme(java.lang.String codingSchemeUId)
          Delete all entity properties of coding scheme.
 void deleteAllPropertiesOfParent(java.lang.String codingSchemeUId, java.lang.String parentUId, PropertyDao.PropertyType parentType)
          Delete all entity properties of coding scheme.
 void deleteAllRelationPropertiesOfCodingScheme(java.lang.String codingSchemeUId)
          Delete all relation properties of coding scheme.
protected
<T> java.util.List<T>
doGetPropertyMultiAttrib(java.lang.String prefix, java.lang.String propertyId, java.lang.Class<T> multiAttrib)
           
 java.util.List<LexGridSchemaVersion> doGetSupportedLgSchemaVersions()
          Do get supported lg schema versions.
protected  java.lang.String doInsertHistoryProperty(java.lang.String codingSchemeUId, java.lang.String propertyUId, Property property, Inserter inserter)
           
 void doInsertPropertyLink(java.lang.String prefix, java.lang.String entityUId, java.lang.String propertyLinkUId, java.lang.String link, java.lang.String sourcePropertyUId, java.lang.String targetPropertyUId, Inserter inserter)
          Do insert property link.
protected  void doInsertPropertyQualifier(java.lang.String prefix, java.lang.String propertyUId, java.lang.String propertyQualifierUId, java.lang.String entryStateUId, PropertyQualifier propertyQualifier, Inserter inserter)
          Insert property qualifier.
protected  void doInsertPropertySource(java.lang.String prefix, java.lang.String propertyUId, java.lang.String propertySourceUId, java.lang.String entryStateUId, Source source, Inserter inserter)
          Insert property source.
protected  void doInsertPropertyUsageContext(java.lang.String prefix, java.lang.String propertyUId, java.lang.String propertyUsageContextUId, java.lang.String entryStateUId, java.lang.String usageContext, Inserter inserter)
          Insert property usage context.
 boolean entryStateExists(java.lang.String codingSchemeUId, java.lang.String entryStateUId)
          Method finds if the given entryState already exists.
 java.util.List<java.lang.String> getAllHistoryPropertyUidsOfParentByRevisionId(java.lang.String codingSchemeUid, java.lang.String parentId, java.lang.String revisionId)
           
 java.util.List<Property> getAllPropertiesOfParent(java.lang.String codingSchemeId, java.lang.String parentId, PropertyDao.PropertyType type)
          Gets the all properties of parent.
 java.lang.String getEntryStateUId(java.lang.String codingSchemeUId, java.lang.String propertyUId)
           
 Property getHistoryPropertyByRevisionId(java.lang.String codingSchemeUid, java.lang.String propertyUid, java.lang.String revisionId)
           
 IbatisVersionsDao getIbatisVersionsDao()
          Gets the ibatis versions dao.
 java.lang.String getLatestRevision(java.lang.String csUId, java.lang.String propertyUId)
           
 java.util.List<Property> getPropertiesOfParents(java.lang.String codingSchemeId, java.util.List<java.lang.String> parentUids)
           
 java.util.List<Property> getPropertiesOfParents(java.lang.String codingSchemeId, java.util.List<java.lang.String> propertyNames, java.util.List<java.lang.String> propertyTypes, java.util.List<java.lang.String> parentUids)
           
 Property getPropertyByUId(java.lang.String vsPropertyUId)
           
 Property getPropertyByUid(java.lang.String codingSchemeId, java.lang.String propertyUid)
           
 org.springframework.batch.classify.Classifier<PropertyDao.PropertyType,java.lang.String> getPropertyTypeClassifier()
          Gets the property type classifier.
protected  java.lang.String getPropertyTypeString(Property property)
           
 java.lang.String getPropertyUIdByPropertyIdAndName(java.lang.String codingSchemeUId, java.lang.String referenceUId, java.lang.String propertyId, java.lang.String propertyName)
           
protected  java.lang.String getPropertyUIdFromParentUIdAndPropId(java.lang.String codingSchemeId, java.lang.String parentId, java.lang.String propId)
          Gets the property id from parent id and prop id.
 void insertBatchProperties(java.lang.String codingSchemeId, PropertyDao.PropertyType type, java.util.List<PropertyBatchInsertItem> batch)
          Insert batch properties.
 void insertBatchProperties(java.lang.String codingSchemeId, PropertyDao.PropertyType type, java.util.List<PropertyBatchInsertItem> batch, BatchInserter inserter)
          Insert batch properties.
 java.lang.String insertHistoryProperty(java.lang.String codingSchemeUId, java.lang.String propertyUId, Property property)
          insert property data into history.
 java.lang.String insertProperty(java.lang.String codingSchemeUId, java.lang.String parentUId, PropertyDao.PropertyType type, Property property)
          Insert property.
 java.lang.String insertProperty(java.lang.String codingSchemeUId, java.lang.String referenceUId, java.lang.String propertyUId, PropertyDao.PropertyType referenceType, Property property, Inserter inserter)
          Insert property.
 void insertPropertyLink(java.lang.String codingSchemeUId, java.lang.String parentUId, PropertyLink propertyLink)
          Insert property link.
 void insertPropertyQualifier(java.lang.String codingSchemeId, java.lang.String propertyId, PropertyQualifier propertyQualifier)
          Insert property qualifier.
 void insertPropertySource(java.lang.String codingSchemeId, java.lang.String propertyId, Source source)
          Insert property source.
 void insertPropertyUsageContext(java.lang.String codingSchemeId, java.lang.String propertyId, java.lang.String usageContext)
          Insert property usage context.
 void removePropertyByUId(java.lang.String codingSchemeUId, java.lang.String propertyUId)
           
 void setIbatisVersionsDao(IbatisVersionsDao ibatisVersionsDao)
          Sets the ibatis versions dao.
 void setPropertyTypeClassifier(org.springframework.batch.classify.Classifier<PropertyDao.PropertyType,java.lang.String> propertyTypeClassifier)
          Sets the property type classifier.
 java.lang.String updateProperty(java.lang.String codingSchemeUId, java.lang.String parentUId, java.lang.String propertyUId, PropertyDao.PropertyType type, Property property)
          Update property.
 java.lang.String updatePropertyVersionableAttrib(java.lang.String codingSchemeUId, java.lang.String propertyUId, Property property)
           
 
Methods inherited from class org.lexevs.dao.database.ibatis.AbstractIbatisDao
afterPropertiesSet, executeInTransaction, getBatchTemplateInserter, getNonBatchTemplateInserter, getSqlMapClientTemplate, setNonBatchTemplateInserter, setSqlMapClientTemplate, vsEntryStateExists
 
Methods inherited from class org.lexevs.dao.database.access.AbstractBaseDao
createRandomIdentifier, createUniqueId, getPrefixResolver, getPrimaryKeyIncrementer, setPrefixResolver, setPrimaryKeyIncrementer, supportsLgSchemaVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.lexevs.dao.database.access.LexGridSchemaVersionAwareDao
executeInTransaction, supportsLgSchemaVersion
 

Field Detail

PROPERTY_NAMESPACE

public static java.lang.String PROPERTY_NAMESPACE

INSERT_PROPERTY_SQL

public static java.lang.String INSERT_PROPERTY_SQL
The INSER t_ propert y_ sql.


DELETE_ALL_CODINGSCHEME_PROPERTIES_OF_CODINGSCHEME_SQL

public static java.lang.String DELETE_ALL_CODINGSCHEME_PROPERTIES_OF_CODINGSCHEME_SQL

DELETE_ALL_ENTITY_PROPERTIES_OF_CODINGSCHEME_SQL

public static java.lang.String DELETE_ALL_ENTITY_PROPERTIES_OF_CODINGSCHEME_SQL
The DELET e_ al l_ entit y_ propertie s_ o f_ codingschem e_ sql.


DELETE_ALL_RELATION_PROPERTIES_OF_CODINGSCHEME_SQL

public static java.lang.String DELETE_ALL_RELATION_PROPERTIES_OF_CODINGSCHEME_SQL

DELETE_ALL_PROPERTIES_OF_PARENT_SQL

public static java.lang.String DELETE_ALL_PROPERTIES_OF_PARENT_SQL

INSERT_PROPERTY_QUALIFIER_SQL

public static java.lang.String INSERT_PROPERTY_QUALIFIER_SQL
The INSER t_ propert y_ qualifie r_ sql.


INSERT_PROPERTY_SOURCE_SQL

public static java.lang.String INSERT_PROPERTY_SOURCE_SQL
The INSER t_ propert y_ sourc e_ sql.


INSERT_PROPERTY_USAGECONTEXT_SQL

public static java.lang.String INSERT_PROPERTY_USAGECONTEXT_SQL
The INSER t_ propert y_ usagecontex t_ sql.


INSERT_PROPERTY_MULTIATTRIB_SQL

public static java.lang.String INSERT_PROPERTY_MULTIATTRIB_SQL

INSERT_PROPERTYLINK_SQL

public static java.lang.String INSERT_PROPERTYLINK_SQL
The INSER t_ propertylin k_ sql.


GET_ALL_PROPERTIES_OF_PARENT_SQL

public static java.lang.String GET_ALL_PROPERTIES_OF_PARENT_SQL
The GE t_ al l_ propertie s_ o f_ paren t_ sql.


GET_PROPERTIES_OF_PARENT_UIDS_SQL

public static java.lang.String GET_PROPERTIES_OF_PARENT_UIDS_SQL

GET_ALL_HISTORY_PROPERTY_UIDS_OF_PARENT_SQL

public static java.lang.String GET_ALL_HISTORY_PROPERTY_UIDS_OF_PARENT_SQL

GET_PROPERTY_ID_SQL

public static java.lang.String GET_PROPERTY_ID_SQL
The GE t_ propert y_ i d_ sql.


GET_PROPERTY_ATTRIBUTES_BY_UID_SQL

public static java.lang.String GET_PROPERTY_ATTRIBUTES_BY_UID_SQL

GET_PROPERTY_MULTIATTRIB_BY_PROPERTY_ID_SQL

public static java.lang.String GET_PROPERTY_MULTIATTRIB_BY_PROPERTY_ID_SQL

DELETE_PROPERTY_MULTIATTRIB_BY_PROPERTY_ID_SQL

public static java.lang.String DELETE_PROPERTY_MULTIATTRIB_BY_PROPERTY_ID_SQL

UPDATE_PROPERTY_BY_UID_SQL

public static java.lang.String UPDATE_PROPERTY_BY_UID_SQL

UPDATE_PROPERTY_VERSIONABLE_ATTRIB_BY_UID_SQL

public static java.lang.String UPDATE_PROPERTY_VERSIONABLE_ATTRIB_BY_UID_SQL

DELETE_PROPERTY_BY_UID_SQL

public static java.lang.String DELETE_PROPERTY_BY_UID_SQL

GET_PROPERTY_UID_BY_ID_AND_NAME

public static java.lang.String GET_PROPERTY_UID_BY_ID_AND_NAME
Constructor Detail

IbatisPropertyDao

public IbatisPropertyDao()
Method Detail

getEntryStateUId

public java.lang.String getEntryStateUId(java.lang.String codingSchemeUId,
                                         java.lang.String propertyUId)
Specified by:
getEntryStateUId in interface PropertyDao

insertBatchProperties

public void insertBatchProperties(java.lang.String codingSchemeId,
                                  PropertyDao.PropertyType type,
                                  java.util.List<PropertyBatchInsertItem> batch)
Description copied from interface: PropertyDao
Insert batch properties.

Specified by:
insertBatchProperties in interface PropertyDao
Parameters:
codingSchemeId - the coding scheme id
type - the type
batch - the batch

insertBatchProperties

public void insertBatchProperties(java.lang.String codingSchemeId,
                                  PropertyDao.PropertyType type,
                                  java.util.List<PropertyBatchInsertItem> batch,
                                  BatchInserter inserter)
Insert batch properties.

Parameters:
codingSchemeId - the coding scheme id
type - the type
batch - the batch
inserter - the inserter

insertProperty

public java.lang.String insertProperty(java.lang.String codingSchemeUId,
                                       java.lang.String parentUId,
                                       PropertyDao.PropertyType type,
                                       Property property)
Description copied from interface: PropertyDao
Insert property.

Specified by:
insertProperty in interface PropertyDao
Parameters:
codingSchemeUId - the coding scheme id
parentUId - the parent id
type - the type
property - the property
Returns:
the string

insertHistoryProperty

public java.lang.String insertHistoryProperty(java.lang.String codingSchemeUId,
                                              java.lang.String propertyUId,
                                              Property property)
Description copied from interface: PropertyDao
insert property data into history.

Specified by:
insertHistoryProperty in interface PropertyDao
Returns:

getPropertiesOfParents

public java.util.List<Property> getPropertiesOfParents(java.lang.String codingSchemeId,
                                                       java.util.List<java.lang.String> propertyNames,
                                                       java.util.List<java.lang.String> propertyTypes,
                                                       java.util.List<java.lang.String> parentUids)
Specified by:
getPropertiesOfParents in interface PropertyDao

getPropertyByUid

public Property getPropertyByUid(java.lang.String codingSchemeId,
                                 java.lang.String propertyUid)
Specified by:
getPropertyByUid in interface PropertyDao

getPropertiesOfParents

public java.util.List<Property> getPropertiesOfParents(java.lang.String codingSchemeId,
                                                       java.util.List<java.lang.String> parentUids)
Specified by:
getPropertiesOfParents in interface PropertyDao

getAllPropertiesOfParent

public java.util.List<Property> getAllPropertiesOfParent(java.lang.String codingSchemeId,
                                                         java.lang.String parentId,
                                                         PropertyDao.PropertyType type)
Description copied from interface: PropertyDao
Gets the all properties of parent.

Specified by:
getAllPropertiesOfParent in interface PropertyDao
Parameters:
codingSchemeId - the coding scheme id
parentId - the parent id
type - the type
Returns:
the all properties of parent

getAllHistoryPropertyUidsOfParentByRevisionId

public java.util.List<java.lang.String> getAllHistoryPropertyUidsOfParentByRevisionId(java.lang.String codingSchemeUid,
                                                                                      java.lang.String parentId,
                                                                                      java.lang.String revisionId)
Specified by:
getAllHistoryPropertyUidsOfParentByRevisionId in interface PropertyDao

getHistoryPropertyByRevisionId

public Property getHistoryPropertyByRevisionId(java.lang.String codingSchemeUid,
                                               java.lang.String propertyUid,
                                               java.lang.String revisionId)
Specified by:
getHistoryPropertyByRevisionId in interface PropertyDao

doGetPropertyMultiAttrib

protected <T> java.util.List<T> doGetPropertyMultiAttrib(java.lang.String prefix,
                                                         java.lang.String propertyId,
                                                         java.lang.Class<T> multiAttrib)

getPropertyTypeString

protected java.lang.String getPropertyTypeString(Property property)

insertProperty

public java.lang.String insertProperty(java.lang.String codingSchemeUId,
                                       java.lang.String referenceUId,
                                       java.lang.String propertyUId,
                                       PropertyDao.PropertyType referenceType,
                                       Property property,
                                       Inserter inserter)
Insert property.

Parameters:
codingSchemeId - the coding scheme id
referenceUId - the entity code id
referenceType - the type
property - the property
inserter - the inserter
Returns:
the string

doInsertHistoryProperty

protected java.lang.String doInsertHistoryProperty(java.lang.String codingSchemeUId,
                                                   java.lang.String propertyUId,
                                                   Property property,
                                                   Inserter inserter)

updateProperty

public java.lang.String updateProperty(java.lang.String codingSchemeUId,
                                       java.lang.String parentUId,
                                       java.lang.String propertyUId,
                                       PropertyDao.PropertyType type,
                                       Property property)
Description copied from interface: PropertyDao
Update property.

Specified by:
updateProperty in interface PropertyDao
Parameters:
codingSchemeUId - the coding scheme id
parentUId - the parent id
propertyUId - the property id
type - the type
property - the property

updatePropertyVersionableAttrib

public java.lang.String updatePropertyVersionableAttrib(java.lang.String codingSchemeUId,
                                                        java.lang.String propertyUId,
                                                        Property property)
Specified by:
updatePropertyVersionableAttrib in interface PropertyDao

insertPropertyQualifier

public void insertPropertyQualifier(java.lang.String codingSchemeId,
                                    java.lang.String propertyId,
                                    PropertyQualifier propertyQualifier)
Description copied from interface: PropertyDao
Insert property qualifier.

Specified by:
insertPropertyQualifier in interface PropertyDao
Parameters:
codingSchemeId - the coding scheme id
propertyId - the property id
propertyQualifier - the qualifier

doInsertPropertyQualifier

protected void doInsertPropertyQualifier(java.lang.String prefix,
                                         java.lang.String propertyUId,
                                         java.lang.String propertyQualifierUId,
                                         java.lang.String entryStateUId,
                                         PropertyQualifier propertyQualifier,
                                         Inserter inserter)
Insert property qualifier.

Parameters:
codingSchemeId - the coding scheme id
propertyUId - the property id
propertyQualifier - the property qualifier
inserter - the inserter

insertPropertySource

public void insertPropertySource(java.lang.String codingSchemeId,
                                 java.lang.String propertyId,
                                 Source source)
Description copied from interface: PropertyDao
Insert property source.

Specified by:
insertPropertySource in interface PropertyDao
Parameters:
codingSchemeId - the coding scheme id
propertyId - the property id
source - the source

doInsertPropertySource

protected void doInsertPropertySource(java.lang.String prefix,
                                      java.lang.String propertyUId,
                                      java.lang.String propertySourceUId,
                                      java.lang.String entryStateUId,
                                      Source source,
                                      Inserter inserter)
Insert property source.

Parameters:
codingSchemeId - the coding scheme id
propertyUId - the property id
source - the source
inserter - the inserter

doInsertPropertyUsageContext

protected void doInsertPropertyUsageContext(java.lang.String prefix,
                                            java.lang.String propertyUId,
                                            java.lang.String propertyUsageContextUId,
                                            java.lang.String entryStateUId,
                                            java.lang.String usageContext,
                                            Inserter inserter)
Insert property usage context.

Parameters:
codingSchemeId - the coding scheme id
propertyUId - the property id
usageContext - the usage context
inserter - the inserter

insertPropertyUsageContext

public void insertPropertyUsageContext(java.lang.String codingSchemeId,
                                       java.lang.String propertyId,
                                       java.lang.String usageContext)
Description copied from interface: PropertyDao
Insert property usage context.

Specified by:
insertPropertyUsageContext in interface PropertyDao
Parameters:
codingSchemeId - the coding scheme id
propertyId - the property id
usageContext - the usage context

doInsertPropertyLink

public void doInsertPropertyLink(java.lang.String prefix,
                                 java.lang.String entityUId,
                                 java.lang.String propertyLinkUId,
                                 java.lang.String link,
                                 java.lang.String sourcePropertyUId,
                                 java.lang.String targetPropertyUId,
                                 Inserter inserter)
Do insert property link.

Parameters:
prefix - the prefix
entityUId - the entity id
propertyLinkUId - the property link id
link - the link
sourcePropertyUId - the source property id
targetPropertyUId - the target property id
inserter - the inserter

insertPropertyLink

public void insertPropertyLink(java.lang.String codingSchemeUId,
                               java.lang.String parentUId,
                               PropertyLink propertyLink)
Description copied from interface: PropertyDao
Insert property link.

Specified by:
insertPropertyLink in interface PropertyDao
Parameters:
codingSchemeUId - the coding scheme id
propertyLink - the property link

deleteAllCodingSchemePropertiesOfCodingScheme

public void deleteAllCodingSchemePropertiesOfCodingScheme(java.lang.String codingSchemeUId)
Description copied from interface: PropertyDao
Delete all coding scheme properties of coding scheme.

Specified by:
deleteAllCodingSchemePropertiesOfCodingScheme in interface PropertyDao
Parameters:
codingSchemeUId - the coding scheme id.

deleteAllEntityPropertiesOfCodingScheme

public void deleteAllEntityPropertiesOfCodingScheme(java.lang.String codingSchemeUId)
Description copied from interface: PropertyDao
Delete all entity properties of coding scheme.

Specified by:
deleteAllEntityPropertiesOfCodingScheme in interface PropertyDao
Parameters:
codingSchemeUId - the coding scheme id

deleteAllRelationPropertiesOfCodingScheme

public void deleteAllRelationPropertiesOfCodingScheme(java.lang.String codingSchemeUId)
Description copied from interface: PropertyDao
Delete all relation properties of coding scheme.

Specified by:
deleteAllRelationPropertiesOfCodingScheme in interface PropertyDao
Parameters:
codingSchemeUId - the coding scheme id

deleteAllPropertiesOfParent

public void deleteAllPropertiesOfParent(java.lang.String codingSchemeUId,
                                        java.lang.String parentUId,
                                        PropertyDao.PropertyType parentType)
Description copied from interface: PropertyDao
Delete all entity properties of coding scheme.

Specified by:
deleteAllPropertiesOfParent in interface PropertyDao
Parameters:
codingSchemeUId - the coding scheme uid.
parentUId - the parent uid.
parentType - the parent type

getPropertyUIdFromParentUIdAndPropId

protected java.lang.String getPropertyUIdFromParentUIdAndPropId(java.lang.String codingSchemeId,
                                                                java.lang.String parentId,
                                                                java.lang.String propId)
Gets the property id from parent id and prop id.

Parameters:
codingSchemeId - the coding scheme id
parentId - the parent id
propId - the prop id
Returns:
the property id from parent id and prop id

buildInsertPropertyBean

protected InsertOrUpdatePropertyBean buildInsertPropertyBean(java.lang.String prefix,
                                                             java.lang.String parentUId,
                                                             java.lang.String propertyUId,
                                                             java.lang.String entryStateUId,
                                                             PropertyDao.PropertyType referenceType,
                                                             Property property)
Builds the insert property bean.

Parameters:
prefix - the prefix
parentUId - the reference unique id.
propertyUId - the property id
entryStateUId - the entry state id
referenceType - the type
property - the property
Returns:
the insert property bean

buildInsertPropertyQualifierBean

protected InsertPropertyMultiAttribBean buildInsertPropertyQualifierBean(java.lang.String prefix,
                                                                         java.lang.String propertyId,
                                                                         java.lang.String qualifierId,
                                                                         java.lang.String entryStateId,
                                                                         PropertyQualifier propertyQualifier)
Builds the insert property qualifier bean.

Parameters:
prefix - the prefix
propertyId - the property id
qualifierId - the qualifier id
propertyQualifier - the property qualifier
Returns:
the insert property multi attrib bean

buildInsertPropertyUsageContextBean

protected InsertPropertyMultiAttribBean buildInsertPropertyUsageContextBean(java.lang.String prefix,
                                                                            java.lang.String propertyId,
                                                                            java.lang.String qualifierId,
                                                                            java.lang.String entryStateId,
                                                                            java.lang.String usageContext)
Builds the insert property usage context bean.

Parameters:
prefix - the prefix
propertyId - the property id
qualifierId - the qualifier id
usageContext - the usage context
Returns:
the insert property multi attrib bean

buildInsertPropertySourceBean

protected InsertPropertyMultiAttribBean buildInsertPropertySourceBean(java.lang.String prefix,
                                                                      java.lang.String propertyId,
                                                                      java.lang.String sourceId,
                                                                      java.lang.String entryStateId,
                                                                      Source source)
Builds the insert property source bean.

Parameters:
prefix - the prefix
propertyId - the property id
sourceId - the source id
source - the source
Returns:
the insert property multi attrib bean

doGetSupportedLgSchemaVersions

public java.util.List<LexGridSchemaVersion> doGetSupportedLgSchemaVersions()
Description copied from class: AbstractBaseDao
Do get supported lg schema versions.

Specified by:
doGetSupportedLgSchemaVersions in class AbstractBaseDao
Returns:
the list< lex grid schema version>

setPropertyTypeClassifier

public void setPropertyTypeClassifier(org.springframework.batch.classify.Classifier<PropertyDao.PropertyType,java.lang.String> propertyTypeClassifier)
Sets the property type classifier.

Parameters:
propertyTypeClassifier - the property type classifier

getPropertyTypeClassifier

public org.springframework.batch.classify.Classifier<PropertyDao.PropertyType,java.lang.String> getPropertyTypeClassifier()
Gets the property type classifier.

Returns:
the property type classifier

getPropertyUIdByPropertyIdAndName

public java.lang.String getPropertyUIdByPropertyIdAndName(java.lang.String codingSchemeUId,
                                                          java.lang.String referenceUId,
                                                          java.lang.String propertyId,
                                                          java.lang.String propertyName)
Specified by:
getPropertyUIdByPropertyIdAndName in interface PropertyDao

removePropertyByUId

public void removePropertyByUId(java.lang.String codingSchemeUId,
                                java.lang.String propertyUId)
Specified by:
removePropertyByUId in interface PropertyDao

getLatestRevision

public java.lang.String getLatestRevision(java.lang.String csUId,
                                          java.lang.String propertyUId)
Specified by:
getLatestRevision in interface PropertyDao

getIbatisVersionsDao

public IbatisVersionsDao getIbatisVersionsDao()
Gets the ibatis versions dao.

Returns:
the ibatis versions dao

setIbatisVersionsDao

public void setIbatisVersionsDao(IbatisVersionsDao ibatisVersionsDao)
Sets the ibatis versions dao.

Parameters:
ibatisVersionsDao - the new ibatis versions dao

getPropertyByUId

public Property getPropertyByUId(java.lang.String vsPropertyUId)

entryStateExists

public boolean entryStateExists(java.lang.String codingSchemeUId,
                                java.lang.String entryStateUId)
Description copied from class: AbstractIbatisDao
Method finds if the given entryState already exists. Returns true if entryState exists or else returns false.

Specified by:
entryStateExists in interface PropertyDao
Overrides:
entryStateExists in class AbstractIbatisDao
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.