Class PropertyValueDAOImpl
- java.lang.Object
-
- org.alfresco.repo.domain.propval.AbstractPropertyValueDAOImpl
-
- org.alfresco.repo.domain.propval.ibatis.PropertyValueDAOImpl
-
- All Implemented Interfaces:
PropertyValueDAO
public class PropertyValueDAOImpl extends AbstractPropertyValueDAOImpl
iBatis-specific implementation of the PropertyValue DAO.- Since:
- 3.2
- Author:
- Derek Hulley
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.alfresco.repo.domain.propval.AbstractPropertyValueDAOImpl
AbstractPropertyValueDAOImpl.CachePucKey
-
Nested classes/interfaces inherited from interface org.alfresco.repo.domain.propval.PropertyValueDAO
PropertyValueDAO.PropertyFinderCallback, PropertyValueDAO.PropertyUniqueContextCallback
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.domain.propval.AbstractPropertyValueDAOImpl
controlDAO, converter, logger
-
-
Constructor Summary
Constructors Constructor Description PropertyValueDAOImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanupUnusedValues()Remove orphaned properties.protected PropertyClassEntitycreateClass(java.lang.Class<?> value)protected PropertyDateValueEntitycreateDateValue(java.util.Date value)protected PropertyDoubleValueEntitycreateDoubleValue(java.lang.Double value)protected voidcreatePropertyLink(java.lang.Long rootPropId, java.lang.Long propIndex, java.lang.Long containedIn, java.lang.Long keyPropId, java.lang.Long valuePropId)Create an entry for the map or collection link.protected java.lang.LongcreatePropertyRoot()protected PropertyUniqueContextEntitycreatePropertyUniqueContext(java.lang.Long valueId1, java.lang.Long valueId2, java.lang.Long valueId3, java.lang.Long propertyId)protected PropertyValueEntitycreatePropertyValue(java.io.Serializable value)protected PropertySerializableValueEntitycreateSerializableValue(java.io.Serializable value)protected java.lang.LongcreateStringValue(java.lang.String value)protected intdeletePropertyLinks(java.lang.Long rootPropId)Remove all property links for a given property root.protected voiddeletePropertyRoot(java.lang.Long id)voiddeletePropertyUniqueContext(java.lang.Long id)protected intdeletePropertyUniqueContexts(java.lang.Long... valueIds)protected PropertyClassEntityfindClassById(java.lang.Long id)protected PropertyClassEntityfindClassByValue(java.lang.Class<?> value)protected PropertyDateValueEntityfindDateValueById(java.lang.Long id)protected PropertyDateValueEntityfindDateValueByValue(java.util.Date value)protected PropertyDoubleValueEntityfindDoubleValueById(java.lang.Long id)protected PropertyDoubleValueEntityfindDoubleValueByValue(java.lang.Double value)protected voidfindPropertiesByIds(java.util.List<java.lang.Long> ids, PropertyValueDAO.PropertyFinderCallback callback)protected java.util.List<PropertyIdSearchRow>findPropertyById(java.lang.Long id)protected PropertyValueEntityfindPropertyValueById(java.lang.Long id)protected PropertyValueEntityfindPropertyValueByValue(java.io.Serializable value)protected PropertySerializableValueEntityfindSerializableValueById(java.lang.Long id)protected java.lang.StringfindStringValueById(java.lang.Long id)protected java.lang.LongfindStringValueByValue(java.lang.String value)protected PropertyRootEntitygetPropertyRoot(java.lang.Long id)protected PropertyUniqueContextEntitygetPropertyUniqueContextById(java.lang.Long id)protected PropertyUniqueContextEntitygetPropertyUniqueContextByValues(java.lang.Long valueId1, java.lang.Long valueId2, java.lang.Long valueId3)protected voidgetPropertyUniqueContextByValues(PropertyValueDAO.PropertyUniqueContextCallback callback, java.lang.Long... valueIds)voidsetScriptExecutor(ScriptBundleExecutor scriptExecutor)voidsetSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate)protected PropertyRootEntityupdatePropertyRoot(PropertyRootEntity entity)protected PropertyUniqueContextEntityupdatePropertyUniqueContext(PropertyUniqueContextEntity entity)-
Methods inherited from class org.alfresco.repo.domain.propval.AbstractPropertyValueDAOImpl
clearCaches, constructEmptyContainer, convertPropertyIdSearchRows, createProperty, createPropertySerializableValue, createPropertyUniqueContext, deleteProperty, deletePropertyUniqueContext, getOrCreatePropertyClass, getOrCreatePropertyDateValue, getOrCreatePropertyDoubleValue, getOrCreatePropertyStringValue, getOrCreatePropertyValue, getPropertiesByIds, getPropertyById, getPropertyClass, getPropertyClassById, getPropertyDateValue, getPropertyDateValueById, getPropertyDoubleValue, getPropertyDoubleValueById, getPropertySerializableValueById, getPropertyStringCaseSensitiveSearchParameters, getPropertyStringValue, getPropertyStringValueById, getPropertyUniqueContext, getPropertyUniqueContext, getPropertyValue, getPropertyValueById, setControlDAO, setConverter, setPropertyCache, setPropertyClassCache, setPropertyDateValueCache, setPropertyDoubleValueCache, setPropertySerializableValueCache, setPropertyStringValueCache, setPropertyUniqueContextCache, setPropertyValueCache, setUniquenessCheckEnabled, updateProperty, updatePropertyUniqueContext, updatePropertyUniqueContextKeys
-
-
-
-
Method Detail
-
setSqlSessionTemplate
public final void setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate)
-
setScriptExecutor
public void setScriptExecutor(ScriptBundleExecutor scriptExecutor)
-
findClassById
protected PropertyClassEntity findClassById(java.lang.Long id)
- Specified by:
findClassByIdin classAbstractPropertyValueDAOImpl
-
findClassByValue
protected PropertyClassEntity findClassByValue(java.lang.Class<?> value)
- Specified by:
findClassByValuein classAbstractPropertyValueDAOImpl
-
createClass
protected PropertyClassEntity createClass(java.lang.Class<?> value)
- Specified by:
createClassin classAbstractPropertyValueDAOImpl
-
findDateValueById
protected PropertyDateValueEntity findDateValueById(java.lang.Long id)
- Specified by:
findDateValueByIdin classAbstractPropertyValueDAOImpl
-
findDateValueByValue
protected PropertyDateValueEntity findDateValueByValue(java.util.Date value)
- Specified by:
findDateValueByValuein classAbstractPropertyValueDAOImpl- Parameters:
value- a date, accurate to the day
-
createDateValue
protected PropertyDateValueEntity createDateValue(java.util.Date value)
- Specified by:
createDateValuein classAbstractPropertyValueDAOImpl- Parameters:
value- a date, accurate to the day
-
findStringValueById
protected java.lang.String findStringValueById(java.lang.Long id)
- Specified by:
findStringValueByIdin classAbstractPropertyValueDAOImpl
-
findStringValueByValue
protected java.lang.Long findStringValueByValue(java.lang.String value)
- Specified by:
findStringValueByValuein classAbstractPropertyValueDAOImpl
-
createStringValue
protected java.lang.Long createStringValue(java.lang.String value)
- Specified by:
createStringValuein classAbstractPropertyValueDAOImpl
-
findDoubleValueById
protected PropertyDoubleValueEntity findDoubleValueById(java.lang.Long id)
- Specified by:
findDoubleValueByIdin classAbstractPropertyValueDAOImpl
-
findDoubleValueByValue
protected PropertyDoubleValueEntity findDoubleValueByValue(java.lang.Double value)
- Specified by:
findDoubleValueByValuein classAbstractPropertyValueDAOImpl
-
createDoubleValue
protected PropertyDoubleValueEntity createDoubleValue(java.lang.Double value)
- Specified by:
createDoubleValuein classAbstractPropertyValueDAOImpl
-
findSerializableValueById
protected PropertySerializableValueEntity findSerializableValueById(java.lang.Long id)
- Specified by:
findSerializableValueByIdin classAbstractPropertyValueDAOImpl
-
createSerializableValue
protected PropertySerializableValueEntity createSerializableValue(java.io.Serializable value)
- Specified by:
createSerializableValuein classAbstractPropertyValueDAOImpl
-
findPropertyValueById
protected PropertyValueEntity findPropertyValueById(java.lang.Long id)
- Specified by:
findPropertyValueByIdin classAbstractPropertyValueDAOImpl
-
findPropertyValueByValue
protected PropertyValueEntity findPropertyValueByValue(java.io.Serializable value)
- Specified by:
findPropertyValueByValuein classAbstractPropertyValueDAOImpl
-
createPropertyValue
protected PropertyValueEntity createPropertyValue(java.io.Serializable value)
- Specified by:
createPropertyValuein classAbstractPropertyValueDAOImpl
-
findPropertyById
protected java.util.List<PropertyIdSearchRow> findPropertyById(java.lang.Long id)
- Specified by:
findPropertyByIdin classAbstractPropertyValueDAOImpl
-
findPropertiesByIds
protected void findPropertiesByIds(java.util.List<java.lang.Long> ids, PropertyValueDAO.PropertyFinderCallback callback)- Specified by:
findPropertiesByIdsin classAbstractPropertyValueDAOImpl
-
createPropertyRoot
protected java.lang.Long createPropertyRoot()
- Specified by:
createPropertyRootin classAbstractPropertyValueDAOImpl
-
getPropertyRoot
protected PropertyRootEntity getPropertyRoot(java.lang.Long id)
- Specified by:
getPropertyRootin classAbstractPropertyValueDAOImpl
-
updatePropertyRoot
protected PropertyRootEntity updatePropertyRoot(PropertyRootEntity entity)
- Specified by:
updatePropertyRootin classAbstractPropertyValueDAOImpl
-
deletePropertyRoot
protected void deletePropertyRoot(java.lang.Long id)
- Specified by:
deletePropertyRootin classAbstractPropertyValueDAOImpl
-
createPropertyUniqueContext
protected PropertyUniqueContextEntity createPropertyUniqueContext(java.lang.Long valueId1, java.lang.Long valueId2, java.lang.Long valueId3, java.lang.Long propertyId)
- Specified by:
createPropertyUniqueContextin classAbstractPropertyValueDAOImpl
-
getPropertyUniqueContextById
protected PropertyUniqueContextEntity getPropertyUniqueContextById(java.lang.Long id)
- Specified by:
getPropertyUniqueContextByIdin classAbstractPropertyValueDAOImpl
-
getPropertyUniqueContextByValues
protected PropertyUniqueContextEntity getPropertyUniqueContextByValues(java.lang.Long valueId1, java.lang.Long valueId2, java.lang.Long valueId3)
- Specified by:
getPropertyUniqueContextByValuesin classAbstractPropertyValueDAOImpl
-
getPropertyUniqueContextByValues
protected void getPropertyUniqueContextByValues(PropertyValueDAO.PropertyUniqueContextCallback callback, java.lang.Long... valueIds)
- Specified by:
getPropertyUniqueContextByValuesin classAbstractPropertyValueDAOImpl
-
updatePropertyUniqueContext
protected PropertyUniqueContextEntity updatePropertyUniqueContext(PropertyUniqueContextEntity entity)
- Specified by:
updatePropertyUniqueContextin classAbstractPropertyValueDAOImpl
-
deletePropertyUniqueContext
public void deletePropertyUniqueContext(java.lang.Long id)
-
deletePropertyUniqueContexts
protected int deletePropertyUniqueContexts(java.lang.Long... valueIds)
- Specified by:
deletePropertyUniqueContextsin classAbstractPropertyValueDAOImpl
-
createPropertyLink
protected void createPropertyLink(java.lang.Long rootPropId, java.lang.Long propIndex, java.lang.Long containedIn, java.lang.Long keyPropId, java.lang.Long valuePropId)Description copied from class:AbstractPropertyValueDAOImplCreate an entry for the map or collection link.- Specified by:
createPropertyLinkin classAbstractPropertyValueDAOImpl- Parameters:
rootPropId- the root (entry-point) property IDpropIndex- the property number within the root propertycontainedIn- the property that contains the current valuekeyPropId- the map key entity ID or collection position countvaluePropId- the ID of the entity storing the value (may be another map or collection)
-
deletePropertyLinks
protected int deletePropertyLinks(java.lang.Long rootPropId)
Description copied from class:AbstractPropertyValueDAOImplRemove all property links for a given property root.- Specified by:
deletePropertyLinksin classAbstractPropertyValueDAOImpl- Parameters:
rootPropId- the root (entry-point) property ID
-
cleanupUnusedValues
public void cleanupUnusedValues()
Description copied from interface:PropertyValueDAORemove orphaned properties.
-
-