public interface PropertyValueDAO
Modifier and Type | Interface and Description |
---|---|
static interface |
PropertyValueDAO.PropertyFinderCallback
A callback for handling return properties
|
static interface |
PropertyValueDAO.PropertyUniqueContextCallback
A callback for handling return property unique contexts
|
Modifier and Type | Method and Description |
---|---|
void |
cleanupUnusedValues()
Remove orphaned properties.
|
Serializable |
convertPropertyIdSearchRows(List<PropertyIdSearchRow> rows)
Utility method to convert property query results into the original value.
|
Long |
createProperty(Serializable value)
Use for accessing non-unique, exploded properties; see interface comments.
|
org.alfresco.util.Pair<Long,Serializable> |
createPropertySerializableValue(Serializable value)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments.
|
org.alfresco.util.Pair<Long,Long> |
createPropertyUniqueContext(Serializable value1,
Serializable value2,
Serializable value3,
Serializable propertyValue1)
alf_prop_unique_ctx accessor: create a unique context with an optional
associated value.
|
void |
deleteProperty(Long id)
Use for accessing non-unique, exploded properties; see interface comments.
|
void |
deletePropertyUniqueContext(Long id) |
int |
deletePropertyUniqueContext(Serializable... values)
Delete sets of unique contexts based on one, two or three context values.
|
org.alfresco.util.Pair<Long,Class<?>> |
getOrCreatePropertyClass(Class<?> value)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments.
|
org.alfresco.util.Pair<Long,Date> |
getOrCreatePropertyDateValue(Date value)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments.
|
org.alfresco.util.Pair<Long,Double> |
getOrCreatePropertyDoubleValue(Double value)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments.
|
org.alfresco.util.Pair<Long,String> |
getOrCreatePropertyStringValue(String value)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments.
|
org.alfresco.util.Pair<Long,Serializable> |
getOrCreatePropertyValue(Serializable value)
Use for accessing unique properties; see interface comments.
|
void |
getPropertiesByIds(List<Long> ids,
PropertyValueDAO.PropertyFinderCallback callback)
Use for accessing non-unique, exploded properties; see interface comments.
|
Serializable |
getPropertyById(Long id)
Use for accessing non-unique, exploded properties; see interface comments.
|
org.alfresco.util.Pair<Long,Class<?>> |
getPropertyClass(Class<?> value)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments.
|
org.alfresco.util.Pair<Long,Class<?>> |
getPropertyClassById(Long id)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments.
|
org.alfresco.util.Pair<Long,Date> |
getPropertyDateValue(Date value)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments.
|
org.alfresco.util.Pair<Long,Date> |
getPropertyDateValueById(Long id)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments.
|
org.alfresco.util.Pair<Long,Double> |
getPropertyDoubleValue(Double value)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments.
|
org.alfresco.util.Pair<Long,Double> |
getPropertyDoubleValueById(Long id)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments.
|
org.alfresco.util.Pair<Long,Serializable> |
getPropertySerializableValueById(Long id)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments.
|
org.alfresco.util.Pair<String,Long> |
getPropertyStringCaseSensitiveSearchParameters(String value)
Utility method to get query parameters for case-sensitive string searching
|
org.alfresco.util.Pair<Long,String> |
getPropertyStringValue(String value)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments.
|
org.alfresco.util.Pair<Long,String> |
getPropertyStringValueById(Long id)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments.
|
void |
getPropertyUniqueContext(PropertyValueDAO.PropertyUniqueContextCallback callback,
Serializable... values)
Get unique contexts (unique context ID and associated shared property ID), if any, based on one, two or three context values.
|
org.alfresco.util.Pair<Long,Long> |
getPropertyUniqueContext(Serializable value1,
Serializable value2,
Serializable value3)
Get the unique context ID and associated shared property ID, or null if no
such context exists.
|
org.alfresco.util.Pair<Long,Serializable> |
getPropertyValue(Serializable value)
Use for accessing unique properties; see interface comments.
|
org.alfresco.util.Pair<Long,Serializable> |
getPropertyValueById(Long id)
Use for accessing unique properties; see interface comments.
|
void |
updateProperty(Long id,
Serializable value)
Use for accessing non-unique, exploded properties; see interface comments.
|
void |
updatePropertyUniqueContext(Serializable value1,
Serializable value2,
Serializable value3,
Serializable propertyValue)
Update the property associated with a unique context (based on one, two or three context values).
|
void |
updatePropertyUniqueContextKeys(Long id,
Serializable value1,
Serializable value2,
Serializable value3)
Update the unique context, preserving any associated property.
|
org.alfresco.util.Pair<Long,Class<?>> getPropertyClassById(Long id)
id
- the ID (may not be null)org.alfresco.util.Pair<Long,Class<?>> getPropertyClass(Class<?> value)
value
- the value to find the ID for (may not be null)org.alfresco.util.Pair<Long,Class<?>> getOrCreatePropertyClass(Class<?> value)
value
- the value to find the ID for (may not be null)org.alfresco.util.Pair<Long,Date> getPropertyDateValueById(Long id)
id
- the ID (may not be null)org.alfresco.util.Pair<Long,Date> getPropertyDateValue(Date value)
value
- the value to find the ID for (may not be null)org.alfresco.util.Pair<Long,Date> getOrCreatePropertyDateValue(Date value)
value
- the value to find the ID for (may not be null)org.alfresco.util.Pair<String,Long> getPropertyStringCaseSensitiveSearchParameters(String value)
CrcHelper
org.alfresco.util.Pair<Long,String> getPropertyStringValueById(Long id)
id
- the ID (may not be null)org.alfresco.util.Pair<Long,String> getPropertyStringValue(String value)
value
- the value to find the ID for (may not be null)org.alfresco.util.Pair<Long,String> getOrCreatePropertyStringValue(String value)
value
- the value to find the ID for (may not be null)org.alfresco.util.Pair<Long,Double> getPropertyDoubleValueById(Long id)
id
- the ID (may not be null)org.alfresco.util.Pair<Long,Double> getPropertyDoubleValue(Double value)
value
- the value to find the ID for (may not be null)org.alfresco.util.Pair<Long,Double> getOrCreatePropertyDoubleValue(Double value)
value
- the value to find the ID for (may not be null)org.alfresco.util.Pair<Long,Serializable> getPropertySerializableValueById(Long id)
id
- the ID (may not be null)org.alfresco.util.Pair<Long,Serializable> createPropertySerializableValue(Serializable value)
value
- the value to find the ID for (may not be null)org.alfresco.util.Pair<Long,Serializable> getPropertyValueById(Long id)
id
- the ID (may not be null)org.alfresco.util.Pair<Long,Serializable> getPropertyValue(Serializable value)
value
- the value to find the ID for (may be null)org.alfresco.util.Pair<Long,Serializable> getOrCreatePropertyValue(Serializable value)
value
- the value to find the ID for (may be null)Serializable getPropertyById(Long id)
id
- the ID (may not be null)org.springframework.dao.DataIntegrityViolationException
- if the ID is invalidvoid getPropertiesByIds(List<Long> ids, PropertyValueDAO.PropertyFinderCallback callback)
ids
- the IDs (may not be null; may be empty)callback
- the callback to handle the resultsorg.springframework.dao.DataIntegrityViolationException
- if any of the the IDs are invalidLong createProperty(Serializable value)
value
- the value to create (may be null)void updateProperty(Long id, Serializable value)
id
- the ID of the root property to changevalue
- the new property valuevoid deleteProperty(Long id)
id
- the ID of the root property to deleteorg.alfresco.util.Pair<Long,Long> createPropertyUniqueContext(Serializable value1, Serializable value2, Serializable value3, Serializable propertyValue1)
value1
- a simple key value (not a collection) (may be null)value2
- a simple key value (not a collection) (may be null)value3
- a simple key value (not a collection) (may be null)propertyValue1
- a value to store against the key (may be null)PropertyUniqueConstraintViolation
- if the combination is not uniqueorg.alfresco.util.Pair<Long,Long> getPropertyUniqueContext(Serializable value1, Serializable value2, Serializable value3)
value1
- first valuevalue2
- second valuevalue3
- third valuecreatePropertyUniqueContext(Serializable, Serializable, Serializable, Serializable)
void getPropertyUniqueContext(PropertyValueDAO.PropertyUniqueContextCallback callback, Serializable... values)
values
- a combination of one to three values in ordercreatePropertyUniqueContext(Serializable, Serializable, Serializable, Serializable)
void updatePropertyUniqueContextKeys(Long id, Serializable value1, Serializable value2, Serializable value3)
PropertyUniqueConstraintViolation
- if the combination is not uniquecreatePropertyUniqueContext(Serializable, Serializable, Serializable, Serializable)
void updatePropertyUniqueContext(Serializable value1, Serializable value2, Serializable value3, Serializable propertyValue)
void deletePropertyUniqueContext(Long id)
int deletePropertyUniqueContext(Serializable... values)
values
- a combination of one to three values in orderSerializable convertPropertyIdSearchRows(List<PropertyIdSearchRow> rows)
rows
- the search results for a single root propertyIllegalArgumentException
- if rows don't all share the same root property IDvoid cleanupUnusedValues()
Copyright © 2005–2017 Alfresco Software. All rights reserved.