|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.softwareag.mdm.adaptation.AdaptationTable
An instance of this class holds the occurrences of a node that has been declared in Schema as
mdm:table
. The declaration of a table is specified at
this page.
The schema instance adaptation that contains the table is called
the container adaptation. A table is accessed from the container adaptation
by calling method ReadContext.getTable(Path)
.
All the occurrences of a table are represented as adaptations
and as such they benefit of inheritance features.
Method Summary | |
PrimaryKey |
computePrimaryKey(Adaptation anOccurrence)
|
PrimaryKey |
computePrimaryKey(com.softwareag.mdm.adaptation.uifacade.HrNode aRootNode)
Deprecated. Replaced by computePrimaryKey(ValueContext) . |
PrimaryKey |
computePrimaryKey(ValueContext aContext)
|
PrimaryKeyWildCard |
computePrimaryKeyWildcard(Adaptation anAdaptation)
Deprecated. |
PrimaryKeyWildCard |
computePrimaryKeyWildcard(PrimaryKey aBase,
Path wildcardKey)
Deprecated. |
Request |
createRequest()
Creates a new request over this table. |
RequestResult |
createRequestResult(String predicate)
Returns the RequestResult for the predicate specified. |
RequestResult |
createRequestResult(String predicate,
RequestSortCriteria sortCriteria)
Returns the RequestResult for the predicate and sort criteria specified..
|
Adaptation |
getContainerAdaptation()
|
com.softwareag.mdm.adaptation.uifacade.HrNode |
getNodeForUpdatingContent(AdaptationName aName)
Deprecated. Use ProcedureContext.getContext(AdaptationName) . |
Path[] |
getPrimaryKeySpec()
Returns the paths of the schema nodes that compose the primary key of this table. |
AdaptationName |
getRootKey()
All the occurrences of the tables' tree have a common root. |
SchemaNode |
getSchemaNode()
|
Path |
getTablePath()
Returns the path of the container node. |
boolean |
isEdition()
Deprecated. Replaced by the method Adaptation.isNewOrModifiedInCurrentBranch() . |
boolean |
isPrimaryKeyComplete(ValueContext aContext)
Returns false if at least one field in the primary key in the context specified is not set. |
Adaptation |
lookupAdaptationByName(AdaptationName aName)
Returns the occurrence specified by its name, or null if it
does not exist. |
Adaptation |
lookupAdaptationByPrimaryKey(PrimaryKey aKey)
Returns the occurrence specified by its primary key, or null if it
does not exist or if it is in occulting mode. |
Adaptation |
lookupAdaptationByPrimaryKey(PrimaryKey aKey,
boolean includeOcculting)
Returns the occurrence specified by its primary key. |
Adaptation |
lookupAdaptationByPrimaryKey(PrimaryKey aKey,
boolean ignored,
boolean includeOcculting)
Deprecated. Replaced by the method lookupAdaptationByPrimaryKey(PrimaryKey, boolean) . |
Adaptation |
lookupAdaptationByPrimaryKey(ValueContext aContext)
Returns the occurrence that has the primary key specified by the context passed as argument, or null if it does not exist if it is in occulting mode. |
Adaptation |
lookupAdaptationByPrimaryKey(ValueContext aContext,
boolean includeOcculting)
Returns the occurrence specified by its primary key. |
Adaptation |
lookupAdaptationByPrimaryKey(ValueContext aContext,
boolean ignored,
boolean includeOcculting)
Deprecated. Replaced by the method lookupAdaptationByPrimaryKey(ValueContext, boolean) . |
List |
selectOccurrences(String predicate)
Returns the list of occurrences which resolve the predicate specified. |
List |
selectOccurrences(String predicate,
RequestSortCriteria sortCriteria)
Returns the list of occurrences which resolve the predicate specified and sorts the result. |
String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
public String toString()
public Adaptation lookupAdaptationByPrimaryKey(ValueContext aContext)
null
if it does not exist if it is in occulting mode.
lookupAdaptationByPrimaryKey(ValueContext, boolean)
public Adaptation lookupAdaptationByPrimaryKey(ValueContext aContext, boolean includeOcculting)
null
if:
includeOcculting
is false
.
The occurrence that is returned can be inherited from an ancestor table.
aContext
- Context that specifies the primary key of the occurrence to look up.includeOcculting
- If true
, an occulting adaptation may be returned, if false
it will not return such an adaptation but null
instead.public Adaptation lookupAdaptationByPrimaryKey(ValueContext aContext, boolean ignored, boolean includeOcculting)
lookupAdaptationByPrimaryKey(ValueContext, boolean)
.
public Adaptation lookupAdaptationByPrimaryKey(PrimaryKey aKey)
null
if it
does not exist or if it is in occulting mode.
public Adaptation lookupAdaptationByPrimaryKey(PrimaryKey aKey, boolean includeOcculting)
null
if:
includeOcculting
is false
.
The occurrence that is returned can be inherited from an ancestor table.
aKey
- Identity of the occurrence to look up.includeOcculting
- If true
, an occulting adaptation may be returned, if false
it will not return such an adaptation but null
instead.public Adaptation lookupAdaptationByPrimaryKey(PrimaryKey aKey, boolean ignored, boolean includeOcculting)
lookupAdaptationByPrimaryKey(PrimaryKey, boolean)
.
public PrimaryKey computePrimaryKey(Adaptation anOccurrence)
public PrimaryKey computePrimaryKey(ValueContext aContext)
public PrimaryKey computePrimaryKey(com.softwareag.mdm.adaptation.uifacade.HrNode aRootNode)
computePrimaryKey(ValueContext)
.
public boolean isPrimaryKeyComplete(ValueContext aContext)
false
if at least one field in the primary key in the context specified is not set.
public PrimaryKeyWildCard computePrimaryKeyWildcard(PrimaryKey aBase, Path wildcardKey)
PrimaryKeyWildCard
public PrimaryKeyWildCard computePrimaryKeyWildcard(Adaptation anAdaptation)
PrimaryKeyWildCard
public Path[] getPrimaryKeySpec()
public SchemaNode getSchemaNode()
public Adaptation getContainerAdaptation()
public com.softwareag.mdm.adaptation.uifacade.HrNode getNodeForUpdatingContent(AdaptationName aName)
ProcedureContext.getContext(AdaptationName)
.
public Path getTablePath()
public AdaptationName getRootKey()
This root exists even if all tables are empty. It is itself not persisted and do not support modifications.
public boolean isEdition()
Adaptation.isNewOrModifiedInCurrentBranch()
.
public Adaptation lookupAdaptationByName(AdaptationName aName)
null
if it
does not exist.
public Request createRequest()
createRequestResult(String)
,
createRequestResult(String, RequestSortCriteria)
public RequestResult createRequestResult(String predicate, RequestSortCriteria sortCriteria)
RequestResult
for the predicate and sort criteria specified..
This method is equivalent to the method selectOccurrences(String)
.
predicate
- XPath simplified expression of a filter to apply on the table occurrences. If
null
, no filter is applied.sortCriteria
- Criteria for sorting the result. If null
, no specific order is applied.selectOccurrences(String, RequestSortCriteria)
,
Request.setXPathFilter(String)
,
Request.setSortCriteria(RequestSortCriteria)
public RequestResult createRequestResult(String predicate)
This method is equivalent to the method selectOccurrences(String)
.
selectOccurrences(String)
,
Request.setXPathFilter(String)
public List selectOccurrences(String predicate, RequestSortCriteria sortCriteria)
This method is equivalent to the method createRequestResult(String)
.
predicate
- XPath simplified expression of a filter to apply on the table occurrences. If
null
, no filter is applied.sortCriteria
- Criteria for sorting the result. If null
, no specific order is applied.createRequestResult(String, RequestSortCriteria)
,
Request.setXPathFilter(String)
public List selectOccurrences(String predicate)
This method is equivalent to the method createRequestResult(String)
.
createRequestResult(String)
,
Request.setXPathFilter(String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
(report a bug)
webMethods MDM 4.2.8 [0558]
Copyright Software AG 2000-2007. All rights reserved.