|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertyValueDAO
DAO services for alf_prop_XXX tables.
Nested Class Summary | |
---|---|
static interface |
PropertyValueDAO.PropertyFinderCallback
A callback for handling return properties |
static interface |
PropertyValueDAO.PropertyUniqueContextCallback
A callback for handling return property unique contexts |
Method Summary | |
---|---|
java.io.Serializable |
convertPropertyIdSearchRows(java.util.List rows)
Utility method to convert property query results into the original value. |
java.lang.Long |
createProperty(java.io.Serializable value)
Use for accessing non-unique, exploded properties; see interface comments. |
org.alfresco.util.Pair |
createPropertySerializableValue(java.io.Serializable value)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments. |
org.alfresco.util.Pair |
createPropertyUniqueContext(java.io.Serializable value1,
java.io.Serializable value2,
java.io.Serializable value3,
java.io.Serializable propertyValue1)
alf_prop_unique_ctx accessor: create a unique context with an optional associated value. |
void |
deleteProperty(java.lang.Long id)
Use for accessing non-unique, exploded properties; see interface comments. |
void |
deletePropertyUniqueContext(java.lang.Long id)
|
int |
deletePropertyUniqueContext(java.io.Serializable[] values)
Delete sets of unique contexts based on one, two or three context values. |
org.alfresco.util.Pair |
getOrCreatePropertyClass(java.lang.Class value)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments. |
org.alfresco.util.Pair |
getOrCreatePropertyDateValue(java.util.Date value)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments. |
org.alfresco.util.Pair |
getOrCreatePropertyDoubleValue(java.lang.Double value)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments. |
org.alfresco.util.Pair |
getOrCreatePropertyStringValue(java.lang.String value)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments. |
org.alfresco.util.Pair |
getOrCreatePropertyValue(java.io.Serializable value)
Use for accessing unique properties; see interface comments. |
void |
getPropertiesByIds(java.util.List ids,
PropertyValueDAO.PropertyFinderCallback callback)
Use for accessing non-unique, exploded properties; see interface comments. |
java.io.Serializable |
getPropertyById(java.lang.Long id)
Use for accessing non-unique, exploded properties; see interface comments. |
org.alfresco.util.Pair |
getPropertyClass(java.lang.Class value)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments. |
org.alfresco.util.Pair |
getPropertyClassById(java.lang.Long id)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments. |
org.alfresco.util.Pair |
getPropertyDateValue(java.util.Date value)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments. |
org.alfresco.util.Pair |
getPropertyDateValueById(java.lang.Long id)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments. |
org.alfresco.util.Pair |
getPropertyDoubleValue(java.lang.Double value)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments. |
org.alfresco.util.Pair |
getPropertyDoubleValueById(java.lang.Long id)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments. |
org.alfresco.util.Pair |
getPropertySerializableValueById(java.lang.Long id)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments. |
org.alfresco.util.Pair |
getPropertyStringCaseSensitiveSearchParameters(java.lang.String value)
Utility method to get query parameters for case-sensitive string searching |
org.alfresco.util.Pair |
getPropertyStringValue(java.lang.String value)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments. |
org.alfresco.util.Pair |
getPropertyStringValueById(java.lang.Long id)
FOR INTERNAL USE ONLY: Do not use directly; see interface comments. |
void |
getPropertyUniqueContext(PropertyValueDAO.PropertyUniqueContextCallback callback,
java.io.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 |
getPropertyUniqueContext(java.io.Serializable value1,
java.io.Serializable value2,
java.io.Serializable value3)
Get the unique context ID and associated shared property ID, or null if no such context exists. |
org.alfresco.util.Pair |
getPropertyValue(java.io.Serializable value)
Use for accessing unique properties; see interface comments. |
org.alfresco.util.Pair |
getPropertyValueById(java.lang.Long id)
Use for accessing unique properties; see interface comments. |
void |
updateProperty(java.lang.Long id,
java.io.Serializable value)
Use for accessing non-unique, exploded properties; see interface comments. |
void |
updatePropertyUniqueContext(java.lang.Long id,
java.io.Serializable propertyValue1)
Update the property associated with a unique context. |
void |
updatePropertyUniqueContext(java.lang.Long id,
java.io.Serializable value1,
java.io.Serializable value2,
java.io.Serializable value3)
Update the unique context, preserving any associated property. |
Method Detail |
---|
org.alfresco.util.Pair getPropertyClassById(java.lang.Long id)
id
- the ID (may not be null)org.alfresco.util.Pair getPropertyClass(java.lang.Class value)
value
- the value to find the ID for (may not be null)org.alfresco.util.Pair getOrCreatePropertyClass(java.lang.Class value)
value
- the value to find the ID for (may not be null)org.alfresco.util.Pair getPropertyDateValueById(java.lang.Long id)
id
- the ID (may not be null)org.alfresco.util.Pair getPropertyDateValue(java.util.Date value)
value
- the value to find the ID for (may not be null)org.alfresco.util.Pair getOrCreatePropertyDateValue(java.util.Date value)
value
- the value to find the ID for (may not be null)org.alfresco.util.Pair getPropertyStringCaseSensitiveSearchParameters(java.lang.String value)
CrcHelper
org.alfresco.util.Pair getPropertyStringValueById(java.lang.Long id)
id
- the ID (may not be null)org.alfresco.util.Pair getPropertyStringValue(java.lang.String value)
value
- the value to find the ID for (may not be null)org.alfresco.util.Pair getOrCreatePropertyStringValue(java.lang.String value)
value
- the value to find the ID for (may not be null)org.alfresco.util.Pair getPropertyDoubleValueById(java.lang.Long id)
id
- the ID (may not be null)org.alfresco.util.Pair getPropertyDoubleValue(java.lang.Double value)
value
- the value to find the ID for (may not be null)org.alfresco.util.Pair getOrCreatePropertyDoubleValue(java.lang.Double value)
value
- the value to find the ID for (may not be null)org.alfresco.util.Pair getPropertySerializableValueById(java.lang.Long id)
id
- the ID (may not be null)org.alfresco.util.Pair createPropertySerializableValue(java.io.Serializable value)
value
- the value to find the ID for (may not be null)org.alfresco.util.Pair getPropertyValueById(java.lang.Long id)
id
- the ID (may not be null)org.alfresco.util.Pair getPropertyValue(java.io.Serializable value)
value
- the value to find the ID for (may be null)org.alfresco.util.Pair getOrCreatePropertyValue(java.io.Serializable value)
#getOrCreatePropertyValue(Serializable, int)
.
value
- the value to find the ID for (may be null)java.io.Serializable getPropertyById(java.lang.Long id)
id
- the ID (may not be null)
org.springframework.dao.DataIntegrityViolationException
- if the ID is invalidvoid getPropertiesByIds(java.util.List ids, PropertyValueDAO.PropertyFinderCallback callback)
ids
- the IDs (may not be null; may be empty)callback
- the callback to handle the results
org.springframework.dao.DataIntegrityViolationException
- if any of the the IDs are invalidjava.lang.Long createProperty(java.io.Serializable value)
value
- the value to create (may be null)
void updateProperty(java.lang.Long id, java.io.Serializable value)
id
- the ID of the root property to changevalue
- the new property valuevoid deleteProperty(java.lang.Long id)
id
- the ID of the root property to deleteorg.alfresco.util.Pair createPropertyUniqueContext(java.io.Serializable value1, java.io.Serializable value2, java.io.Serializable value3, java.io.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 getPropertyUniqueContext(java.io.Serializable value1, java.io.Serializable value2, java.io.Serializable value3)
values
- a combination of one to three values in order
PropertyValueDAO.createPropertyUniqueContext(Serializable, Serializable, Serializable, Serializable)
void getPropertyUniqueContext(PropertyValueDAO.PropertyUniqueContextCallback callback, java.io.Serializable[] values)
values
- a combination of one to three values in orderPropertyValueDAO.createPropertyUniqueContext(Serializable, Serializable, Serializable, Serializable)
void updatePropertyUniqueContext(java.lang.Long id, java.io.Serializable value1, java.io.Serializable value2, java.io.Serializable value3)
PropertyUniqueConstraintViolation
- if the combination is not uniquePropertyValueDAO.createPropertyUniqueContext(Serializable, Serializable, Serializable, Serializable)
void updatePropertyUniqueContext(java.lang.Long id, java.io.Serializable propertyValue1)
PropertyValueDAO.createPropertyUniqueContext(Serializable, Serializable, Serializable, Serializable)
void deletePropertyUniqueContext(java.lang.Long id)
PropertyValueDAO.createPropertyUniqueContext(Serializable, Serializable, Serializable, Serializable)
int deletePropertyUniqueContext(java.io.Serializable[] values)
values
- a combination of one to three values in order
java.io.Serializable convertPropertyIdSearchRows(java.util.List rows)
rows
- the search results for a single root property
java.lang.IllegalArgumentException
- if rows don't all share the same root property ID
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |