| |
|
| java.lang.Object com.completex.objective.components.persistency.ParentBase com.completex.objective.components.persistency.Link
All known Subclasses: com.completex.objective.components.persistency.ChainedLink, com.completex.objective.components.persistency.InlineLink,
Inner Class :public static class RelationshipType | |
Inner Class :public static class InlineMode | |
INNER_JOIN_MODE | final public static InlineMode INNER_JOIN_MODE(Code) | | Inner (or equi-) join mode:
|
MANY_TO_MANY | final public static RelationshipType MANY_TO_MANY(Code) | | |
MANY_TO_ONE | final public static RelationshipType MANY_TO_ONE(Code) | | |
ONE_TO_MANY | final public static RelationshipType ONE_TO_MANY(Code) | | |
ONE_TO_ONE | final public static RelationshipType ONE_TO_ONE(Code) | | |
OUTER_JOIN_MODE | final public static InlineMode OUTER_JOIN_MODE(Code) | | Outer (left outer) join mode
|
TAG_QUERY_CLASS | final public static String TAG_QUERY_CLASS(Code) | | |
inlineMode | protected transient InlineMode inlineMode(Code) | | |
parentIndeces | protected transient int[] parentIndeces(Code) | | |
serialVersionUID | final static long serialVersionUID(Code) | | |
thisIndeces | protected transient int[] thisIndeces(Code) | | |
Link | public Link(Query query, int[] parentIndeces, int thisIndeces)(Code) | | Parameters: query - Query object Parameters: parentIndeces - parent indeces which values are mapped to corresponding "this indeces" Parameters: thisIndeces - "this indeces" indeces which values are mapped to corresponding parent ones |
Link | public Link(Query query, int[] parentIndeces, int thisIndeces, String name)(Code) | | Parameters: query - Query object Parameters: parentIndeces - parent indeces which values are mapped to corresponding "this indeces" Parameters: thisIndeces - "this indeces" indeces of this link query's SingularResultFactorywhich values are mapped to corresponding parent ones Parameters: name - link name - mandatory for PersistentObject trees |
addNotNullToResultCollection | public void addNotNullToResultCollection(Object value)(Code) | | |
addParentPath | public void addParentPath(List parentPath)(Code) | | Appends all of the elements in the specified parentPath to the end of
this link's path
Parameters: parentPath - to append to the end ofthis link's path |
addToPath | public void addToPath(String name)(Code) | | Adds name to this link's path
Parameters: name - to add |
addToResultCollection | public void addToResultCollection(Object value)(Code) | | |
copyResults | public void copyResults(Link from)(Code) | | Copies results from "from" link to this one including children
Parameters: from - |
copyResults | public static void copyResults(Link from, Link to, int level)(Code) | | |
copyResultsOneLevel | public void copyResultsOneLevel(Link from)(Code) | | Copies results from "from" link to this one without touching children
Parameters: from - |
getDependencyIndex | public int getDependencyIndex()(Code) | | Returns link dependency index
link dependency index |
getInlineMode | public InlineMode getInlineMode()(Code) | | Experimental
|
getLifeCycleController | public LifeCycleController getLifeCycleController()(Code) | | Returns LifeCycleController set for this link
LifeCycleController set for this link |
getName | public String getName()(Code) | | Returns link name
link name |
getParentIndeces | public int[] getParentIndeces()(Code) | | Returns parent indeces - indeces of the parent persistent object which contains a link [pointing to itself.
Usually they are the primary key ones.
parent indeces - indeces of the parent persistent object which contains a link [pointing to itself.Usually they are the primary key ones. |
getPath | public List getPath()(Code) | | Returns full path to this link built of the names of the parent chain
full path to this link built of the names of the parent chain |
getPathString | public String getPathString()(Code) | | Returns full path to this link built of the names of the parent chain
full path to this link built of the names of the parent chain |
getQuery | public Query getQuery()(Code) | | Returns query that is used to retrieve object trees
query that is used to retrieve object trees |
getResult | public Object getResult()(Code) | | Returns result - data that is set during query execution for selects
or by using setter methods for update operations
result - data that is set during query execution for selectsor by using setter methods for update operations |
getThisIndeces | public int[] getThisIndeces()(Code) | | Returns "this indeces" - indeces of this link query's SingularResultFactory
which values are mapped to corresponding parent ones. Usually they are foregn key ones
"this indeces" - indeces of this link query's SingularResultFactorywhich values are mapped to corresponding parent ones |
isAdHoc | public boolean isAdHoc()(Code) | | |
isCascadeDelete | public boolean isCascadeDelete()(Code) | | Returns true if delete is to be propagated to this link when the parent one gets deleted
true if delete is to be propagated to this link when the parent one gets deleted |
isCascadeInsert | public boolean isCascadeInsert()(Code) | | Returns true if delete is to be propagated to this link when the parent one gets inserted
true if delete is to be propagated to this link when the parent one gets inserted |
isCascadeUpdate | public boolean isCascadeUpdate()(Code) | | Returns true if delete is to be propagated to this link when the parent one gets updated
true if delete is to be propagated to this link when the parent one gets updated |
isEndOfChain | public boolean isEndOfChain()(Code) | | Returns true is this link is end of link chain. Marking link as end of chain prevents
infinite loops of retrievals when circular link references are set.
true is this link is end of link chain |
isInline | public boolean isInline()(Code) | | Experimental
|
isInner | public boolean isInner()(Code) | | |
isInsertBeforeParent | public boolean isInsertBeforeParent()(Code) | | Returns true if the result (data) of this link is to be inserted before the parent link's one
true if the result (data) of this link is to be inserted before the parent link's one |
isLazyRetrieval | public boolean isLazyRetrieval()(Code) | | Returns true the result of this link has to be performed in "lazy" fashion
true the result of this link has to be performed in "lazy" fashion |
isOuter | public boolean isOuter()(Code) | | |
isRetrieved | public boolean isRetrieved()(Code) | | |
isTreatNullAsRemove | public boolean isTreatNullAsRemove()(Code) | | Returns true if for one-to-one inversed relationship
(this link contains foreign key object and its child contains the primary key ones)
nullifying the foregn key field should cause deletion of the child object
true if for one-to-one inversed relationship(this link contains foreign key object and its child contains the primary key ones)nullifying the foregn key field should cause deletion of the child object |
newInstance | public Link newInstance()(Code) | | Returns new instance of this link that inherits set of its parent properties
new instance of this link that inherits set of its parent properties |
populateClonedCollection | public void populateClonedCollection(Collection collection)(Code) | | |
populateClonedMap | public void populateClonedMap(Map map)(Code) | | |
setAdHoc | public void setAdHoc(boolean adHoc)(Code) | | |
setCascadeAll | public Link setCascadeAll()(Code) | | Sets cascadeDelete = true; cascadeInsert = true; cascadeUpdate = true. Values are used in
PersistentObject trees
itself |
setCascadeDelete | public void setCascadeDelete(boolean cascadeDelete)(Code) | | Sets true if delete is to be propagated to this link when the parent one gets deleted
Parameters: cascadeDelete - true if delete is to be propagated to this link when the parent one gets deleted |
setCascadeInsert | public void setCascadeInsert(boolean cascadeInsert)(Code) | | Sets true if delete is to be propagated to this link when the parent one gets inserted
Parameters: cascadeInsert - true if delete is to be propagated to this link when the parent one gets inserted |
setCascadeUpdate | public void setCascadeUpdate(boolean cascadeUpdate)(Code) | | Sets true if delete is to be propagated to this link when the parent one gets updated
Parameters: cascadeUpdate - true if delete is to be propagated to this link when the parent one gets updated |
setDependencyIndex | public void setDependencyIndex(int dependencyIndex)(Code) | | Sets link dependency index
Parameters: dependencyIndex - link dependency index |
setEndOfChain | public void setEndOfChain(boolean endOfChain)(Code) | | If true - this link is end of link chain. Marking link as end of chain prevents
infinite loops of retrievals when circular link references are set.
Parameters: endOfChain - true is this link is end of link chain |
setInlineMode | public void setInlineMode(InlineMode inlineMode)(Code) | | Experimental
|
setInlineMode | public void setInlineMode(String childName, InlineMode inlineMode)(Code) | | |
setInsertBeforeParent | public void setInsertBeforeParent(boolean insertBeforeParent)(Code) | | Sets true if the result (data) of this link is to be inserted before the parent link's one
Parameters: insertBeforeParent - true if the result (data) of this link is to be inserted before the parent link's one |
setLazyRetrieval | public void setLazyRetrieval(boolean lazyRetrieval)(Code) | | Sets true the result of this link has to be performed in "lazy" fashion
Parameters: lazyRetrieval - true the result of this link has to be performed in "lazy" fashion |
setLifeCycleController | public void setLifeCycleController(LifeCycleController lifeCycleController)(Code) | | Sets LifeCycleController for this link
Parameters: lifeCycleController - |
setName | public void setName(String name)(Code) | | Sets link name. Link name is mandatory for PersistentObject trees
Parameters: name - link name |
setParentIndeces | public void setParentIndeces(int[] parentIndeces)(Code) | | Sets parent indeces - indeces of the parent persistent object which contains a link [pointing to itself.
Usually they are the primary key ones.
Parameters: parentIndeces - indeces of the parent persistent object which contains a link [pointing to itself.Usually they are the primary key ones. |
setPath | void setPath(List path)(Code) | | Sets full path to this link built of the names of the parent chain
Parameters: path - full path to this link built of the names of the parent chain |
setQuery | public void setQuery(Query query)(Code) | | Sets query that is used to retrieve object trees
Parameters: query - query that is used to retrieve object trees |
setRelationshipToParent | public void setRelationshipToParent(RelationshipType relationshipType)(Code) | | Sets setRelationship to parent
Parameters: relationshipType - See Also: RelationshipType |
setResult | public void setResult(Object result)(Code) | | Sets result - data that is set during query execution for selects
or by using setter methods for update operations
Parameters: result - data that is set during query execution for selectsor by using setter methods for update operations |
setRetrieved | public void setRetrieved(boolean retrieved)(Code) | | |
setThisIndeces | public void setThisIndeces(int[] thisIndeces)(Code) | | Sets "this indeces" - indeces of this link query's SingularResultFactory
which values are mapped to corresponding parent ones. Usually they are foregn key ones
Parameters: thisIndeces - "this indeces" - indeces of this link query's SingularResultFactorywhich values are mapped to corresponding parent ones |
setTreatNullAsRemove | public void setTreatNullAsRemove(boolean treatNullAsRemove)(Code) | | Sets true if for one-to-one inversed relationship
(this link contains foreign key object and its child contains the primary key ones)
nullifying the foregn key field should cause deletion of the child object
Parameters: treatNullAsRemove - true if for one-to-one inversed relationship(this link contains foreign key object and its child contains the primary key ones)nullifying the foregn key field should cause deletion of the child object |
toInlineMode | public static InlineMode toInlineMode(String modeName)(Code) | | |
toLink | public Link toLink()(Code) | | Returns itself
itself |
toMapArray | protected void toMapArray(Map map, String tag, int[] array)(Code) | | |
toSummaryString | public String toSummaryString()(Code) | | Returns summary string
summary string |
unsetCascadeAll | public Link unsetCascadeAll()(Code) | | Unsets cascadeDelete = true; cascadeInsert = true; cascadeUpdate = true. Values are used in
PersistentObject trees
itself |
Fields inherited from com.completex.objective.components.persistency.ParentBase | final public static String ROOT(Code)(Java Doc)
|
|
|
|