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
-
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(Long id)
- Specified by:
findClassByIdin classAbstractPropertyValueDAOImpl
-
findClassByValue
protected PropertyClassEntity findClassByValue(Class<?> value)
- Specified by:
findClassByValuein classAbstractPropertyValueDAOImpl
-
createClass
protected PropertyClassEntity createClass(Class<?> value)
- Specified by:
createClassin classAbstractPropertyValueDAOImpl
-
findDateValueById
protected PropertyDateValueEntity findDateValueById(Long id)
- Specified by:
findDateValueByIdin classAbstractPropertyValueDAOImpl
-
findDateValueByValue
protected PropertyDateValueEntity findDateValueByValue(Date value)
- Specified by:
findDateValueByValuein classAbstractPropertyValueDAOImpl- Parameters:
value- a date, accurate to the day
-
createDateValue
protected PropertyDateValueEntity createDateValue(Date value)
- Specified by:
createDateValuein classAbstractPropertyValueDAOImpl- Parameters:
value- a date, accurate to the day
-
findStringValueById
protected String findStringValueById(Long id)
- Specified by:
findStringValueByIdin classAbstractPropertyValueDAOImpl
-
findStringValueByValue
protected Long findStringValueByValue(String value)
- Specified by:
findStringValueByValuein classAbstractPropertyValueDAOImpl
-
createStringValue
protected Long createStringValue(String value)
- Specified by:
createStringValuein classAbstractPropertyValueDAOImpl
-
findDoubleValueById
protected PropertyDoubleValueEntity findDoubleValueById(Long id)
- Specified by:
findDoubleValueByIdin classAbstractPropertyValueDAOImpl
-
findDoubleValueByValue
protected PropertyDoubleValueEntity findDoubleValueByValue(Double value)
- Specified by:
findDoubleValueByValuein classAbstractPropertyValueDAOImpl
-
createDoubleValue
protected PropertyDoubleValueEntity createDoubleValue(Double value)
- Specified by:
createDoubleValuein classAbstractPropertyValueDAOImpl
-
findSerializableValueById
protected PropertySerializableValueEntity findSerializableValueById(Long id)
- Specified by:
findSerializableValueByIdin classAbstractPropertyValueDAOImpl
-
createSerializableValue
protected PropertySerializableValueEntity createSerializableValue(Serializable value)
- Specified by:
createSerializableValuein classAbstractPropertyValueDAOImpl
-
findPropertyValueById
protected PropertyValueEntity findPropertyValueById(Long id)
- Specified by:
findPropertyValueByIdin classAbstractPropertyValueDAOImpl
-
findPropertyValueByValue
protected PropertyValueEntity findPropertyValueByValue(Serializable value)
- Specified by:
findPropertyValueByValuein classAbstractPropertyValueDAOImpl
-
createPropertyValue
protected PropertyValueEntity createPropertyValue(Serializable value)
- Specified by:
createPropertyValuein classAbstractPropertyValueDAOImpl
-
findPropertyById
protected List<PropertyIdSearchRow> findPropertyById(Long id)
- Specified by:
findPropertyByIdin classAbstractPropertyValueDAOImpl
-
findPropertiesByIds
protected void findPropertiesByIds(List<Long> ids, PropertyValueDAO.PropertyFinderCallback callback)
- Specified by:
findPropertiesByIdsin classAbstractPropertyValueDAOImpl
-
createPropertyRoot
protected Long createPropertyRoot()
- Specified by:
createPropertyRootin classAbstractPropertyValueDAOImpl
-
getPropertyRoot
protected PropertyRootEntity getPropertyRoot(Long id)
- Specified by:
getPropertyRootin classAbstractPropertyValueDAOImpl
-
updatePropertyRoot
protected PropertyRootEntity updatePropertyRoot(PropertyRootEntity entity)
- Specified by:
updatePropertyRootin classAbstractPropertyValueDAOImpl
-
deletePropertyRoot
protected void deletePropertyRoot(Long id)
- Specified by:
deletePropertyRootin classAbstractPropertyValueDAOImpl
-
createPropertyUniqueContext
protected PropertyUniqueContextEntity createPropertyUniqueContext(Long valueId1, Long valueId2, Long valueId3, Long propertyId)
- Specified by:
createPropertyUniqueContextin classAbstractPropertyValueDAOImpl
-
getPropertyUniqueContextById
protected PropertyUniqueContextEntity getPropertyUniqueContextById(Long id)
- 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
public void deletePropertyUniqueContext(Long id)
-
deletePropertyUniqueContexts
protected int deletePropertyUniqueContexts(Long... valueIds)
- 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
protected int deletePropertyLinks(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.
-
cleanupUnusedValuesV2
public void cleanupUnusedValuesV2()
-
-