|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BeanRepositoryClient
Extends MultiRepositoryClient by supporting variable based repositories.
| Field Summary | |
|---|---|
static Object |
NULL_PK
The null pk. |
static Object |
ROOT_PK
The root pk. |
| Method Summary | |
|---|---|
boolean |
add1NForeignReferences(Object node,
String className,
String fkField,
Object[] fks,
Persister persister)
Adds foreign references to 1:n relations in a tree. |
boolean |
add1NNullReferences(String className,
String fkField,
Object[] fks,
Persister persister)
Adds null references to 1:n relations in a tree. |
boolean |
add1NObjectReferences(Object node,
String relField,
String fkField,
Object[] fks,
Persister persister)
Adds object references to 1:n relations in a tree formed by nodes of the same class. |
boolean |
addAttributeValues(Object node,
String field,
Persister persister,
List result)
Adds nested attribute values in a tree to a list. |
boolean |
addTo1NRelationMap(Object node,
String fkField,
DBCriteria criteria,
Persister persister,
ConcurrentMap map)
Adds referenced objects fulfilling the specified criteria in a 1:n tree to a map. |
boolean |
addTo1NRelationMap(Object node,
String relField,
String fkField,
DBCriteria criteria,
Persister persister,
ConcurrentMap map)
Adds referenced objects fulfilling the specified criteria in a 1:n tree to a map. |
boolean |
addToAttributeChain(Object node,
String relField,
String valueField,
Persister persister,
List list)
Adds attribute values of a chain of referenced objects in a tree into a list, the attribute of the end object at the lowest index. |
boolean |
addToAttributeMap(Object node,
String relField,
String valueField,
Persister persister,
ConcurrentMap map)
Adds attribute values of referenced nodes in a tree into a map. |
boolean |
addToIdentityList(Collection vars,
int index,
String[] nameFields,
Persister persister,
OrderedSet list)
Adds a collection of variables as enumerated identities to an ordered set. |
boolean |
addToIdentityList(Variable var,
int index,
String[] nameFields,
Persister persister,
OrderedSet list)
Adds the specified variable as an enumerated identity to an ordered set. |
boolean |
addToIdentityTree(Collection roots,
String childField,
String[] nameFields,
Persister persister,
OrderedMap tree)
Adds a collection of root variables to an ordered map. |
boolean |
addToIdentityTree(Collection vars,
String parentField,
String childField,
String[] nameFields,
Persister persister,
OrderedMap tree)
Adds the variable chains of the selected variables to an ordered map. |
boolean |
addToIdentityTree(Identity[] ids,
String parentField,
String childField,
String[] nameFields,
Persister persister,
OrderedMap tree)
Adds the variable chains of the selected identities to an ordered map. |
boolean |
addToIdentityTree(Identity id,
String parentField,
String childField,
String[] nameFields,
Persister persister,
OrderedMap tree)
Adds the variable chain of the selected identity to an ordered map. |
boolean |
addToIdentityTree(Variable root,
String childField,
String[] nameFields,
Persister persister,
OrderedMap tree)
Adds the specified root variable to an ordered map. |
boolean |
addToIdentityTree(Variable var,
String parentField,
String childField,
String[] nameFields,
Persister persister,
OrderedMap tree)
Adds the variable chain of the selected variable to an ordered map. |
boolean |
addToMNRelationMap(Object node,
String indirection,
String fkField1,
String fkField2,
DBCriteria criteria,
Persister persister,
ConcurrentMap map)
Adds referenced objects fulfilling the specified criteria in a m:n tree to a map. |
boolean |
addToMNRelationMap(Object node,
String relField,
String indirection,
String fkField1,
String fkField2,
DBCriteria criteria,
Persister persister,
ConcurrentMap map)
Adds referenced objects fulfilling the specified criteria in a m:n tree to a map. |
boolean |
addToRelationChain(Object node,
String relField,
Persister persister,
List list)
Adds a chain of referenced objects in a tree to a list, the end variable at the lowest index. |
boolean |
addToRelationMap(Object node,
String relField,
Persister persister,
ConcurrentMap map)
Adds referenced objects in a tree to a map. |
boolean |
addToVariableChain(Variable var,
String relField,
Collection filter,
Persister persister,
List list)
Adds a chain of referenced variables in a tree to a list, the end variable at the lowest index. |
void |
collapseInIdentityTree(Identity id,
Persister persister,
OrderedMap tree)
Collapses the specified identity in the ordered map representing an identity tree. |
Introspector |
createIntrospector()
Creates a variable introspector. |
Variable |
createVariable(Class clazz)
Creates a new variable instance of the specified class. |
Variable |
createVariable(String type)
Creates a new variable MBean instance of the specified type. |
void |
delete1NRelationTree(Object node,
String relField,
List predeps,
List postdeps,
Persister persister)
Deletes the specified object and its subtree from a tree in 1:n relations. |
void |
deleteMNRelationTree(Object node,
String relField,
String indirection,
String fkField1,
String fkField2,
List predeps,
List postdeps,
Persister persister)
Deletes the specified object and its subtree from a tree in m:n relations. |
void |
deleteObject(Object node,
List predeps,
List postdeps,
Persister persister)
Deletes the specified object and its dependencies. |
void |
expandInIdentityTree(Identity id,
String childField,
String[] nameFields,
Persister persister,
OrderedMap tree)
Expands the specified identity in the ordered map representing an identity tree. |
VariableAttributeInfo |
getAttributeInfo(Variable node,
String field,
Persister persister)
Gets a nested attribute info in a tree. |
Object |
getAttributeValue(Object node,
String field,
Persister persister)
Gets a nested attribute value in a tree. |
List |
getAttributeValues(Object node,
String field,
Persister persister)
Gets a list of nested attribute values in a tree. |
Object |
getEndReference(Object node,
String relField,
Persister persister)
Gets the end node in a tree. |
Object |
getKeyAttributeValue(Object node,
Persister persister)
Gets the primary key attribute value. |
Object[] |
getKeyAttributeValues(Object node,
Persister persister)
Gets an array of primary key attribute values. |
Object |
getNextReference(Object node,
int index,
String relField,
Persister persister)
Gets the indexed node in a tree. |
Object |
getNextReference(Object node,
String relField,
Persister persister)
Gets the next referenced node in a tree. |
List |
getNextReferences(Object node,
String relField,
Persister persister)
Gets a list of referenced nodes in a tree. |
int |
getReferenceDepth(Object node,
String relField,
Persister persister)
Gets the depth of a node in a tree. |
Object |
getRootReference(Object node,
String relField,
Persister persister)
Gets the root node in a tree. |
List |
getRootReferences(Object node,
String relField,
Persister persister)
Gets a list of root nodes in a tree. |
ObjectName |
getVariableRegistryName()
Gets the the variable registry to be applied by contexts of this filter. |
boolean |
isLocalizedBeans()
Gets the localized beans flag. |
boolean |
isNullPK(Object pk)
Checks whether the specified pk is a null key. |
boolean |
isRelatedTo(Object node,
String relField,
Object xpk,
Persister persister)
Checks whether the specified key is related to the specified node. |
boolean |
isRootPK(Object pk)
Checks whether the specified pk is a root key. |
Collection |
queryAllObjects(String className,
DBCriteria criteria,
String[] sortFields,
Persister persister)
Queries all objects fulfilling the specified criteria, and may sort them by optional sort fields. |
Collection |
queryTreeObjects(String className,
Object pk,
String relField,
DBCriteria criteria,
String[] sortFields,
Persister persister)
Queries objects on the next level in a relation tree fulfilling the specified criteria, and may sort them by optional sort fields. |
boolean |
restoreIdentityTree(List enums,
int depth,
String parentField,
String childField,
String[] nameFields,
Persister persister,
OrderedMap tree)
Restores the specified enumerated identities to an ordered map. |
void |
setAttributeValue(Object node,
String field,
Object value,
boolean forced,
Persister persister)
Sets a nested attribute value in a tree with a forced option. |
void |
setAttributeValue(Object node,
String field,
Object value,
Persister persister)
Sets a nested attribute value in a tree. |
void |
setKeyAttributeValue(Object node,
Object value,
Persister persister)
Sets the primary key attribute value. |
void |
setKeyAttributeValues(Object node,
Object[] values,
Persister persister)
Sets an array of primary key attribute values. |
void |
setLocalizedBeans(boolean flag)
Sets the localized beans flag. |
Object[] |
setMNForeignReferences(Object node,
String indirection,
String fkField1,
String fkField2,
Object[] fks,
Persister persister)
Sets foreign references in m:n relations in a tree. |
Object[] |
setMNObjectReferences(Object node,
String relField,
String indirection,
String fkField1,
String fkField2,
Object[] fks,
Persister persister)
Sets object references in m:n relations in a tree formed by nodes of the same class. |
void |
setVariableRegistryName(ObjectName registry)
Sets the variable registry to be applied by contexts this filter. |
Collection |
sortObjects(Collection objects,
String[] sortFields,
Persister persister)
Sorts a collection of objects with the specified fields. |
| Field Detail |
|---|
static final Object NULL_PK
static final Object ROOT_PK
| Method Detail |
|---|
boolean isNullPK(Object pk)
pk - the pk to check.
boolean isRootPK(Object pk)
pk - the pk to check.
boolean isLocalizedBeans()
void setLocalizedBeans(boolean flag)
flag - the localized beans flag.Introspector createIntrospector()
ObjectName getVariableRegistryName()
void setVariableRegistryName(ObjectName registry)
registry - the object name of the variable registry or a query.
Variable createVariable(String type)
throws ConstructionException
type - the type of the variable.
ConstructionException - if construction fails.
Variable createVariable(Class clazz)
throws ConstructionException
clazz - the class of the variable.
ConstructionException - if construction fails.
Object getKeyAttributeValue(Object node,
Persister persister)
throws AttributeNotFoundException
node - the node object.persister - the persister.
AttributeNotFoundException - for a missing field.
void setKeyAttributeValue(Object node,
Object value,
Persister persister)
throws AttributeNotFoundException,
InvalidAttributeValueException
node - the node object.persister - the persister.value - the primary key attribute value.
InvalidAttributeValueException - if the value is invalid.
AttributeNotFoundException - for a missing field.
Object[] getKeyAttributeValues(Object node,
Persister persister)
throws AttributeNotFoundException
node - the node object.persister - the persister.
AttributeNotFoundException - for a missing field.
void setKeyAttributeValues(Object node,
Object[] values,
Persister persister)
throws InvalidAttributeValueException,
AttributeNotFoundException
node - the node object.persister - the persister.values - an array of primary key values.
InvalidAttributeValueException - if the value is invalid.
AttributeNotFoundException - for a missing field.
VariableAttributeInfo getAttributeInfo(Variable node,
String field,
Persister persister)
throws AttributeNotFoundException
node - the node variable.field - the attribute field(s).persister - the persister.
AttributeNotFoundException - for a missing field.
Object getAttributeValue(Object node,
String field,
Persister persister)
throws AttributeNotFoundException
node - the node object.field - the attribute field(s).persister - the persister.
AttributeNotFoundException - for a missing field.
void setAttributeValue(Object node,
String field,
Object value,
Persister persister)
throws AttributeNotFoundException,
InvalidAttributeValueException
node - the node object.field - the attribute field(s).value - the attribute value.persister - the persister.
AttributeNotFoundException - for a missing field.
InvalidAttributeValueException - if the value is invalid.
void setAttributeValue(Object node,
String field,
Object value,
boolean forced,
Persister persister)
throws AttributeNotFoundException,
InvalidAttributeValueException
node - the node object.field - the attribute field(s).value - the attribute value.forced - if true, forces the setting.persister - the persister.
AttributeNotFoundException - for a missing field.
InvalidAttributeValueException - if the value is invalid.
List getAttributeValues(Object node,
String field,
Persister persister)
throws AttributeNotFoundException
node - the node object.field - the attribute field(s).persister - the persister.
AttributeNotFoundException - for a missing field.
boolean addAttributeValues(Object node,
String field,
Persister persister,
List result)
throws AttributeNotFoundException
node - the node object.field - the attribute field(s).persister - the persister.result - a list of attribute values.
AttributeNotFoundException - for a missing field.
int getReferenceDepth(Object node,
String relField,
Persister persister)
throws AttributeNotFoundException
node - the node object.relField - the relation field.persister - the persister.
AttributeNotFoundException - for a missing field.
Object getEndReference(Object node,
String relField,
Persister persister)
throws AttributeNotFoundException
node - the node object.relField - the relation field.persister - the persister.
AttributeNotFoundException - for a missing field.
Object getRootReference(Object node,
String relField,
Persister persister)
throws AttributeNotFoundException
node - the node object.relField - the relation field.persister - the persister.
AttributeNotFoundException - for a missing field.
List getRootReferences(Object node,
String relField,
Persister persister)
throws AttributeNotFoundException
node - the node object.relField - the relation field.persister - the persister.
AttributeNotFoundException - for a missing field.
Object getNextReference(Object node,
String relField,
Persister persister)
throws AttributeNotFoundException
node - the node object.relField - the relation field.persister - the persister.
AttributeNotFoundException - for a missing field.
Object getNextReference(Object node,
int index,
String relField,
Persister persister)
throws AttributeNotFoundException
node - the node object.index - the node index.relField - the relation field.persister - the persister.
AttributeNotFoundException - for a missing field.
List getNextReferences(Object node,
String relField,
Persister persister)
throws AttributeNotFoundException
node - the node object.relField - the relation field.persister - the persister.
AttributeNotFoundException - for a missing field.
boolean isRelatedTo(Object node,
String relField,
Object xpk,
Persister persister)
throws AttributeNotFoundException
node - the node object.relField - the relation field.xpk - the primary key to check.persister - the persister.
AttributeNotFoundException - for a missing field.
boolean addToRelationChain(Object node,
String relField,
Persister persister,
List list)
throws AttributeNotFoundException,
PersisterException
node - the node object.relField - the relation field.persister - the persister.list - the result list.
AttributeNotFoundException - for a missing field.
PersisterException - if a persister operation fails.
boolean addToRelationMap(Object node,
String relField,
Persister persister,
ConcurrentMap map)
throws AttributeNotFoundException,
PersisterException
node - the node object.relField - the relation field.persister - the persister.map - the result map.
AttributeNotFoundException - for a missing field.
PersisterException - if a persister operation fails.
boolean addTo1NRelationMap(Object node,
String fkField,
DBCriteria criteria,
Persister persister,
ConcurrentMap map)
throws AttributeNotFoundException,
PersisterException
node - the node object.fkField - the foreign key field.criteria - the selection criteria.persister - the persister.map - the result map.
AttributeNotFoundException - for a missing field.
PersisterException - if a persister operation fails.
boolean addTo1NRelationMap(Object node,
String relField,
String fkField,
DBCriteria criteria,
Persister persister,
ConcurrentMap map)
throws AttributeNotFoundException,
PersisterException
node - the node object.relField - the relation field.fkField - the foreign key field.criteria - the selection criteria.persister - the persister.map - the result map.
AttributeNotFoundException - for a missing field.
PersisterException - if a persister operation fails.
boolean addToMNRelationMap(Object node,
String indirection,
String fkField1,
String fkField2,
DBCriteria criteria,
Persister persister,
ConcurrentMap map)
throws AttributeNotFoundException,
PersisterException
node - the node object.indirection - the indirection class name.fkField1 - the foreign key field to the node.fkField2 - the foreign key field to the reference.criteria - the selection criteria.persister - the persister.map - the result map.
AttributeNotFoundException - for a missing field.
PersisterException - if a persister operation fails.
boolean addToMNRelationMap(Object node,
String relField,
String indirection,
String