org.alfresco.repo.domain.propval.ibatis
Class PropertyValueDAOImpl

java.lang.Object
  extended by org.alfresco.repo.domain.propval.AbstractPropertyValueDAOImpl
      extended by 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

Nested Class Summary
 
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
PropertyValueDAOImpl()
           
 
Method Summary
protected  PropertyClassEntity createClass(java.lang.Class value)
           
protected  PropertyDateValueEntity createDateValue(java.util.Date value)
           
protected  PropertyDoubleValueEntity createDoubleValue(java.lang.Double value)
           
protected  void createPropertyLink(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.Long createPropertyRoot()
           
protected  PropertyUniqueContextEntity createPropertyUniqueContext(java.lang.Long valueId1, java.lang.Long valueId2, java.lang.Long valueId3, java.lang.Long propertyId)
           
protected  PropertyValueEntity createPropertyValue(java.io.Serializable value)
           
protected  PropertySerializableValueEntity createSerializableValue(java.io.Serializable value)
           
protected  java.lang.Long createStringValue(java.lang.String value)
           
protected  int deletePropertyLinks(java.lang.Long rootPropId)
          Remove all property links for a given property root.
protected  void deletePropertyRoot(java.lang.Long id)
           
 void deletePropertyUniqueContext(java.lang.Long id)
           
protected  int deletePropertyUniqueContexts(java.lang.Long[] valueIds)
           
protected  PropertyClassEntity findClassById(java.lang.Long id)
           
protected  PropertyClassEntity findClassByValue(java.lang.Class value)
           
protected  PropertyDateValueEntity findDateValueById(java.lang.Long id)
           
protected  PropertyDateValueEntity findDateValueByValue(java.util.Date value)
           
protected  PropertyDoubleValueEntity findDoubleValueById(java.lang.Long id)
           
protected  PropertyDoubleValueEntity findDoubleValueByValue(java.lang.Double value)
           
protected  void findPropertiesByIds(java.util.List ids, PropertyValueDAO.PropertyFinderCallback callback)
           
protected  java.util.List findPropertyById(java.lang.Long id)
           
protected  PropertyValueEntity findPropertyValueById(java.lang.Long id)
           
protected  PropertyValueEntity findPropertyValueByValue(java.io.Serializable value)
           
protected  PropertySerializableValueEntity findSerializableValueById(java.lang.Long id)
           
protected  java.lang.String findStringValueById(java.lang.Long id)
           
protected  java.lang.Long findStringValueByValue(java.lang.String value)
           
protected  PropertyRootEntity getPropertyRoot(java.lang.Long id)
           
protected  PropertyUniqueContextEntity getPropertyUniqueContextById(java.lang.Long id)
           
protected  PropertyUniqueContextEntity getPropertyUniqueContextByValues(java.lang.Long valueId1, java.lang.Long valueId2, java.lang.Long valueId3)
           
protected  void getPropertyUniqueContextByValues(PropertyValueDAO.PropertyUniqueContextCallback callback, java.lang.Long[] valueIds)
           
 void setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate)
           
protected  PropertyRootEntity updatePropertyRoot(PropertyRootEntity entity)
           
protected  PropertyUniqueContextEntity updatePropertyUniqueContext(PropertyUniqueContextEntity entity)
           
 
Methods inherited from class org.alfresco.repo.domain.propval.AbstractPropertyValueDAOImpl
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, setPropertyValueCache, updateProperty, updatePropertyUniqueContext, updatePropertyUniqueContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyValueDAOImpl

public PropertyValueDAOImpl()
Method Detail

setSqlSessionTemplate

public final void setSqlSessionTemplate(org.mybatis.spring.SqlSessionTemplate sqlSessionTemplate)

findClassById

protected PropertyClassEntity findClassById(java.lang.Long id)
Specified by:
findClassById in class AbstractPropertyValueDAOImpl

findClassByValue

protected PropertyClassEntity findClassByValue(java.lang.Class value)
Specified by:
findClassByValue in class AbstractPropertyValueDAOImpl

createClass

protected PropertyClassEntity createClass(java.lang.Class value)
Specified by:
createClass in class AbstractPropertyValueDAOImpl

findDateValueById

protected PropertyDateValueEntity findDateValueById(java.lang.Long id)
Specified by:
findDateValueById in class AbstractPropertyValueDAOImpl

findDateValueByValue

protected PropertyDateValueEntity findDateValueByValue(java.util.Date value)
Specified by:
findDateValueByValue in class AbstractPropertyValueDAOImpl
Parameters:
value - a date, accurate to the day

createDateValue

protected PropertyDateValueEntity createDateValue(java.util.Date value)
Specified by:
createDateValue in class AbstractPropertyValueDAOImpl
Parameters:
value - a date, accurate to the day

findStringValueById

protected java.lang.String findStringValueById(java.lang.Long id)
Specified by:
findStringValueById in class AbstractPropertyValueDAOImpl

findStringValueByValue

protected java.lang.Long findStringValueByValue(java.lang.String value)
Specified by:
findStringValueByValue in class AbstractPropertyValueDAOImpl

createStringValue

protected java.lang.Long createStringValue(java.lang.String value)
Specified by:
createStringValue in class AbstractPropertyValueDAOImpl

findDoubleValueById

protected PropertyDoubleValueEntity findDoubleValueById(java.lang.Long id)
Specified by:
findDoubleValueById in class AbstractPropertyValueDAOImpl

findDoubleValueByValue

protected PropertyDoubleValueEntity findDoubleValueByValue(java.lang.Double value)
Specified by:
findDoubleValueByValue in class AbstractPropertyValueDAOImpl

createDoubleValue

protected PropertyDoubleValueEntity createDoubleValue(java.lang.Double value)
Specified by:
createDoubleValue in class AbstractPropertyValueDAOImpl

findSerializableValueById

protected PropertySerializableValueEntity findSerializableValueById(java.lang.Long id)
Specified by:
findSerializableValueById in class AbstractPropertyValueDAOImpl

createSerializableValue

protected PropertySerializableValueEntity createSerializableValue(java.io.Serializable value)
Specified by:
createSerializableValue in class AbstractPropertyValueDAOImpl

findPropertyValueById

protected PropertyValueEntity findPropertyValueById(java.lang.Long id)
Specified by:
findPropertyValueById in class AbstractPropertyValueDAOImpl

findPropertyValueByValue

protected PropertyValueEntity findPropertyValueByValue(java.io.Serializable value)
Specified by:
findPropertyValueByValue in class AbstractPropertyValueDAOImpl

createPropertyValue

protected PropertyValueEntity createPropertyValue(java.io.Serializable value)
Specified by:
createPropertyValue in class AbstractPropertyValueDAOImpl

findPropertyById

protected java.util.List findPropertyById(java.lang.Long id)
Specified by:
findPropertyById in class AbstractPropertyValueDAOImpl

findPropertiesByIds

protected void findPropertiesByIds(java.util.List ids,
                                   PropertyValueDAO.PropertyFinderCallback callback)
Specified by:
findPropertiesByIds in class AbstractPropertyValueDAOImpl

createPropertyRoot

protected java.lang.Long createPropertyRoot()
Specified by:
createPropertyRoot in class AbstractPropertyValueDAOImpl

getPropertyRoot

protected PropertyRootEntity getPropertyRoot(java.lang.Long id)
Specified by:
getPropertyRoot in class AbstractPropertyValueDAOImpl

updatePropertyRoot

protected PropertyRootEntity updatePropertyRoot(PropertyRootEntity entity)
Specified by:
updatePropertyRoot in class AbstractPropertyValueDAOImpl

deletePropertyRoot

protected void deletePropertyRoot(java.lang.Long id)
Specified by:
deletePropertyRoot in class AbstractPropertyValueDAOImpl

createPropertyUniqueContext

protected PropertyUniqueContextEntity createPropertyUniqueContext(java.lang.Long valueId1,
                                                                  java.lang.Long valueId2,
                                                                  java.lang.Long valueId3,
                                                                  java.lang.Long propertyId)
Specified by:
createPropertyUniqueContext in class AbstractPropertyValueDAOImpl

getPropertyUniqueContextById

protected PropertyUniqueContextEntity getPropertyUniqueContextById(java.lang.Long id)
Specified by:
getPropertyUniqueContextById in class AbstractPropertyValueDAOImpl

getPropertyUniqueContextByValues

protected PropertyUniqueContextEntity getPropertyUniqueContextByValues(java.lang.Long valueId1,
                                                                       java.lang.Long valueId2,
                                                                       java.lang.Long valueId3)
Specified by:
getPropertyUniqueContextByValues in class AbstractPropertyValueDAOImpl

getPropertyUniqueContextByValues

protected void getPropertyUniqueContextByValues(PropertyValueDAO.PropertyUniqueContextCallback callback,
                                                java.lang.Long[] valueIds)
Specified by:
getPropertyUniqueContextByValues in class AbstractPropertyValueDAOImpl

updatePropertyUniqueContext

protected PropertyUniqueContextEntity updatePropertyUniqueContext(PropertyUniqueContextEntity entity)
Specified by:
updatePropertyUniqueContext in class AbstractPropertyValueDAOImpl

deletePropertyUniqueContext

public void deletePropertyUniqueContext(java.lang.Long id)
See Also:
PropertyValueDAO.createPropertyUniqueContext(Serializable, Serializable, Serializable, Serializable)

deletePropertyUniqueContexts

protected int deletePropertyUniqueContexts(java.lang.Long[] valueIds)
Specified by:
deletePropertyUniqueContexts in class AbstractPropertyValueDAOImpl

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: AbstractPropertyValueDAOImpl
Create an entry for the map or collection link.

Specified by:
createPropertyLink in class AbstractPropertyValueDAOImpl
Parameters:
rootPropId - the root (entry-point) property ID
propIndex - the property number within the root property
containedIn - the property that contains the current value
keyPropId - the map key entity ID or collection position count
valuePropId - 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: AbstractPropertyValueDAOImpl
Remove all property links for a given property root.

Specified by:
deletePropertyLinks in class AbstractPropertyValueDAOImpl
Parameters:
rootPropId - the root (entry-point) property ID


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.