| com.completex.objective.components.persistency.Compound
All known Subclasses: com.completex.objective.components.persistency.AbstractPersistentObject, com.completex.objective.components.persistency.CompoundPersistentObject, com.completex.objective.components.persistency.PersistentObject,
Compound | public interface Compound extends PersistentObjectFactory(Code) | | Describes compound persistent object - one that is based on array of other
persistent objects
author: Gennady Krizhevsky |
Inner Class :public static class ImplicitJoinMode | |
Field Summary | |
final public static ImplicitJoinMode | INNER | final public static ImplicitJoinMode | NONE | final public static ImplicitJoinMode | OUTER |
INNER | final public static ImplicitJoinMode INNER(Code) | | |
NONE | final public static ImplicitJoinMode NONE(Code) | | |
OUTER | final public static ImplicitJoinMode OUTER(Code) | | |
compoundCascadeDelete | boolean compoundCascadeDelete()(Code) | | Returns true if cascade delete is to be performed based on entries joins
true if cascade delete is to be performed based on entries joins |
compoundCascadeDelete | boolean compoundCascadeDelete(int index)(Code) | | Returns true if cascade delete is to be performed based on entries joins
for entry specified by index parameter
Parameters: index - true if cascade delete is to be performed based on entries joinsfor entry specified by index parameter |
compoundCascadeDelete | void compoundCascadeDelete(int index, boolean compoundCascadeDelete)(Code) | | Sets flag to indicate if cascade delete is to be performed based on entries joins
for entry specified by index parameter
Parameters: index - Parameters: compoundCascadeDelete - flag to indicate if cascade delete is to be performed based on entries joinsfor entry specified by index parameter |
compoundCascadeInsert | boolean compoundCascadeInsert()(Code) | | Returns true if cascade insert is to be performed based on entries joins
true if cascade insert is to be performed based on entries joins |
compoundCascadeInsert | boolean compoundCascadeInsert(int index)(Code) | | Returns true if cascade insert is to be performed based on entries joins
for entry specified by index parameter
Parameters: index - true if cascade insert is to be performed based on entries joinsfor entry specified by index parameter |
compoundCascadeInsert | void compoundCascadeInsert(int index, boolean compoundCascadeInsert)(Code) | | Sets flag to indicate if cascade insert is to be performed based on entries joins
for entry specified by index parameter
Parameters: index - Parameters: compoundCascadeInsert - flag to indicate if cascade insert is to be performed based on entries joinsfor entry specified by index parameter |
compoundEntries | PersistentObject[] compoundEntries()(Code) | | Returns PersistentObject [] - compound entries of this object
PersistentObject [] - compound entries of this object |
compoundEntry | void compoundEntry(int index, PersistentObject persistentObject)(Code) | | Sets PersistentObject - compound entry at specific index
Parameters: index - index which entry to be set Parameters: persistentObject - compound entry |
compoundEntry | PersistentObject compoundEntry(int index)(Code) | | Returns PersistentObject - compound entry at specific index
Parameters: index - index which entry to be returned PersistentObject - compound entry throws: IndexOutOfBoundsException - if there is no entry at requested index |
compoundSize | int compoundSize()(Code) | | Returns number of compound etries
number of compound etries |
dirty | boolean dirty()(Code) | | Returns true if this object has been modified
true if this object has been modified |
implicitJoinMode | ImplicitJoinMode implicitJoinMode()(Code) | | Returns implicit join mode
See Also: ImplicitJoinMode implicit join mode |
implicitJoinMode | void implicitJoinMode(ImplicitJoinMode implicitJoinMode)(Code) | | Sets implicitJoinMode
Parameters: implicitJoinMode - |
join | Join join()(Code) | | This method will be called on compound object to create default
join
created join |
join | Join join(ImplicitJoinMode implicitJoinMode)(Code) | | Joins all the compound entries according to Compound.ImplicitJoinMode passed
Parameters: implicitJoinMode - new Join |
joinImplicitely | Join joinImplicitely(Compound.ImplicitJoinMode implicitJoinMode)(Code) | | This method will create join implicitely based on the mutual references
It is more coarse than joinImplicitely(Join.Type [] joinTypes) one
since there are only 3 possibilities: OUTER, when all the objects with index > 0
join the [0] one with left outer join, and INNER, when all the objects are joined
with INNER join.
created join |
joinImplicitely | Join joinImplicitely(Join.Type[] joinTypes)(Code) | | This method will create join implicitely based on the mutual references
To run it all the persistentObjects have to exist.
As a result, all the objects with index > 0 will joing the one with index 0
created join |
populateCompoundEntries | void populateCompoundEntries()(Code) | | Populates all entries by join
|
populateCompoundEntryByJoin | void populateCompoundEntryByJoin(int indexFrom, int indexTo)(Code) | | Populate compound Entry By Join
Parameters: indexFrom - - entry index of the master PersistentObject Parameters: indexTo - - entry index of the slave PersistentObject |
selfReferencing | boolean selfReferencing()(Code) | | Returns true if this is this type of object can be the 1st object of PersistentObject[]
of compound PersistentObject.
true if this is the 1st object in PersistentObject[] of compound PersistentObject |
|
|