|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.onwbp.adaptation.AdaptationTable
An instance of this class holds the occurrences of a node that has been declared in Schema as
osd: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 from inheritance features.
| Method Summary | |
PrimaryKey |
computePrimaryKey(Adaptation anOccurrence)
This method returns the same result as Adaptation.getOccurrencePrimaryKey(). |
PrimaryKey |
computePrimaryKey(com.onwbp.adaptation.uifacade.HrNode aRootNode)
Deprecated. Replaced by computePrimaryKey(ValueContext). |
PrimaryKey |
computePrimaryKey(Object[] primaryKeyValues)
Returns the PrimaryKey object that corresponds to
the specified raw values. |
PrimaryKey |
computePrimaryKey(ValueContext aContext)
|
Request |
createRequest()
Creates a new request on this table. |
RequestResult |
createRequestResult(String predicate)
Returns the RequestResult for the specified predicate. |
RequestResult |
createRequestResult(String predicate,
RequestSortCriteria sortCriteria)
Returns the RequestResult for the specified predicate and sort criteria .
|
boolean |
equals(Object object)
|
Adaptation |
getContainerAdaptation()
Returns the instance holding this table. |
com.onwbp.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()
Returns the key to the virtual root record of this table. |
SchemaNode |
getSchemaNode()
Deprecated. Replaced by getTableOccurrenceRootNode() |
SchemaNode |
getTableNode()
Returns the node on the instance side. |
SchemaNode |
getTableOccurrenceRootNode()
Returns the root node that defines the occurrence structure. |
Path |
getTablePath()
Returns the path of the container node. |
ValidationReport |
getValidationReport()
Returns the up-to-date validation report associated to this table. |
ValidationReport |
getValidationReport(boolean ensureActivation)
Returns the up-to-date validation report associated with this table. |
ValidationReport |
getValidationReport(boolean ensureActivation,
boolean updateValidationReport)
Returns the validation report associated with this table. |
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 specified predicate. |
List |
selectOccurrences(String predicate,
RequestSortCriteria sortCriteria)
Returns the list of occurrences which resolve the specified predicate, and sorts the result. |
String |
toPublicReference()
Returns an information string that identifies the table (instance reference and table path). |
String |
toString()
|
| Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public String toPublicReference()
public String toString()
toPublicReference()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 may 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)
Adaptation.getOccurrencePrimaryKey().
public PrimaryKey computePrimaryKey(ValueContext aContext)
public PrimaryKey computePrimaryKey(Object[] primaryKeyValues)
PrimaryKey object that corresponds to
the specified raw values.
primaryKeyValues - values of the primary key fields. They must be in the
same order as the fields declared in
in osd:table/primaryKeys element.
IllegalArgumentException - if one argument is null, if both specified arrays
do not have the same length, or if one value is not of the expected type.
ClassCastException - if one value is not of the expected Java type.public PrimaryKey computePrimaryKey(com.onwbp.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 Path[] getPrimaryKeySpec()
public SchemaNode getSchemaNode()
getTableOccurrenceRootNode()
getTableNode()public SchemaNode getTableOccurrenceRootNode()
getTableNode()public SchemaNode getTableNode()
getTableOccurrenceRootNode(),
SchemaNode.isTableNode()public Adaptation getContainerAdaptation()
public com.onwbp.adaptation.uifacade.HrNode getNodeForUpdatingContent(AdaptationName aName)
ProcedureContext.getContext(AdaptationName).
public Path getTablePath()
public AdaptationName getRootKey()
Each table has a unique virtual root record and exists even if the table is empty. It, itself, is not persisted, and does not support modifications.
AdaptationHome.findAllDescendants(Adaptation),
ProcedureContext.doDelete(AdaptationName, boolean)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 specified predicate and sort criteria .
This method is equivalent to the method selectOccurrences(String).
predicate - XPath simplified expression of a filter to be applied 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).
predicate - XPath simplified expression of a filter to apply on the table occurrences. If
null, no filter is applied.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)public ValidationReport getValidationReport()
This method is equivalent to:
AdaptationTable.getValidationReport(true);
Adaptation.getValidationReport(),
getValidationReport(boolean),
getValidationReport(boolean, boolean)public ValidationReport getValidationReport(boolean ensureActivation)
The report returned by this method is not affected by updates done after this method is called. The rules for ensuring that Master Data remain valid (regarding possible concurrent updates) are explained in section Consistency and validation.
This method is equivalent to:
AdaptationTable.getValidationReport(ensureActivation, true);
ensureActivation - if true, validation also checks that the instance is
activated
(it adds an error if this is not the case).Adaptation.getValidationReport(boolean),
getValidationReport(),
getValidationReport(boolean, boolean)
public ValidationReport getValidationReport(boolean ensureActivation,
boolean updateValidationReport)
The report returned by this method is not affected by updates done after this method is called. The rules for ensuring that Master Data remain valid (regarding possible concurrent updates) are explained in section Consistency and validation.
ensureActivation - if true, validation also checks that the instance is
activated
(it adds an error if this is not the case).updateValidationReport - if true, an up-to-date validation report of this adaptation is computed;
if false, this adaptation is validated only if it has not been previously validated.Adaptation.getValidationReport(boolean)public boolean equals(Object object)
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
(report a bug)
EBX.Platform 4.8.4 [0722]
Copyright Orchestra Networks 2000-2010. All rights reserved.