|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Persister
An interface to classes providing access to the persistent layer.
Nested Class Summary | |
---|---|
static class |
Persister.Action
The persistence actions. |
static class |
Persister.Script
The script type. |
Method Summary | ||
---|---|---|
boolean |
abortTransaction()
Aborts a transaction to cancel updates to the repository. |
|
boolean |
beginTransaction()
Begins a transaction to start updates in the repository. |
|
|
buildQuery(Class<T> clazz,
String expr,
Persister.Script type)
Builds a query to a query language expression for the specified class. |
|
DBQuery<Object[]> |
buildQuery(DBCriteria<?> criteria,
String[] attributes,
boolean distinct,
Object... clazz)
Builds a query to a specified criteria returning only selected attributes. |
|
|
buildQuery(DBCriteria<T> criteria,
boolean distinct,
Object... clazz)
Builds a query to a specified criteria. |
|
|
buildQuery(Object sample,
DBCriteria<?>... criteria)
Builds a query to a sample object, an identity or a specific class. |
|
|
buildQuery(String className,
String expr,
Persister.Script type)
Builds a query to a query language expression for the named class. |
|
void |
clearCache()
Clears the cache associated to this persister, if any. |
|
Object |
clone()
Returns a clone. |
|
void |
close()
Closes the connection to the repository. |
|
boolean |
commitTransaction()
Commits a transaction to complete updates in the repository. |
|
|
createCriteria(Class<T> clazz)
Creates implementation specific query criteria for the specified class. |
|
|
createCriteria(String className)
Creates implementation specific query criteria for the named class. |
|
void |
deleteObject(Object object)
Deletes an object from the repository. |
|
void |
deleteObjects(Class<?> clazz)
Deletes objects of the specified class from the repository as one transaction. |
|
void |
deleteObjects(Class<?> clazz,
String attribute,
Object value,
DBCriteria.Condition condition)
Deletes objects of the specified class from the repository as one transaction. |
|
void |
deleteObjects(Collection<?> objects)
Deletes a collection of objects from the repository as one transaction. |
|
void |
deleteObjects(DBCriteria<?> criteria,
Object... clazz)
Deletes objects of the specified criteria as one transaction. |
|
void |
deleteObjects(DBQuery<?> query)
Deletes query objects from the repository as one transaction. |
|
void |
deleteObjects(String className)
Deletes objects of the named class from the repository as one transaction. |
|
void |
deleteObjects(String className,
String attribute,
Object value,
DBCriteria.Condition condition)
Deletes objects of the named class from the repository as one transaction. |
|
void |
deleteReferences(Object object,
String... classNames)
Deletes an object and its dependencies from the repository. |
|
void |
dump(Collection<?> objects,
File file)
Dumps objects into a dump file if this persister supports files. |
|
void |
execute(String sql)
Executes an SQL statement. |
|
void |
execute(String[] sql)
Executes SQL statements as a batch. |
|
boolean |
exists(Object object)
Checks whether an object exists in the repository. |
|
void |
exportReferences(Object source,
Object target,
boolean foreign,
AttributeFilter... filter)
Exports references from a source object to a target object. |
|
Object |
getAttributeValue(Object object,
String field)
Gets the reflected attribute value of the specified object. |
|
Object[] |
getAttributeValues(Object object,
String field)
Gets the reflected attribute values of the specified object. |
|
String |
getConnectionAlias()
Gets the connection alias bound to this persister. |
|
Object |
getGroupId()
Gets the group id of this persister. |
|
String |
getIdentityAttribute(Object sample,
String... classNames)
Gets the identity attribute of the specified sample object. |
|
String[] |
getIdentityAttributes(Object sample,
String... classNames)
Gets the identity attributes of the specified sample object. |
|
Object |
getIdentityValue(Object object)
Gets the identity attribute value of the specified object. |
|
Object[] |
getIdentityValues(Object object)
Gets an array of identity attribute values of the specified object. |
|
Locale |
getLocale()
Gets the locale of this persister. |
|
MBeanServer |
getMBeanServer()
Gets the MBean server of this persister. |
|
Object |
getObject(Object object)
Gets an object from the repository. |
|
String[] |
getPersistentAttributes(Object sample,
String... classNames)
Gets the persistent attributes of the specified sample object. |
|
String |
getPersistentColumn(Object sample,
String attribute,
String... classNames)
Gets the persistent column of an attribute of the specified sample object. |
|
String |
getPersistentTable(Object sample,
String... classNames)
Gets the persistent table of the specified sample object. |
|
Object |
getPersister()
Gets the implementation specific persister adaptee, if any. |
|
PersisterFactory |
getPersisterFactory()
Gets the persister factory of this persister. |
|
Principal |
getPrincipal()
Gets the principal of this persister. |
|
String |
getProviderAlias()
Gets the persistence provider alias. |
|
|
getReferenceValue(Object object,
String field)
Gets the referenced object of the specified object. |
|
|
getReferenceValues(Object object,
String field)
Gets a list of referenced objects of the specified object. |
|
String |
getRepository(String className)
Gets the name of the repository of the named class. |
|
Object |
getRootGroupId()
Gets the root group id of this persister. |
|
Object |
getUserId()
Gets the user id of this persister. |
|
Object |
getValidatedValue(Object object,
String field)
Gets the validated attribute value of the specified object. |
|
void |
importReferences(Object source,
Object target,
boolean foreign,
AttributeFilter... filter)
Imports references from the specified source object to a target object. |
|
void |
insertObject(Object object)
Inserts an object to the repository. |
|
void |
insertObjects(Collection<?> objects)
Inserts a collection of objects to the repository as one transaction. |
|
void |
insertReferences(Object object,
String... classNames)
Inserts an object and its dependencies to the repository. |
|
boolean |
isClosed()
Checks whether this persister is closed. |
|
boolean |
isInTransaction()
Checks whether this persister is performing a transaction. |
|
boolean |
isPersistentAttribute(Object sample,
String attribute,
String... classNames)
Checks whether an attribute of the specified sample object is persistent. |
|
boolean |
isPersistentClass(Object sample,
String... classNames)
Checks whether the class of the specified sample object is persistent. |
|
boolean |
isPersistentObject(Object object)
Checks whether the specified object is persistent. |
|
boolean |
isRelationAttribute(Object sample,
String attribute,
String... classNames)
Checks whether an attribute of the specified sample object is relative. |
|
boolean |
isTransactionsSupported()
Checks whether this persister implementation supports transactions. |
|
Collection<?> |
load(File file)
Loads objects from a dump file if this persister supports files. |
|
Object |
mergeObject(Object object,
AttributeFilter... filter)
Merges an object in the repository. |
|
Object |
mergeReferences(Object object,
AttributeFilter filter,
String... classNames)
Merges an object and its dependencies to the repository by applying an attribute filter. |
|
Object |
mergeReferences(Object object,
String... classNames)
Merges an object and its dependencies to the repository. |
|
Object |
queryBySample(Object sample,
DBCriteria<?>... criteria)
Queries an object by its properties or identity. |
|
int |
queryCount(Class<?> clazz,
Object... values)
Queries the count of objects the specified class. |
|
int |
queryCount(Class<?> clazz,
String attribute,
Object value,
DBCriteria.Condition condition)
Queries the count of objects of the specified class. |
|
int |
queryCount(DBCriteria<?> criteria,
Object... clazz)
Queries the count of objects of the specified criteria. |
|
int |
queryCount(DBQuery<?> query)
Queries the count of objects the given query would return. |
|
int |
queryCount(String className,
Object... values)
Queries the count of objects the named class. |
|
int |
queryCount(String className,
String attribute,
Object value,
DBCriteria.Condition condition)
Queries the count of objects of the named class. |
|
|
queryIterator(Class<T> clazz,
Object... values)
Queries an iterator to objects of the specified class. |
|
|
queryIterator(Class<T> clazz,
String attribute,
Object value,
DBCriteria.Condition condition)
Queries an iterator to a collection of objects of the specified class. |
|
|
queryIterator(DBCriteria<T> criteria,
Object... clazz)
Queries an iterator to a collection of objects of the specified criteria. |
|
|
queryIterator(DBQuery<T> query)
Queries an iterator to a collection of objects. |
|
|
queryIterator(String className,
Object... values)
Queries an iterator to objects of the named class. |
|
|
queryIterator(String className,
String attribute,
Object value,
DBCriteria.Condition condition)
Queries an iterator to a collection of objects of the named class. |
|
|
queryObject(Class<T> clazz,
Object... values)
Queries an object of the specified class. |
|
|
queryObject(Class<T> clazz,
String attribute,
Object value)
Queries an object of the specified class with the named attribute. |
|
|
queryObject(DBCriteria<T> criteria,
Object... clazz)
Queries an object of the specified criteria. |
|
|
queryObject(DBQuery<T> query)
Queries an object. |
|
|
queryObject(String className,
Object... values)
Queries an object of the named class. |
|
|
queryObject(String className,
String attribute,
Object value)
Queries an object of the named class with the named attribute. |
|
|
queryObjects(Class<T> clazz)
Queries objects of the specified class. |
|
|
queryObjects(Class<T> clazz,
String attribute,
Object value,
DBCriteria.Condition condition)
Queries objects of the specified class. |
|
|
queryObjects(DBCriteria<T> criteria,
Object... clazz)
Queries objects of the specified criteria. |
|
|
queryObjects(DBQuery<T> query)
Queries objects. |
|
|
queryObjects(String className)
Queries objects of the named class. |
|
|
queryObjects(String className,
String attribute,
Object value,
DBCriteria.Condition condition)
Queries objects of the named class. |
|
boolean |
refreshLocators(Object object,
String... classNames)
Refreshes locators of the specified object. |
|
boolean |
refreshReference(Object object,
String reference,
String... classNames)
Refreshes a named reference of the specified object. |
|
boolean |
refreshReferences(Object object,
String... classNames)
Refreshes references of the specified object. |
|
void |
removeFromCache(Object object)
Removes the specified object from the cache. |
|
void |
resetIdentityValues(Object object)
Resets identity attribute values of the specified object to nulls, if they are auto incremental. |
|
void |
retrieveReference(Object object,
String reference,
String... classNames)
Retrieves a named reference of the specified object. |
|
void |
retrieveReferences(Object object,
String... classNames)
Retrieves references of the specified object. |
|
void |
setAttributeValue(Object object,
String field,
Object value)
Sets the reflected attribute value of the specified object. |
|
void |
setIdentityValue(Object object,
Object value)
Sets the identity attribute value of the specified object. |
|
void |
setIdentityValues(Object object,
Object[] values)
Sets an array of identity attribute values of the specified object. |
|
void |
setLocale(Locale loc)
Sets the locale of this persister. |
|
void |
setValidatedValue(Object object,
String field,
Object value)
Sets the validated attribute value of the specified object. |
|
void |
storeObject(Object object)
Stores an object to the repository. |
|
void |
storeObjects(Collection<?> objects)
Stores a collection of objects to the repository as one transaction. |
|
void |
storeReferences(Object object,
String... classNames)
Stores an object and its dependencies to the repository. |
|
void |
updateObject(Object object)
Updates an object in the repository. |
|
void |
updateObjects(Collection<?> objects)
Updates a collection of objects in the repository as one transaction. |
|
void |
updateReferences(Object object,
String... classNames)
Updates an object and its dependencies to the repository. |
Method Detail |
---|
Object clone()
Object getPersister()
String getConnectionAlias()
String getProviderAlias()
void close()
boolean isClosed()
void clearCache()
void removeFromCache(Object object)
object
- the object.void retrieveReferences(Object object, String... classNames)
Note that if dependent class names are not given, only the current class of the object is considered as a dependent class.
object
- the object.classNames
- dependent class names.void retrieveReference(Object object, String reference, String... classNames)
Note that if dependent class names are not given, only the current class of the object is considered as a dependent class.
object
- the object.reference
- the reference attribute.classNames
- dependent class names.boolean refreshReferences(Object object, String... classNames)
Note that if dependent class names are not given, only the current class of the object is considered as a dependent class.
object
- the object.classNames
- dependent class names.
boolean refreshReference(Object object, String reference, String... classNames)
Note that if dependent class names are not given, only the current class of the object is considered as a dependent class.
object
- the object.reference
- the reference attribute.classNames
- dependent class names.
boolean refreshLocators(Object object, String... classNames)
Note that if dependent class names are not given, only the current class of the object is considered as a dependent class.
object
- the object.classNames
- dependent class names.
String getIdentityAttribute(Object sample, String... classNames)
sample
- the sample object.classNames
- the dependent class names.
String[] getIdentityAttributes(Object sample, String... classNames)
sample
- the sample object.classNames
- the dependent class names.
String[] getPersistentAttributes(Object sample, String... classNames)
sample
- the sample object.classNames
- the dependent class names.
boolean isPersistentClass(Object sample, String... classNames)
sample
- the sample object.classNames
- the dependent class names.
boolean isPersistentAttribute(Object sample, String attribute, String... classNames)
sample
- the sample object.attribute
- the field.classNames
- the dependent class names.
boolean isRelationAttribute(Object sample, String attribute, String... classNames)
sample
- the sample object.attribute
- the field.classNames
- the dependent class names.
String getPersistentTable(Object sample, String... classNames)
sample
- the sample object.classNames
- the dependent class names.
String getPersistentColumn(Object sample, String attribute, String... classNames)
sample
- the sample object.attribute
- the field.classNames
- the dependent class names.
<T> DBCriteria<T> createCriteria(Class<T> clazz)
T
- the criteria type.clazz
- the class type.
<T> DBCriteria<T> createCriteria(String className)
T
- the criteria type.className
- the class name.
<T> DBQuery<T> buildQuery(Object sample, DBCriteria<?>... criteria)
T
- the query type.sample
- the sample, identity or class.criteria
- optional criteria.
<T> DBQuery<T> buildQuery(Class<T> clazz, String expr, Persister.Script type)
T
- the class type.clazz
- the class to query.expr
- the query expression.type
- the query type.
<T> DBQuery<T> buildQuery(String className, String expr, Persister.Script type)
T
- the class type.className
- the class name to query.expr
- the query expression.type
- the query type.
<T> DBQuery<T> buildQuery(DBCriteria<T> criteria, boolean distinct, Object... clazz)
Note that the signature must differ from that of a sample query to avoid conflicts.
T
- the class type.criteria
- an implementation specific criteria.distinct
- true for a distinct query, false otherwise.clazz
- an alternate class or class name.
DBQuery<Object[]> buildQuery(DBCriteria<?> criteria, String[] attributes, boolean distinct, Object... clazz)
criteria
- in implementation specific criteria.attributes
- the attributes to return.distinct
- true for a distinct query, false otherwise.clazz
- an alternate class or class name.
Object queryBySample(Object sample, DBCriteria<?>... criteria) throws PersistenceException
sample
- the sample, identity or class.criteria
- optional criteria.
PersistenceException
- on errors.<T> T queryObject(DBQuery<T> query) throws PersistenceException
T
- the query type.query
- the query.
PersistenceException
- on errors.<T> T queryObject(DBCriteria<T> criteria, Object... clazz) throws PersistenceException
T
- the class type.criteria
- the criteria to apply.clazz
- an alternate class or class name.
PersistenceException
- on errors.<T> T queryObject(Class<T> clazz, Object... values) throws PersistenceException
T
- the class type.clazz
- the class to query.values
- the PK(s) of the object.
PersistenceException
- on errors.<T> T queryObject(String className, Object... values) throws PersistenceException
T
- the class type.className
- the class name to query.values
- the PK(s) of the object.
PersistenceException
- on errors.<T> T queryObject(Class<T> clazz, String attribute, Object value) throws PersistenceException
T
- the class type.clazz
- the class to query.attribute
- the name of the attribute.value
- the value of the attribute.
PersistenceException
- on errors.<T> T queryObject(String className, String attribute, Object value) throws PersistenceException
T
- the class type.className
- the class name to query.attribute
- the name of the attribute.value
- the value of the attribute.
PersistenceException
- on errors.<T> Collection<T> queryObjects(Class<T> clazz) throws PersistenceException
T
- the class type.clazz
- the class to query.
PersistenceException
- on errors.<T> Collection<T> queryObjects(String className) throws PersistenceException
T
- the class type.className
- the class name to query.
PersistenceException
- on errors.<T> Collection<T> queryObjects(DBQuery<T> query) throws PersistenceException
T
- the query type.query
- the query.
PersistenceException
- on errors.<T> Collection<T> queryObjects(DBCriteria<T> criteria, Object... clazz) throws PersistenceException
T
- the class type.criteria
- the criteria to apply.clazz
- an alternate class or class name.
PersistenceException
- on errors.<T> Collection<T> queryObjects(Class<T> clazz, String attribute, Object value, DBCriteria.Condition condition) throws PersistenceException
T
- the class type.clazz
- the class to query.attribute
- the name of the attribute.value
- the value of the attribute.condition
- the condition for the criteria.
PersistenceException
- on errors.<T> Collection<T> queryObjects(String className, String attribute, Object value, DBCriteria.Condition condition) throws PersistenceException
T
- the class typeclassName
- the class name to query.attribute
- the name of the attribute.value
- the value of the attribute.condition
- the condition for the criteria.
PersistenceException
- on errors.<T> QueryIterator<T> queryIterator(Class<T> clazz, Object... values) throws PersistenceException
T
- the query type.clazz
- the class to query.values
- the PK(s) of the object.
PersistenceException
- on errors.<T> QueryIterator<T> queryIterator(String className, Object... values) throws PersistenceException
T
- the query type.className
- the class name to query.values
- the PK(s) of the object.
PersistenceException
- on errors.<T> QueryIterator<T> queryIterator(DBQuery<T> query) throws PersistenceException
T
- the query type.query
- the query.
PersistenceException
- on errors.<T> QueryIterator<T> queryIterator(DBCriteria<T> criteria, Object... clazz) throws PersistenceException
T
- the class type.criteria
- the criteria to apply.clazz
- an alternate class or class name.
PersistenceException
- on errors.<T> QueryIterator<T> queryIterator(Class<T> clazz, String attribute, Object value, DBCriteria.Condition condition) throws PersistenceException
T
- the class type.clazz
- the class to query.attribute
- the name of the attribute.value
- the value of the attribute.condition
- the condition for the criteria.
PersistenceException
- on errors.<T> QueryIterator<T> queryIterator(String className, String attribute, Object value, DBCriteria.Condition condition) throws PersistenceException
T
- the class type.className
- the class name to query.attribute
- the name of the attribute.value
- the value of the attribute.condition
- the condition for the criterion attribute.
PersistenceException
- on errors.int queryCount(Class<?> clazz, Object... values)
clazz
- the class to query.values
- the PK(s) of the object.
int queryCount(String className, Object... values)
className
- the class name to query.values
- the PK(s) of the object.
int queryCount(DBQuery<?> query)
query
- the query.
int queryCount(DBCriteria<?> criteria, Object... clazz)
criteria
- the criteria to apply.clazz
- an alternate class or class name.
int queryCount(Class<?> clazz, String attribute, Object value, DBCriteria.Condition condition)
clazz
- the class to query.attribute
- the name of the attribute.value
- the value of the attribute.condition
- the condition for the criteria.
int queryCount(String className, String attribute, Object value, DBCriteria.Condition condition)
className
- the class name to query.attribute
- the name of the attribute.value
- the value of the attribute.condition
- the condition for the criterion attribute.
boolean exists(Object object)
object
- the object to check.
Object getObject(Object object) throws PersistenceException
object
- the object to get.
PersistenceException
- on errors.void storeObject(Object object) throws PersistenceException
object
- the object to store.
PersistenceException
- on errors.void storeObjects(Collection<?> objects) throws PersistenceException
objects
- the objects to store.
PersistenceException
- on errors.void storeReferences(Object object, String... classNames) throws PersistenceException
Note that if dependent class names are not given, only the current class of the object is considered as a dependent class.
object
- the object to insert.classNames
- the dependent class names.
PersistenceException
- on errors.void insertObject(Object object) throws PersistenceException
object
- the object to insert.
PersistenceException
- on errors.void insertObjects(Collection<?> objects) throws PersistenceException
objects
- the objects to insert.
PersistenceException
- on errors.void insertReferences(Object object, String... classNames) throws PersistenceException
Note that if dependent class names are not given, only the current class of the object is considered as a dependent class.
object
- the object to insert.classNames
- the dependent class names.
PersistenceException
- on errors.void updateObject(Object object) throws PersistenceException
object
- the object to update.
PersistenceException
- on errors.void updateObjects(Collection<?> objects) throws PersistenceException
objects
- the objects to update.
PersistenceException
- on errors.void updateReferences(Object object, String... classNames) throws PersistenceException
Note that if dependent class names are not given, only the current class of the object is considered as a dependent class.
object
- the object to insert.classNames
- the dependent class names.
PersistenceException
- on errors.Object mergeObject(Object object, AttributeFilter... filter) throws PersistenceException
object
- the object to merge.filter
- an optional attribute filter.
PersistenceException
- on errors.Object mergeReferences(Object object, String... classNames) throws PersistenceException
Note that if dependent class names are not given, only the current class of the object is considered as a dependent class.
object
- the object to merge.classNames
- the dependent class names.
PersistenceException
- on errors.Object mergeReferences(Object object, AttributeFilter filter, String... classNames) throws PersistenceException
Note that if dependent class names are not given, only the current class of the object is considered as a dependent class.
object
- the object to merge.filter
- the attribute filter.classNames
- the dependent class names.
PersistenceException
- on errors.void deleteObject(Object object) throws PersistenceException
object
- the object to delete.
PersistenceException
- on errors.void deleteObjects(Collection<?> objects) throws PersistenceException
objects
- the objects to delete.
PersistenceException
- on errors.void deleteObjects(Class<?> clazz) throws PersistenceException
clazz
- the class to delete.
PersistenceException
- on errors.void deleteObjects(String className) throws PersistenceException
className
- the class name to delete.
PersistenceException
- on errors.void deleteObjects(DBQuery<?> query) throws PersistenceException
query
- the query.
PersistenceException
- on errors.void deleteObjects(DBCriteria<?> criteria, Object... clazz) throws PersistenceException
criteria
- the criteria to apply.clazz
- an alternate class or class name.
PersistenceException
- on errors.void deleteObjects(Class<?> clazz, String attribute, Object value, DBCriteria.Condition condition) throws PersistenceException
clazz
- the class to delete.attribute
- the name of the attribute.value
- the value of the attribute.condition
- the condition for the criteria.
PersistenceException
- on errors.void deleteObjects(String className, String attribute, Object value, DBCriteria.Condition condition) throws PersistenceException
className
- the class name to delete.attribute
- the name of the attribute.value
- the value of the attribute.condition
- the condition for the criteria.
PersistenceException
- on errors.void deleteReferences(Object object, String... classNames) throws PersistenceException
Note that if dependent class names are not given, only the current class of the object is considered as a dependent class.
object
- the object to delete.classNames
- the dependent class names.
PersistenceException
- on errors.void importReferences(Object source, Object target, boolean foreign, AttributeFilter... filter) throws PersistenceException
TransportListener interface.
- Parameters:
source
- the source object.target
- the target object.foreign
- true if a foreign import, false otherwise.filter
- an optional attribute filter.
- Throws:
PersistenceException
- on errors.
void exportReferences(Object source, Object target, boolean foreign, AttributeFilter... filter) throws PersistenceException
TransportListener interface.
- Parameters:
source
- the source object.target
- the target object.foreign
- true if a foreign import, false otherwise.filter
- an optional attribute filter.
- Throws:
PersistenceException
- on errors.
void execute(String sql) throws PersistenceException
Note that open transactions may be committed as a side effect.
sql
- the statement.
PersistenceException
- on errors.void execute(String[] sql) throws PersistenceException
Note that open transactions may be committed as a side effect.
sql
- the statements.
PersistenceException
- on errors.boolean isTransactionsSupported()
boolean isInTransaction()
boolean beginTransaction()
Nop if transactions are not supported.
boolean abortTransaction()
Nop if transactions are not supported.
boolean commitTransaction()
Nop if transactions are not supported.
String getRepository(String className)
className
- the class name.
Collection<?> load(File file) throws PersistenceException
file
- the dump file.
PersistenceException
- for loading errors.
UnsupportedOperationException
- if not supported.void dump(Collection<?> objects, File file) throws PersistenceException
objects
- a collection of objects to dump.file
- the dump file.
PersistenceException
- for dumping errors.
UnsupportedOperationException
- if not supported.Locale getLocale()
void setLocale(Locale loc)
loc
- the locale.Principal getPrincipal()
Object getUserId()
Object getGroupId()
Object getRootGroupId()
Object getAttributeValue(Object object, String field) throws AttributeNotFoundException
object
- the persistent object.field
- the field.
AttributeNotFoundException
- if not found.void setAttributeValue(Object object, String field, Object value) throws AttributeNotFoundException, InvalidAttributeValueException
object
- the persistent object.field
- the field.value
- the value.
AttributeNotFoundException
- if not found.
InvalidAttributeValueException
- if invalid.Object getValidatedValue(Object object, String field) throws AttributeNotFoundException
object
- the persistent object.field
- the field.
AttributeNotFoundException
- if not found.void setValidatedValue(Object object, String field, Object value) throws AttributeNotFoundException, InvalidAttributeValueException
object
- the persistent object.field
- the field.value
- the value.
AttributeNotFoundException
- if not found.
InvalidAttributeValueException
- if invalid.Object[] getAttributeValues(Object object, String field) throws AttributeNotFoundException
object
- the persistent object.field
- the field.
AttributeNotFoundException
- if not found.Object getIdentityValue(Object object) throws AttributeNotFoundException
object
- the object.
AttributeNotFoundException
- if not found.void setIdentityValue(Object object, Object value) throws AttributeNotFoundException, InvalidAttributeValueException
object
- the object.value
- the identity value.
InvalidAttributeValueException
- if the value is invalid.
AttributeNotFoundException
- if not found.Object[] getIdentityValues(Object object) throws AttributeNotFoundException
object
- the object.
AttributeNotFoundException
- if not found.void setIdentityValues(Object object, Object[] values) throws InvalidAttributeValueException, AttributeNotFoundException
object
- the object.values
- an array of identity values.
InvalidAttributeValueException
- if the value is invalid.
AttributeNotFoundException
- if not found.void resetIdentityValues(Object object) throws InvalidAttributeValueException, AttributeNotFoundException
object
- the object.
InvalidAttributeValueException
- if the value is invalid.
AttributeNotFoundException
- if not found.<T> T getReferenceValue(Object object, String field) throws AttributeNotFoundException
T
- the referenced type.object
- the object.field
- the reference field.
AttributeNotFoundException
- if not found.<T> List<T> getReferenceValues(Object object, String field) throws AttributeNotFoundException
T
- the referenced type.object
- the object.field
- the reference field.
AttributeNotFoundException
- if not found.boolean isPersistentObject(Object object)
object
- the object.
PersisterFactory getPersisterFactory()
MBeanServer getMBeanServer()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |