|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.norther.tammi.root.db.rule.DependenceDescriptor
public class DependenceDescriptor
A dependence descriptor applied to persistent objects during transactions. Dependencies are formed by rules applied to specified actions. The descriptor doesn't check the validity of rules.
Constructor Summary | |
---|---|
DependenceDescriptor(String className)
Constructs empty dependencies. |
|
DependenceDescriptor(String className,
Collection<? extends DependenceRule> dependencies)
Constructs empty dependencies. |
Method Summary | |
---|---|
void |
addDependence(DependenceRule dependence)
Adds the specified dependence. |
void |
addDependencies(Collection<? extends DependenceRule> dependencies)
Adds the specified dependencies. |
String |
getClassName()
Gets the dependent class name. |
Set<DependenceRule> |
getDependencies(Persister.Action action)
Gets the dependencies for the specified action. |
boolean |
isEmpty()
Checks any dependencies. |
boolean |
isEmpty(int mask)
Checks dependencies for the specified actions. |
void |
removeDependence(DependenceRule dependence)
Removes the specified dependence. |
void |
removeDependencies(Collection<? extends DependenceRule> dependencies)
Removes the specified dependencies. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DependenceDescriptor(String className)
className
- the class name.public DependenceDescriptor(String className, Collection<? extends DependenceRule> dependencies)
className
- the class name.dependencies
- the dependencies.Method Detail |
---|
public String getClassName()
public void addDependence(DependenceRule dependence)
dependence
- the dependence.public void addDependencies(Collection<? extends DependenceRule> dependencies)
dependencies
- the dependencies.public void removeDependence(DependenceRule dependence)
dependence
- the dependence.public void removeDependencies(Collection<? extends DependenceRule> dependencies)
dependencies
- the dependencies.public Set<DependenceRule> getDependencies(Persister.Action action)
action
- the action.
public boolean isEmpty(int mask)
mask
- the action mask.
public boolean isEmpty()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |