|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface PropertyValueComponent
A component that gives high-level access to manipulate standalone properties.
There are two types of properties: shared and unshared.
Simple, Shared Properties:
| Method Summary | |
|---|---|
java.lang.Long |
createPropertyUniqueContext(java.io.Serializable value1,
java.io.Serializable value2,
java.io.Serializable value3)
Create a new combination of three unique properties. |
java.lang.Long |
createUnsharedProperty(java.io.Serializable value)
|
void |
deletePropertyUniqueContext(java.lang.Long id)
Delete a unique property context. |
int |
deletePropertyUniqueContexts(java.io.Serializable[] values)
Delete a combination of three unique properties. |
void |
deleteUnsharedProperty(java.lang.Long id)
|
java.lang.Long |
getOrCreateSharedValue(java.io.Serializable value)
|
java.lang.Long |
getPropertyUniqueContext(java.io.Serializable value1,
java.io.Serializable value2,
java.io.Serializable value3)
Get the ID of a unique property context. |
java.io.Serializable |
getSharedValueById(java.lang.Long id)
|
java.lang.Long |
getSharedValueId(java.io.Serializable value)
|
java.io.Serializable |
getUnsharedPropertyById(java.lang.Long id)
|
void |
updatePropertyUniqueContext(java.lang.Long id,
java.io.Serializable value1,
java.io.Serializable value2,
java.io.Serializable value3)
Update a unique property context. |
java.lang.Long |
updatePropertyUniqueContext(java.io.Serializable value1Before,
java.io.Serializable value2Before,
java.io.Serializable value3Before,
java.io.Serializable value1,
java.io.Serializable value2,
java.io.Serializable value3)
Update a combination of three unique properties. |
void |
updateUnsharedProperty(java.lang.Long id,
java.io.Serializable value)
|
| Method Detail |
|---|
java.io.Serializable getSharedValueById(java.lang.Long id)
id - the ID (may not be null)
org.springframework.dao.DataIntegrityViolationException - if the ID is invalidjava.lang.Long getSharedValueId(java.io.Serializable value)
value - the value to find the ID for (may be null)
java.lang.Long getOrCreateSharedValue(java.io.Serializable value)
value - the value to find the ID for (may be null)
java.io.Serializable getUnsharedPropertyById(java.lang.Long id)
id - the ID (may not be null)
org.springframework.dao.DataIntegrityViolationException - if the ID is invalidjava.lang.Long createUnsharedProperty(java.io.Serializable value)
value - the value to create (may be null)
void updateUnsharedProperty(java.lang.Long id,
java.io.Serializable value)
id - the ID of the root property to change (may not be null)value - the new property value
org.springframework.dao.DataIntegrityViolationException - if the ID is invalidvoid deleteUnsharedProperty(java.lang.Long id)
id - the ID of the root property to delete (may be null)
org.springframework.dao.DataIntegrityViolationException - if the ID is invalid
java.lang.Long createPropertyUniqueContext(java.io.Serializable value1,
java.io.Serializable value2,
java.io.Serializable value3)
value1 - the first property, which should denote application name or use-case ID
(null allowed)value2 - the second property, which should denote the context or container value
(null allowed)value3 - the third property, which should denote the unique value within the context
of the previous two properties (null allowed)
PropertyUniqueConstraintViolation - if the combination is not unique
java.lang.Long getPropertyUniqueContext(java.io.Serializable value1,
java.io.Serializable value2,
java.io.Serializable value3)
PropertyValueComponent.createPropertyUniqueContext(Serializable, Serializable, Serializable)
void updatePropertyUniqueContext(java.lang.Long id,
java.io.Serializable value1,
java.io.Serializable value2,
java.io.Serializable value3)
PropertyValueComponent.createPropertyUniqueContext(Serializable, Serializable, Serializable)
java.lang.Long updatePropertyUniqueContext(java.io.Serializable value1Before,
java.io.Serializable value2Before,
java.io.Serializable value3Before,
java.io.Serializable value1,
java.io.Serializable value2,
java.io.Serializable value3)
create is better
if there is no pre-existing set of values.
value1Before - the first property before (null allowed)value2Before - the second property before (null allowed)value3Before - the third property before (null allowed)value1 - the first property (null allowed)value2 - the second property (null allowed)value3 - the third property (null allowed)
PropertyUniqueConstraintViolation - if the new combination is not uniquevoid deletePropertyUniqueContext(java.lang.Long id)
PropertyValueComponent.createPropertyUniqueContext(Serializable, Serializable, Serializable)int deletePropertyUniqueContexts(java.io.Serializable[] values)
values - an array of one, two or three values, any of which may be null
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||