Class PropertyValueDAOImpl
java.lang.Object
org.alfresco.repo.domain.propval.AbstractPropertyValueDAOImpl
org.alfresco.repo.domain.propval.ibatis.PropertyValueDAOImpl
- All Implemented Interfaces:
PropertyValueDAO
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.CachePucKeyNested 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidRemove orphaned properties.voidvoidprotected PropertyClassEntitycreateClass(Class<?> value) protected PropertyDateValueEntitycreateDateValue(Date value) protected PropertyDoubleValueEntitycreateDoubleValue(Double value) protected voidcreatePropertyLink(Long rootPropId, Long propIndex, Long containedIn, Long keyPropId, Long valuePropId) Create an entry for the map or collection link.protected Longprotected PropertyUniqueContextEntitycreatePropertyUniqueContext(Long valueId1, Long valueId2, Long valueId3, Long propertyId) protected PropertyValueEntitycreatePropertyValue(Serializable value) protected PropertySerializableValueEntityprotected LongcreateStringValue(String value) protected intdeletePropertyLinks(Long rootPropId) Remove all property links for a given property root.protected voidvoidprotected intdeletePropertyUniqueContexts(Long... valueIds) protected PropertyClassEntityfindClassById(Long id) protected PropertyClassEntityfindClassByValue(Class<?> value) protected PropertyDateValueEntityprotected PropertyDateValueEntityfindDateValueByValue(Date value) protected PropertyDoubleValueEntityprotected PropertyDoubleValueEntityfindDoubleValueByValue(Double value) protected voidfindPropertiesByIds(List<Long> ids, PropertyValueDAO.PropertyFinderCallback callback) protected List<PropertyIdSearchRow>findPropertyById(Long id) protected PropertyValueEntityprotected PropertyValueEntityprotected PropertySerializableValueEntityprotected Stringprotected LongfindStringValueByValue(String value) protected PropertyRootEntitygetPropertyRoot(Long id) protected PropertyUniqueContextEntityprotected PropertyUniqueContextEntitygetPropertyUniqueContextByValues(Long valueId1, Long valueId2, Long valueId3) protected voidgetPropertyUniqueContextByValues(PropertyValueDAO.PropertyUniqueContextCallback callback, Long... valueIds) voidsetScriptExecutor(ScriptBundleExecutor scriptExecutor) final voidsetSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate) protected PropertyRootEntityupdatePropertyRoot(PropertyRootEntity entity) protected PropertyUniqueContextEntityMethods 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
-
Constructor Details
-
PropertyValueDAOImpl
public PropertyValueDAOImpl()
-
-
Method Details
-
setSqlSessionTemplate
public final void setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate) -
setScriptExecutor
-
findClassById
- Specified by:
findClassByIdin classAbstractPropertyValueDAOImpl
-
findClassByValue
- Specified by:
findClassByValuein classAbstractPropertyValueDAOImpl
-
createClass
- Specified by:
createClassin classAbstractPropertyValueDAOImpl
-
findDateValueById
- Specified by:
findDateValueByIdin classAbstractPropertyValueDAOImpl
-
findDateValueByValue
- Specified by:
findDateValueByValuein classAbstractPropertyValueDAOImpl- Parameters:
value- a date, accurate to the day
-
createDateValue
- Specified by:
createDateValuein classAbstractPropertyValueDAOImpl- Parameters:
value- a date, accurate to the day
-
findStringValueById
- Specified by:
findStringValueByIdin classAbstractPropertyValueDAOImpl
-
findStringValueByValue
- Specified by:
findStringValueByValuein classAbstractPropertyValueDAOImpl
-
createStringValue
- Specified by:
createStringValuein classAbstractPropertyValueDAOImpl
-
findDoubleValueById
- Specified by:
findDoubleValueByIdin classAbstractPropertyValueDAOImpl
-
findDoubleValueByValue
- Specified by:
findDoubleValueByValuein classAbstractPropertyValueDAOImpl
-
createDoubleValue
- Specified by:
createDoubleValuein classAbstractPropertyValueDAOImpl
-
findSerializableValueById
- Specified by:
findSerializableValueByIdin classAbstractPropertyValueDAOImpl
-
createSerializableValue
- Specified by:
createSerializableValuein classAbstractPropertyValueDAOImpl
-
findPropertyValueById
- Specified by:
findPropertyValueByIdin classAbstractPropertyValueDAOImpl
-
findPropertyValueByValue
- Specified by:
findPropertyValueByValuein classAbstractPropertyValueDAOImpl
-
createPropertyValue
- Specified by:
createPropertyValuein classAbstractPropertyValueDAOImpl
-
findPropertyById
- Specified by:
findPropertyByIdin classAbstractPropertyValueDAOImpl
-
findPropertiesByIds
protected void findPropertiesByIds(List<Long> ids, PropertyValueDAO.PropertyFinderCallback callback) - Specified by:
findPropertiesByIdsin classAbstractPropertyValueDAOImpl
-
createPropertyRoot
- Specified by:
createPropertyRootin classAbstractPropertyValueDAOImpl
-
getPropertyRoot
- Specified by:
getPropertyRootin classAbstractPropertyValueDAOImpl
-
updatePropertyRoot
- Specified by:
updatePropertyRootin classAbstractPropertyValueDAOImpl
-
deletePropertyRoot
- Specified by:
deletePropertyRootin classAbstractPropertyValueDAOImpl
-
createPropertyUniqueContext
protected PropertyUniqueContextEntity createPropertyUniqueContext(Long valueId1, Long valueId2, Long valueId3, Long propertyId) - Specified by:
createPropertyUniqueContextin classAbstractPropertyValueDAOImpl
-
getPropertyUniqueContextById
- Specified by:
getPropertyUniqueContextByIdin classAbstractPropertyValueDAOImpl
-
getPropertyUniqueContextByValues
protected PropertyUniqueContextEntity getPropertyUniqueContextByValues(Long valueId1, Long valueId2, Long valueId3) - Specified by:
getPropertyUniqueContextByValuesin classAbstractPropertyValueDAOImpl
-
getPropertyUniqueContextByValues
protected void getPropertyUniqueContextByValues(PropertyValueDAO.PropertyUniqueContextCallback callback, Long... valueIds) - Specified by:
getPropertyUniqueContextByValuesin classAbstractPropertyValueDAOImpl
-
updatePropertyUniqueContext
protected PropertyUniqueContextEntity updatePropertyUniqueContext(PropertyUniqueContextEntity entity) - Specified by:
updatePropertyUniqueContextin classAbstractPropertyValueDAOImpl
-
deletePropertyUniqueContext
-
deletePropertyUniqueContexts
- Specified by:
deletePropertyUniqueContextsin classAbstractPropertyValueDAOImpl
-
createPropertyLink
protected void createPropertyLink(Long rootPropId, Long propIndex, Long containedIn, Long keyPropId, 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
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. -
cleanupUnusedValuesV2
public void cleanupUnusedValuesV2() -
cleanupUnusedValuesV3
public void cleanupUnusedValuesV3()
-