public class IbatisVSPropertyDao extends AbstractIbatisDao implements VSPropertyDao
VSPropertyDao.ReferenceType
LexGridSchemaVersionAwareDao.IndividualDaoCallback<T>
VERSIONS_NAMESPACE, VSENTRYSTATE_NAMESPACE
Constructor and Description |
---|
IbatisVSPropertyDao() |
Modifier and Type | Method and Description |
---|---|
protected InsertOrUpdatePropertyBean |
buildInsertPropertyBean(java.lang.String prefix,
java.lang.String parentGuid,
java.lang.String propertyGuid,
java.lang.String entryStateGuid,
VSPropertyDao.ReferenceType type,
Property property)
Builds the insert property bean.
|
protected InsertPropertyMultiAttribBean |
buildInsertPropertyQualifierBean(java.lang.String propertyGuid,
java.lang.String qualifierGuid,
java.lang.String entryStateGuid,
PropertyQualifier propertyQualifier)
Builds the insert property qualifier bean.
|
protected InsertPropertyMultiAttribBean |
buildInsertPropertySourceBean(java.lang.String propertyGuid,
java.lang.String sourceId,
java.lang.String entryStateId,
Source source)
Builds the insert property source bean.
|
protected InsertPropertyMultiAttribBean |
buildInsertPropertyUsageContextBean(java.lang.String propertyGuid,
java.lang.String qualifierGuid,
java.lang.String entryStateGuid,
java.lang.String usageContext)
Builds the insert property usage context bean.
|
void |
deleteAllDefinitionEntityPropertiesOfValueSetDefinition(java.lang.String valueSetDefinitionURI)
Delete all DefinitionEntity properties of value set definition.
|
void |
deleteAllPickListDefinitionProperties(java.lang.String pickListId)
Delete all properties of a pick list definition.
|
void |
deleteAllPickListEntityPropertiesOfPickListDefinition(java.lang.String pickListUID)
Delete all PickListEntity properties of pick list definition.
|
void |
deleteAllPickListEntryNodeProperties(java.lang.String pickListEntryNodeUId) |
void |
deleteAllValueSetDefinitionProperties(java.lang.String valueSetDefinitionUID)
Delete all properties of a value set definition.
|
void |
deletePropertyByUId(java.lang.String propertyUId) |
protected <T> java.util.List<T> |
doGetPropertyMultiAttrib(java.lang.String propertyGuid,
java.lang.Class<T> multiAttrib) |
java.util.List<LexGridSchemaVersion> |
doGetSupportedLgSchemaVersions()
Do get supported lg schema versions.
|
java.lang.String |
doInsertProperty(java.lang.String prefix,
java.lang.String parentGuid,
java.lang.String propertyGuid,
VSPropertyDao.ReferenceType type,
Property property,
Inserter inserter)
Insert property.
|
protected void |
doInsertPropertyQualifier(java.lang.String propertyGuid,
java.lang.String propertyQualifierGuid,
java.lang.String entryStateGuid,
PropertyQualifier propertyQualifier,
Inserter inserter)
Insert property qualifier.
|
protected void |
doInsertPropertySource(java.lang.String propertyGuid,
java.lang.String propertySourceGuid,
java.lang.String entryStateId,
Source source,
Inserter inserter)
Insert property source.
|
protected void |
doInsertPropertyUsageContext(java.lang.String propertyGuid,
java.lang.String propertyUsageContextGuid,
java.lang.String entryStateGuid,
java.lang.String usageContext,
Inserter inserter)
Insert property usage context.
|
java.util.List<Property> |
getAllHistoryPropertiesOfParentByRevisionGuid(java.lang.String parentGuid,
java.lang.String revisionGuid,
VSPropertyDao.ReferenceType type) |
java.util.List<Property> |
getAllPropertiesOfParent(java.lang.String parentGuid,
VSPropertyDao.ReferenceType type)
Gets the all properties of parent.
|
IbatisVersionsDao |
getIbatisVersionsDao()
Gets the ibatis versions dao.
|
java.lang.String |
getLatestRevision(java.lang.String propertyUId) |
Property |
getPropertyByUId(java.lang.String vsPropertyUId) |
java.lang.String |
getPropertyGuidFromParentGuidAndPropertyId(java.lang.String parentGuid,
java.lang.String propertyId)
Gets the propertyGuid from parentGuid and prop id.
|
protected java.lang.String |
getPropertyTypeString(Property property) |
VSEntryStateDao |
getVsEntryStateDao() |
java.lang.String |
insertHistoryProperty(java.lang.String parentGuid,
java.lang.String propertyGuid,
VSPropertyDao.ReferenceType type,
Property property) |
java.lang.String |
insertProperty(java.lang.String parentGuid,
VSPropertyDao.ReferenceType type,
Property property)
Insert property.
|
void |
insertPropertyQualifier(java.lang.String propertyGuid,
PropertyQualifier propertyQualifier)
Insert property qualifier.
|
void |
insertPropertySource(java.lang.String propertyGuid,
Source source)
Insert property source.
|
void |
insertPropertyUsageContext(java.lang.String propertyGuid,
java.lang.String usageContext)
Insert property usage context.
|
Property |
resolveVSPropertyByRevision(java.lang.String parentGuid,
java.lang.String propertyId,
java.lang.String revisionId) |
void |
setIbatisVersionsDao(IbatisVersionsDao ibatisVersionsDao)
Sets the ibatis versions dao.
|
void |
setVsEntryStateDao(VSEntryStateDao vsEntryStateDao) |
java.lang.String |
updateProperty(java.lang.String parentGuid,
java.lang.String propertyId,
VSPropertyDao.ReferenceType type,
Property property)
Update property.
|
java.lang.String |
updateVersionableAttributes(java.lang.String parentUId,
java.lang.String propertyUId,
VSPropertyDao.ReferenceType type,
Property property) |
afterPropertiesSet, entryStateExists, executeInTransaction, getBatchTemplateInserter, getNonBatchTemplateInserter, getSqlMapClientTemplate, setNonBatchTemplateInserter, setSqlMapClientTemplate, vsEntryStateExists
createRandomIdentifier, createUniqueId, getPrefixResolver, getPrimaryKeyIncrementer, setPrefixResolver, setPrimaryKeyIncrementer, supportsLgSchemaVersion
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeInTransaction, supportsLgSchemaVersion
public static java.lang.String PROPERTY_NAMESPACE
public static java.lang.String INSERT_PROPERTY_SQL
public static java.lang.String DELETE_ALL_PICKLIST_ENTRY_PROPERTIES_OF_PCIKLIST_SQL
public static java.lang.String DELETE_ALL_PICKLIST_DEFINITION_PROPERTIES_OF_PCIKLIST_SQL
public static java.lang.String DELETE_ALL_DEFINITIONENTRY_PROPERTIES_OF_VALUESET_SQL
public static java.lang.String DELETE_ALL_VALUESET_DEFINITION_PROPERTIES_OF_VALUESET_SQL
public static java.lang.String DELETE_PROP_MULTI_ATTRIB_BY_PROP_UID_AND_TYPE_SQL
public static java.lang.String UPDATE_MULTI_ATTRIB_ENTRYSTATE_UID_BY_PROP_ID_TYPE_SQL
public static java.lang.String INSERT_PROPERTY_QUALIFIER_SQL
public static java.lang.String INSERT_PROPERTY_SOURCE_SQL
public static java.lang.String INSERT_PROPERTY_USAGECONTEXT_SQL
public static java.lang.String INSERT_PROPERTY_MULTIATTRIB_SQL
public static java.lang.String GET_ALL_PROPERTIES_OF_PARENT_SQL
public static java.lang.String GET_ALL_PROPERTIES_OF_PARENT_BY_REVISION_SQL
public static java.lang.String GET_PROPERTY_GUID_SQL
public static java.lang.String GET_PROPERTY_MULTIATTRIB_BY_PROPERTY_ID_SQL
public static java.lang.String UPDATE_PROPERTY_BY_UID_SQL
public static java.lang.String UPDATE_PROPERTY_VER_ATTRIB_BY_UID_SQL
public static java.lang.String DELETE_PROPERTY_BY_UID_SQL
public static java.lang.String GET_PROPERTY_ATTRIBUTES_BY_UID_SQL
public java.lang.String insertProperty(java.lang.String parentGuid, VSPropertyDao.ReferenceType type, Property property)
VSPropertyDao
insertProperty
in interface VSPropertyDao
parentGuid
- the parent GUIDtype
- the typeproperty
- the propertypublic java.lang.String insertHistoryProperty(java.lang.String parentGuid, java.lang.String propertyGuid, VSPropertyDao.ReferenceType type, Property property)
insertHistoryProperty
in interface VSPropertyDao
public java.util.List<Property> getAllPropertiesOfParent(java.lang.String parentGuid, VSPropertyDao.ReferenceType type)
VSPropertyDao
getAllPropertiesOfParent
in interface VSPropertyDao
parentGuid
- the parent GUIDtype
- the typepublic java.util.List<Property> getAllHistoryPropertiesOfParentByRevisionGuid(java.lang.String parentGuid, java.lang.String revisionGuid, VSPropertyDao.ReferenceType type)
getAllHistoryPropertiesOfParentByRevisionGuid
in interface VSPropertyDao
protected <T> java.util.List<T> doGetPropertyMultiAttrib(java.lang.String propertyGuid, java.lang.Class<T> multiAttrib)
protected java.lang.String getPropertyTypeString(Property property)
public java.lang.String doInsertProperty(java.lang.String prefix, java.lang.String parentGuid, java.lang.String propertyGuid, VSPropertyDao.ReferenceType type, Property property, Inserter inserter)
parentGuid
- the parentGUIDtype
- the typeproperty
- the propertyinserter
- the inserterpublic java.lang.String updateProperty(java.lang.String parentGuid, java.lang.String propertyId, VSPropertyDao.ReferenceType type, Property property)
VSPropertyDao
updateProperty
in interface VSPropertyDao
parentGuid
- the parent GUIDpropertyId
- the property GUIDtype
- the typeproperty
- the propertypublic void insertPropertyQualifier(java.lang.String propertyGuid, PropertyQualifier propertyQualifier)
VSPropertyDao
insertPropertyQualifier
in interface VSPropertyDao
propertyGuid
- the property GUIDpropertyQualifier
- the qualifierprotected void doInsertPropertyQualifier(java.lang.String propertyGuid, java.lang.String propertyQualifierGuid, java.lang.String entryStateGuid, PropertyQualifier propertyQualifier, Inserter inserter)
propertyGuid
- the property GUIDpropertyQualifier
- the property qualifierinserter
- the inserterpublic void insertPropertySource(java.lang.String propertyGuid, Source source)
VSPropertyDao
insertPropertySource
in interface VSPropertyDao
propertyGuid
- the property GUIDsource
- the sourceprotected void doInsertPropertySource(java.lang.String propertyGuid, java.lang.String propertySourceGuid, java.lang.String entryStateId, Source source, Inserter inserter)
propertyGuid
- the property Guidsource
- the sourceinserter
- the inserterprotected void doInsertPropertyUsageContext(java.lang.String propertyGuid, java.lang.String propertyUsageContextGuid, java.lang.String entryStateGuid, java.lang.String usageContext, Inserter inserter)
propertyGuid
- the property GUIDusageContext
- the usage contextinserter
- the inserterpublic void insertPropertyUsageContext(java.lang.String propertyGuid, java.lang.String usageContext)
VSPropertyDao
insertPropertyUsageContext
in interface VSPropertyDao
propertyGuid
- the property GUIDusageContext
- the usage contextpublic void deleteAllDefinitionEntityPropertiesOfValueSetDefinition(java.lang.String valueSetDefinitionURI)
VSPropertyDao
deleteAllDefinitionEntityPropertiesOfValueSetDefinition
in interface VSPropertyDao
valueSetDefinitionURI
- the URI of value set definitionpublic void deleteAllValueSetDefinitionProperties(java.lang.String valueSetDefinitionUID)
VSPropertyDao
deleteAllValueSetDefinitionProperties
in interface VSPropertyDao
valueSetDefinitionUID
- the URI of value set definitionpublic void deleteAllPickListEntityPropertiesOfPickListDefinition(java.lang.String pickListUID)
VSPropertyDao
deleteAllPickListEntityPropertiesOfPickListDefinition
in interface VSPropertyDao
pickListUID
- the id of pick list definitionpublic void deleteAllPickListDefinitionProperties(java.lang.String pickListId)
VSPropertyDao
deleteAllPickListDefinitionProperties
in interface VSPropertyDao
pickListId
- the id of pick list definitionpublic void deleteAllPickListEntryNodeProperties(java.lang.String pickListEntryNodeUId)
deleteAllPickListEntryNodeProperties
in interface VSPropertyDao
public java.lang.String getPropertyGuidFromParentGuidAndPropertyId(java.lang.String parentGuid, java.lang.String propertyId)
getPropertyGuidFromParentGuidAndPropertyId
in interface VSPropertyDao
parentGuid
- the parent GUIDpropertyId
- the propertyIDprotected InsertOrUpdatePropertyBean buildInsertPropertyBean(java.lang.String prefix, java.lang.String parentGuid, java.lang.String propertyGuid, java.lang.String entryStateGuid, VSPropertyDao.ReferenceType type, Property property)
parentGuid
- the parent GUIDpropertyGuid
- the property GUIDentryStateGuid
- the entry state GUIDtype
- the typeproperty
- the propertyprotected InsertPropertyMultiAttribBean buildInsertPropertyQualifierBean(java.lang.String propertyGuid, java.lang.String qualifierGuid, java.lang.String entryStateGuid, PropertyQualifier propertyQualifier)
prefix
- the prefixpropertyGuid
- the property idqualifierGuid
- the qualifier idpropertyQualifier
- the property qualifierprotected InsertPropertyMultiAttribBean buildInsertPropertyUsageContextBean(java.lang.String propertyGuid, java.lang.String qualifierGuid, java.lang.String entryStateGuid, java.lang.String usageContext)
prefix
- the prefixpropertyGuid
- the property GUIDqualifierGuid
- the qualifier GUIDusageContext
- the usage contextprotected InsertPropertyMultiAttribBean buildInsertPropertySourceBean(java.lang.String propertyGuid, java.lang.String sourceId, java.lang.String entryStateId, Source source)
prefix
- the prefixpropertyGuid
- the property idsourceId
- the source idsource
- the sourcepublic java.util.List<LexGridSchemaVersion> doGetSupportedLgSchemaVersions()
AbstractBaseDao
doGetSupportedLgSchemaVersions
in class AbstractBaseDao
public IbatisVersionsDao getIbatisVersionsDao()
public void setIbatisVersionsDao(IbatisVersionsDao ibatisVersionsDao)
ibatisVersionsDao
- the new ibatis versions daopublic void deletePropertyByUId(java.lang.String propertyUId)
deletePropertyByUId
in interface VSPropertyDao
public java.lang.String updateVersionableAttributes(java.lang.String parentUId, java.lang.String propertyUId, VSPropertyDao.ReferenceType type, Property property)
updateVersionableAttributes
in interface VSPropertyDao
public VSEntryStateDao getVsEntryStateDao()
public void setVsEntryStateDao(VSEntryStateDao vsEntryStateDao)
vsEntryStateDao
- the vsEntryStateDao to setpublic java.lang.String getLatestRevision(java.lang.String propertyUId)
getLatestRevision
in interface VSPropertyDao
public Property resolveVSPropertyByRevision(java.lang.String parentGuid, java.lang.String propertyId, java.lang.String revisionId) throws LBRevisionException
resolveVSPropertyByRevision
in interface VSPropertyDao
LBRevisionException
public Property getPropertyByUId(java.lang.String vsPropertyUId)
getPropertyByUId
in interface VSPropertyDao