|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjsdai.lang.SdaiCommon
jsdai.lang.SchemaInstance
The SchemaInstance class represents a logical collection of
SdaiModels.
Conceptionally, the SchemaInstance can be represented by
the following EXPRESS entity:
ENTITY SchemaInstance;
name : String;
associatedModels : SET [0:?] OF SdaiModel;
nativeSchema : ESchema_definition;
repository : SdaiRepository;
changeDate : OPTIONAL String;
validationDate : String;
validationResult : int;
validationLevel : int;
description : LIST [1:?] OF String;
author : LIST [1:?] OF String;
organization : LIST [1:?] OF String;
preprocessorVersion : String;
originatingSystem : String;
authorization : String;
defaultLanguage : OPTIONAL String;
contextIdentifiers : LIST [0:?] OF String;
UNIQUE
UR1: name, repository;
WHERE
WR1: SELF IN SELF.repository.schemas;
END_ENTITY;
All attributes are read-only, and for each of them a corresponding
get method (or methods sometimes) is defined.
Both the changeDate and validationDate
can be retrieved either as String or as long.
Similarly, nativeSchema can be retrieved
either as ESchema_definition or as String.
For preprocessorVersion, originatingSystem, authorization,
and defaultLanguage the corresponding set methods are given.
A SchemaInstance belongs to an SdaiRepository
and is available only when the SdaiRepository is open.
Closing an SdaiRepository makes its SchemaInstances invalid.
The associated SdaiModels can belong to different
SdaiRepositories. The underlying EXPRESS schema of each
SdaiModel associated with some SchemaInstance needs
to be domain equivalent with the native schema of this SchemaInstance.
The SchemaInstances define the domain over which to perform validation
operations: for global rules, uniqueness rules, and instance references.
| Method Summary | |
void |
addSchemaInstance(SchemaInstance schemaInstance)
Adds a new member to the set of schema instances that are included by this schema instance. |
void |
addSdaiListener(SdaiListener listener)
Adds SdaiListener extending java.util.EventListener
to a special aggregate in this repository. |
abstract void |
addSdaiModel(SdaiModel model)
Adds a specified SdaiModel to the set of models
that are associated with this schema instance.
|
abstract SdaiPermission |
checkPermission()
Returns this schema instance effective permission which determines the model's access rights. |
abstract void |
checkRead()
Throws SdaiException.SY_SEC if the owning session
has no read access to this schema instance. |
abstract void |
checkWrite()
Throws SdaiException.SY_SEC if the owning session
has no write access to this schema instance. |
abstract void |
delete()
Deletes this SchemaInstance.
|
void |
exportClearTextEncoding(java.io.OutputStream location)
Creates a STEP file in a form of the exchange structure containing the data of this schema instance, that is, the header information and all its associated models. |
void |
exportClearTextEncoding(java.io.OutputStream location,
java.lang.String file_name)
Creates a STEP file in a form of the exchange structure containing the data of this schema instance, that is, the header information and all its associated models. |
void |
exportClearTextEncoding(java.lang.String location)
Creates a STEP file in a form of the exchange structure containing the data of this schema instance, that is, the header information and all its associated models. |
void |
exportClearTextEncoding(java.lang.String location,
java.lang.String file_name)
Creates a STEP file in a form of the exchange structure containing the data of this schema instance, that is, the header information and all its associated models. |
void |
exportXml(java.io.OutputStream location,
InstanceReader instanceReader)
Writes this schema instance in XML representation to specified stream. |
abstract ASdaiModel |
getAssociatedModels()
Returns the set of SdaiModels associated with this
schema instance.
|
A_string |
getAuthor()
Returns an aggregate of strings A_string identifying the person
responsible for creating SdaiModels associated with
this schema instance. |
java.lang.String |
getAuthorization()
Returns a String containing the name and mailing address
of the person who authorizes the data contained in SdaiModels
associated with this schema instance.
|
java.lang.String |
getChangeDate()
Returns the date and time when this SchemaInstance was
created or its aggregate "associated_models" most recently modified. |
long |
getChangeDateLong()
Returns a long value of the date and time when
this SchemaInstance was created or its aggregate
"associated_models" most recently modified. |
A_string |
getContextIdentifiers()
Returns an aggregate A_string containing information
describing the contexts within which the instances in the
SdaiModels associated with this schema instance are applicable.
|
java.lang.String |
getDefaultLanguage()
Returns a String identifying the default language
for string values in those SdaiModels associated
with this schema instance, for which their own default language
is not specified. |
jsdai.dictionary.ESchema_definition |
getDefiningSchema()
Returns definition of the Express schema represented by this schema instance. |
A_string |
getDescription()
Returns an aggregate of strings A_string containing optional
descriptions about the SchemaInstance.
|
abstract ASchemaInstance |
getIncludedSchemaInstances()
Returns the set of SchemaInstances included by the
current schema instance.
|
java.lang.String |
getLockingUser()
Returns the name of the user that has placed exclusive lock on remote schema instance. |
java.lang.String |
getName()
Returns the name of the schema instance as a String.
|
jsdai.dictionary.ESchema_definition |
getNativeSchema()
Returns definition of the schema upon which this schema instance is based. |
java.lang.String |
getNativeSchemaString()
Returns the name of the schema upon which this schema instance is based. |
A_string |
getOrganization()
Returns an aggregate of strings A_string containing the
organizations with whom the author of this schema instance is associated.
|
java.lang.String |
getOriginatingSystem()
Returns a String characterizing the system from
which the data contained in SdaiModels
associated with this schema instance are originated.
|
java.lang.String |
getPreprocessorVersion()
Returns a String characterizing the system used to
build SdaiModels associated with this schema instance.
|
ASdaiModel |
getQuerySourceDomain()
Returns domain in which to perform a search. |
jsdai.query.SerializableRef |
getQuerySourceDomainRef()
|
jsdai.query.SerializableRef |
getQuerySourceInstanceRef()
|
AEntity |
getQuerySourceInstances()
Returns starting instances which serve as the first input instance set for a query. |
ASdaiModel |
getReferencedModels()
Returns the set of SdaiModels associated either with this
schema instance or a schema instance reached from this schema instance
following the inclusion relation (directly or indirectly).
|
SdaiRepository |
getRepository()
Returns the SdaiRepository to which this schema instance belongs. |
java.lang.String |
getValidationDate()
Returns the date of the most recent invocation of the validateSchemaInstance method for this schema instance. |
long |
getValidationDateLong()
Returns a long value of the date of the
most recent invocation of the validateSchemaInstance
method for this schema instance. |
int |
getValidationLevel()
Returns the level of expression evaluation for validation. |
int |
getValidationResult()
Gives the result returned by the most recent invocation of the validateSchemaInstance method for this schema instance. |
boolean |
isValidationCurrent()
This method is not implemented in current JSDAI version. |
int |
query(java.lang.String where,
EEntity entity,
AEntity result)
This method is not implemented in current JSDAI version. |
void |
removeSchemaInstance(SchemaInstance schemaInstance)
Removes a specified member from the set of schema instances that are included by this schema instance. |
void |
removeSdaiListener(SdaiListener listener)
Removes SdaiListener extending java.util.EventListener
from the special aggregate in this repository. |
void |
removeSdaiModel(SdaiModel model)
Removes a specified SdaiModel from the set of models
that are associated with this schema instance.
|
void |
rename(java.lang.String provided_name)
Assigns a new name to this SchemaInstance.
|
void |
setAuthorization(java.lang.String value)
Assigns a String value to the attribute characterizing
the person who authorizes the data contained in SdaiModels
associated with this schema instance.
|
void |
setDefaultLanguage(java.lang.String value)
Assigns a String to the attribute identifying
the default language for string values in those SdaiModels
associated with this schema instance,
for which their own default language is not specified.
|
void |
setNativeSchema(java.lang.Class schema_def)
Puts definition of the Express schema upon which this schema instance will be based. |
void |
setNativeSchema(jsdai.dictionary.ESchema_definition schema_def)
Puts definition of the schema upon which this schema instance will be based. |
void |
setOriginatingSystem(java.lang.String value)
Assigns a String value to the attribute characterizing
the system from which the data contained in SdaiModels
associated with this schema instance are originated.
|
void |
setPreprocessorVersion(java.lang.String value)
Assigns a String value to the attribute characterizing
the system used to build SdaiModels associated with
this schema instance.
|
boolean |
testChangeDate()
Checks if the creation date or date of the most recent modification of the aggregate "associated_models" was set. |
java.lang.String |
toString()
Returns a description of this schema instance as a String.
|
int |
validateGlobalRule(jsdai.dictionary.EGlobal_rule rule,
jsdai.dictionary.AWhere_rule nonConf)
Determines if the submitted global rule is satisfied by the population associated with this SchemaInstance. |
int |
validateGlobalRule(java.lang.String rule,
jsdai.dictionary.AWhere_rule nonConf)
Determines if specified global rule is satisfied by the population associated with this SchemaInstance. |
int |
validateInstanceReferenceDomain(AEntity nonConf)
This method is not implemented in current JSDAI version. |
int |
validateSchemaInstance()
This method is not implemented in current JSDAI version. |
int |
validateUniquenessRule(jsdai.dictionary.EUniqueness_rule rule,
AEntity nonConf)
Determines whether the submitted uniqueness rule is satisfied by the population associated with this SchemaInstance. |
int |
validateUniquenessRule(java.lang.String rule,
AEntity nonConf)
Determines whether the submitted uniqueness rule is satisfied by the population associated with this SchemaInstance. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
public java.lang.String getName()
throws SdaiException
String.
The schema instances within a SdaiRepository must have unique names.
SchemaInstance.
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - SY_ERR, underlying system error.
public A_string getDescription()
throws SdaiException
A_string containing optional
descriptions about the SchemaInstance.
After invocation of
importClearTextEncoding
this aggregate within each SchemaInstance with which
at least one SdaiModel in the resulting repository
is associated contains strings taken from the field
description of the entity
file_description in the header of the exchange structure
(see ISO 10303-21::8.2.1 file_description).
During a read-write transaction the aggregate can be
modified by adding/modifying/removing its members.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - RP_NOPN, repository is not open.
public A_string getAuthor()
throws SdaiException
A_string identifying the person
responsible for creating SdaiModels associated with
this schema instance. The aggregate shall have its name at the
first position and mail and/or email addresses at the following
positions.
After invocation of
importClearTextEncoding
this aggregate within each SchemaInstance with which
at least one SdaiModel in the resulting repository
is associated contains strings taken from the field author
of the entity file_name in the header of the exchange
structure (see ISO 10303-21::8.2.2 file_name).
During a read-write transaction the aggregate can be
modified by adding/modifying/removing its members.
It is a responsibility of the application to fill this aggregate with
useful information.
SdaiModels
associated with this schema instance.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - RP_NOPN, repository is not open.
public A_string getOrganization()
throws SdaiException
A_string containing the
organizations with whom the author of this schema instance is associated.
After invocation of
importClearTextEncoding
this aggregate within each SchemaInstance with which
at least one SdaiModel in the resulting repository
is associated contains strings taken from the field organization
of the entity file_name in the header of the exchange
structure (see ISO 10303-21::8.2.2 file_name).
During a read-write transaction the aggregate can be
modified by adding/modifying/removing its members.
It is a responsibility of the application to fill this aggregate with
useful information.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - RP_NOPN, repository is not open.
public java.lang.String getPreprocessorVersion()
throws SdaiException
String characterizing the system used to
build SdaiModels associated with this schema instance.
After invocation of
importClearTextEncoding
this string within each SchemaInstance with which
at least one SdaiModel in the resulting repository
is associated has value taken from the field
preprocessor_version of the entity
file_name in the header of the exchange structure
(see ISO 10303-21::8.2.2 file_name).
SdaiModels associated with this schema instance.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - RP_NOPN, repository is not open.setPreprocessorVersion(java.lang.String),
"ISO 10303-21::8.2.2 file_name."
public void setPreprocessorVersion(java.lang.String value)
throws SdaiException
String value to the attribute characterizing
the system used to build SdaiModels associated with
this schema instance.
This assignment is allowed only if the repository containing
this schema instance is open.
value - string describing the system used to build SdaiModels
associated with this schema instance.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - RP_NOPN, repository is not open.
SdaiException - VA_NSET, value not set.getPreprocessorVersion(),
"ISO 10303-21::8.2.2 file_name."
public java.lang.String getOriginatingSystem()
throws SdaiException
String characterizing the system from
which the data contained in SdaiModels
associated with this schema instance are originated.
After invocation of
importClearTextEncoding
this string within each SchemaInstance with which
at least one SdaiModel in the resulting repository
is associated has value taken from the field
originating_system of the entity
file_name in the header of the exchange structure
(see ISO 10303-21::8.2.2 file_name).
SdaiModels associated with this schema instance.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - RP_NOPN, repository is not open.setOriginatingSystem(java.lang.String),
"ISO 10303-21::8.2.2 file_name."
public void setOriginatingSystem(java.lang.String value)
throws SdaiException
String value to the attribute characterizing
the system from which the data contained in SdaiModels
associated with this schema instance are originated.
This assignment is allowed only if the repository containing
this schema instance is open.
value - string describing the system that is a source of the data
in SdaiModels associated with this schema instance.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - RP_NOPN, repository is not open.
SdaiException - VA_NSET, value not set.getOriginatingSystem(),
"ISO 10303-21::8.2.2 file_name."
public java.lang.String getAuthorization()
throws SdaiException
String containing the name and mailing address
of the person who authorizes the data contained in SdaiModels
associated with this schema instance.
After invocation of
importClearTextEncoding
this string within each SchemaInstance with which
at least one SdaiModel in the resulting repository
is associated has value taken from the field
authorization of the entity file_name in
the header of the exchange structure (see ISO 10303-21::8.2.2 file_name).
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - RP_NOPN, repository is not open.setAuthorization(java.lang.String),
"ISO 10303-21::8.2.2 file_name."
public void setAuthorization(java.lang.String value)
throws SdaiException
String value to the attribute characterizing
the person who authorizes the data contained in SdaiModels
associated with this schema instance.
This assignment is allowed only if the repository containing
this schema instance is open.
value - string describing the person who authorizes this schema instance.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - RP_NOPN, repository is not open.
SdaiException - VA_NSET, value not set.getAuthorization(),
"ISO 10303-21::8.2.2 file_name."
public java.lang.String getDefaultLanguage()
throws SdaiException
String identifying the default language
for string values in those SdaiModels associated
with this schema instance, for which their own default language
is not specified. More precisely, for a model, the default language
can be assigned individually. String returned by this
method serves as a default language for those models for which
an individual assignment was not made.
After invocation of
importClearTextEncoding
this string within each SchemaInstance with which
at least one SdaiModel in the resulting repository
is associated can take value extracted from the header of the exchange structure
(see ISO 10303-21::8.2.4 section_language) provided
an appropriate value is given there (otherwise it is set to null).
String identifying the default language for string
values in SdaiModels associated with this schema instance.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - RP_NOPN, repository is not open.setDefaultLanguage(java.lang.String),
SdaiModel.getDefaultLanguage(),
SdaiModel.setDefaultLanguage(java.lang.String),
"ISO 10303-21::8.2.4 section_language."
public void setDefaultLanguage(java.lang.String value)
throws SdaiException
String to the attribute identifying
the default language for string values in those SdaiModels
associated with this schema instance,
for which their own default language is not specified.
This assignment is allowed only if the repository containing
this schema instance is open.
value - String identifying the default language for string
values in SdaiModels associated with this schema instance.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - RP_NOPN, repository is not open.getDefaultLanguage(),
SdaiModel.getDefaultLanguage(),
SdaiModel.setDefaultLanguage(java.lang.String),
"ISO 10303-21::8.2.4 section_language."
public A_string getContextIdentifiers()
throws SdaiException
A_string containing information
describing the contexts within which the instances in the
SdaiModels associated with this schema instance are applicable.
Both the schema instance and each model associated with it have
their own aggregates A_string for writing context identifiers.
But for those models, for which their own aggregate is empty,
contexts are described by the aggregate returned by this method,
that is, by the schema instance aggregate.
After invocation of
importClearTextEncoding
this aggregate within each SchemaInstance with which
at least one SdaiModel in the resulting repository
is associated will contain information extracted from the header of the
exchange structure (see ISO 10303-21::8.2.5 section_context) provided
an appropriate information is given there.
During a read-write transaction the aggregate can be
modified by adding/modifying/removing its members.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - RP_NOPN, repository is not open.SdaiModel.getContextIdentifiers(),
"ISO 10303-21::8.2.5 section_context."
public abstract SdaiPermission checkPermission()
throws SdaiException
SdaiException - if an error occurs performing underlying JSDAI operationscheckRead(),
checkWrite(),
SdaiPermission
public abstract void checkRead()
throws SdaiException
SdaiException.SY_SEC if the owning session
has no read access to this schema instance. Otherwise this method returns
with no action.
SdaiException - SY_SEC if the owning session is
not granted the read access
SdaiException - if an error occurs performing underlying JSDAI operationscheckPermission(),
checkWrite(),
SdaiPermission
public abstract void checkWrite()
throws SdaiException
SdaiException.SY_SEC if the owning session
has no write access to this schema instance. Otherwise this method returns
with no action.
SdaiException - SY_SEC if the owning session is
not granted the write access
SdaiException - if an error occurs performing underlying JSDAI operationscheckPermission(),
checkRead(),
SdaiPermission
public abstract ASdaiModel getAssociatedModels()
throws SdaiException
SdaiModels associated with this
schema instance.
An SdaiModel may be associated with no, one or
several schema instances.
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.
public java.lang.String getNativeSchemaString()
throws SdaiException
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - SY_ERR, underlying system error.getNativeSchema(),
setNativeSchema(ESchema_definition),
setNativeSchema(Class)
public jsdai.dictionary.ESchema_definition getNativeSchema()
throws SdaiException
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - SY_ERR, underlying system error.getNativeSchemaString(),
setNativeSchema(ESchema_definition),
setNativeSchema(Class)
public void setNativeSchema(jsdai.dictionary.ESchema_definition schema_def)
throws SdaiException
change_date is set.
Passing null value to the method's
parameter results in SdaiException SD_NDEF.
schema_def - new native schema definition for this schema instance.
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - SD_NDEF, schema definition not defined.getNativeSchema(),
getNativeSchemaString(),
setNativeSchema(Class)
public void setNativeSchema(java.lang.Class schema_def)
throws SdaiException
change_date is set.
The value submitted to the parameter during invocation of the method shall be
a special java class with the name constructed from the schema name. This class
is contained in the package corresponding to the schema of interest.
For example, if the schema name is "geometry_schema", then the package name is
"jsdai.SGeometry_schema" and the value for the parameter shall
be "jsdai.SGeometry_schema.SGeometry_schema.class".
Passing null value to the method's
parameter results in SdaiException SD_NDEF.
schema_def - Java class for the Express schema which has to be
established as a native schema for this schema instance.
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - SD_NDEF, schema definition not defined.getNativeSchema(),
getNativeSchemaString(),
setNativeSchema(ESchema_definition)
public SdaiRepository getRepository()
throws SdaiException
SdaiRepository to which this schema instance belongs.
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.
public boolean testChangeDate()
throws SdaiException
true if the date was set, and
false otherwise.
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.getChangeDate(),
getChangeDateLong()
public java.lang.String getChangeDate()
throws SdaiException
SchemaInstance was
created or its aggregate "associated_models" most recently modified.
String representing the date and time.
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - VA_NSET, value not set.testChangeDate(),
getChangeDateLong()
public long getChangeDateLong()
throws SdaiException
long value of the date and time when
this SchemaInstance was created or its aggregate
"associated_models" most recently modified.
long representing the date and time.
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - VA_NSET, value not set.testChangeDate(),
getChangeDate()
public java.lang.String getValidationDate()
throws SdaiException
validateSchemaInstance method for this schema instance.
String representing the date and time.
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - VA_NSET, value not set.getValidationDateLong(),
validateSchemaInstance()
public long getValidationDateLong()
throws SdaiException
long value of the date of the
most recent invocation of the validateSchemaInstance
method for this schema instance.
long representing the date and time.
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - VA_NSET, value not set.getValidationDate(),
validateSchemaInstance()
public int getValidationResult()
throws SdaiException
validateSchemaInstance method for this schema instance.
int value representing the result of validation.
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.validateSchemaInstance()
public int getValidationLevel()
throws SdaiException
int value representing the level of validation.
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.validateSchemaInstance()
public jsdai.dictionary.ESchema_definition getDefiningSchema()
throws SdaiException
openSession.
The name of the schema instance is the same as that of the related
Express schema.
The set associated_models of such a schema instance
for an Express schema consists of all data dictionary models containing
definition of at least one entity (or defined type) either defined,
or declared(through USED or REFERENCED) or
implicitly interfaced in this Express schema.
All such schema instances belong to SystemRepository.
If method is applied to schema instance of different kind,
then SdaiException FN_NAVL is thrown.
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - FN_NAVL, function not available.
SdaiException - SY_ERR, underlying system error.
public java.lang.String getLockingUser()
throws SdaiException
null for local schema instance.
SdaiException - if an error occurs during the operation
or in underlying JSDAI operationsSdaiSession.lock(jsdai.lang.ASdaiRepository, jsdai.lang.ASchemaInstance, jsdai.lang.ASdaiModel, int)
public abstract void delete()
throws SdaiException
SchemaInstance.
Deleting of a SchemaInstance from "SystemRepository"
is forbidden. In this case, SdaiException VT_NVLD is thrown.
SdaiException - TR_NEXS, transaction does not exist.
SdaiException - TR_NRW, transaction not read-write.
SdaiException - TR_EAB, transaction ended abnormally.
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - VT_NVLD, value type invalid.
SdaiException - RP_RO, read-only access to repository.
SdaiException - RP_LOCK, repository locked by another user.
SdaiException - SY_ERR, underlying system error.
public void rename(java.lang.String provided_name)
throws SdaiException
SchemaInstance.
This new name must differ from the names of other schema instances in the
same SdaiRepository. If this condition is violated, then
SdaiException SI_DUP is thrown. Passing null value to the method's
parameter results in SdaiException VA_NSET.
Renaming of a SchemaInstance from "SystemRepository"
is forbidden.
In the case of such an attempt, SdaiException VT_NVLD is thrown.
provided_name - new name of this schema instance.
SdaiException - TR_NEXS, transaction does not exist.
SdaiException - TR_NRW, transaction not read-write.
SdaiException - TR_EAB, transaction ended abnormally.
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - SI_DUP, schema instance duplicate.
SdaiException - VT_NVLD, value type invalid.
SdaiException - VA_NSET, value not set.
SdaiException - RP_RO, read-only access to repository.
SdaiException - RP_LOCK, repository locked by another user.
SdaiException - SY_ERR, underlying system error.
public abstract void addSdaiModel(SdaiModel model)
throws SdaiException
SdaiModel to the set of models
that are associated with this schema instance.
If null value is passed to the method's parameter,
then SdaiException VA_NSET is thrown.
Adding a model to a SchemaInstance in "SystemRepository"
is forbidden.
In the case of such an attempt, SdaiException VT_NVLD is thrown.
model - the SdaiModel submitted to associate with
this schema instance.
SdaiException - TR_NEXS, transaction does not exist.
SdaiException - TR_NRW, transaction not read-write.
SdaiException - TR_EAB, transaction ended abnormally.
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - VT_NVLD, value type invalid.
SdaiException - VA_NSET, value not set.
SdaiException - RP_RO, read-only access to repository.
SdaiException - RP_LOCK, repository locked by another user.
SdaiException - SY_ERR, underlying system error.
public void removeSdaiModel(SdaiModel model)
throws SdaiException
SdaiModel from the set of models
that are associated with this schema instance.
If null value is passed to the method's parameter,
then SdaiException VA_NSET is thrown.
Removing a model from a SchemaInstance in "SystemRepository"
is forbidden.
In the case of such an attempt, SdaiException VT_NVLD is thrown.
model - the SdaiModel that is to be removed
from the set "associated_models" of this schema instance.
SdaiException - TR_NEXS, transaction does not exist.
SdaiException - TR_NRW, transaction not read-write.
SdaiException - TR_EAB, transaction ended abnormally.
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - VT_NVLD, value type invalid.
SdaiException - VA_NSET, value not set.
SdaiException - RP_RO, read-only access to repository.
SdaiException - RP_LOCK, repository locked by another user.
SdaiException - SY_ERR, underlying system error.public void addSdaiListener(SdaiListener listener)
SdaiListener extending java.util.EventListener
to a special aggregate in this repository.
addSdaiListener in interface SdaiEventSourcelistener - a SdaiListener to be added.removeSdaiListener(jsdai.lang.SdaiListener)public void removeSdaiListener(SdaiListener listener)
SdaiListener extending java.util.EventListener
from the special aggregate in this repository.
removeSdaiListener in interface SdaiEventSourcelistener - SdaiListener to be removed.addSdaiListener(jsdai.lang.SdaiListener)
public int query(java.lang.String where,
EEntity entity,
AEntity result)
throws SdaiException
SdaiException FN_NAVL will be thrown if this method is invoked.
query in interface QuerySourcewhere - a String valueentity - an EEntity valueresult - an AEntity value
int value
SdaiException - FN_NAVL, function not available.
public ASdaiModel getQuerySourceDomain()
throws SdaiException
QuerySource
getQuerySourceDomain in interface QuerySourceSdaiException - if an error occurs during the operation
or in underlying JSDAI operations
public AEntity getQuerySourceInstances()
throws SdaiException
QuerySource
getQuerySourceInstances in interface QuerySourceAEntity containing the instances or null
this aggregate consists all instances in query source domain
SdaiException - if an error occurs during the operation
or in underlying JSDAI operations
public jsdai.query.SerializableRef getQuerySourceInstanceRef()
throws SdaiException
getQuerySourceInstanceRef in interface QuerySourceSdaiException
public jsdai.query.SerializableRef getQuerySourceDomainRef()
throws SdaiException
getQuerySourceDomainRef in interface QuerySourceSdaiException
public int validateGlobalRule(jsdai.dictionary.EGlobal_rule rule,
jsdai.dictionary.AWhere_rule nonConf)
throws SdaiException
SchemaInstance. Validation is performed
for all entity instances of the entity types to which the specified global
rule applies in all SdaiModels associated with the schema instance.
rule - the global rule to validatenonConf - the non-persistent list to which those instances of the
entity where_rule within the validated global rule to which they did not
conform are appended (if the return value is 1)
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - RU_NDEF, rule not defined.
SdaiException - AI_NEXS, aggregate instance does not exist.
SdaiException - RP_NOPN, repository is not open.
SdaiException - TR_NEXS, transaction does not exist.
SdaiException - FN_NAVL, function not available.
SdaiException - SY_ERR, underlying system error.validateGlobalRule(String rule, AWhere_rule nonConf),
"ISO 10303-22::10.6.5 Validate global rule"
public int validateGlobalRule(java.lang.String rule,
jsdai.dictionary.AWhere_rule nonConf)
throws SdaiException
SchemaInstance. Validation is performed
for all entity instances of the entity types to which the specified global
rule applies in all SdaiModels associated with the schema instance.
rule - the name of the global rule to validatenonConf - the non-persistent list to which those instances of the
entity where_rule within the validated global rule to which they did not
conform are appended (if the return value is 1)
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - RU_NDEF, rule not defined.
SdaiException - AI_NEXS, aggregate instance does not exist.
SdaiException - RP_NOPN, repository is not open.
SdaiException - TR_NEXS, transaction does not exist.
SdaiException - FN_NAVL, function not available.
SdaiException - SY_ERR, underlying system error.validateGlobalRule(EGlobal_rule rule, AWhere_rule nonConf),
"ISO 10303-22::10.6.5 Validate global rule"
public int validateUniquenessRule(jsdai.dictionary.EUniqueness_rule rule,
AEntity nonConf)
throws SdaiException
SchemaInstance. Validation is performed
for all entity instances of the entity type in which the specified uniqueness
rule was defined in all SdaiModels associated with the schema instance.
rule - the uniqueness rule to validatenonConf - the non-persistent list to which instances not conforming to
validation are appended (if the return value is 1)
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - RU_NDEF, rule not defined.
SdaiException - AI_NEXS, aggregate instance does not exist.
SdaiException - RP_NOPN, repository is not open.
SdaiException - TR_NEXS, transaction does not exist.
SdaiException - FN_NAVL, function not available.
SdaiException - SY_ERR, underlying system error.validateUniquenessRule(String rule, AEntity nonConf),
"ISO 10303-22::10.6.6 Validate uniqueness rule"
public int validateUniquenessRule(java.lang.String rule,
AEntity nonConf)
throws SdaiException
SchemaInstance. Validation is performed
for all entity instances of the entity type in which the uniqueness
rule was defined in all SdaiModels associated with the schema instance.
The rule is specified by the string of the form "entity_name.rule_name", where
'entity_name' is the name of the entity data type within which the rule is declared
and 'rule_name' is the name (if present) of the rule. If the rule has no name, then
the supplied string shall be of the form "entity_name." or just "entity_name".
rule - the name of the uniqueness rule to validate qualified by the name
of its owning entity data typenonConf - the non-persistent list to which instances not conforming to
validation are appended (if the return value is 1)
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - RU_NDEF, rule not defined.
SdaiException - AI_NEXS, aggregate instance does not exist.
SdaiException - RP_NOPN, repository is not open.
SdaiException - TR_NEXS, transaction does not exist.
SdaiException - FN_NAVL, function not available.
SdaiException - SY_ERR, underlying system error.validateUniquenessRule(EUniqueness_rule rule, AEntity nonConf),
"ISO 10303-22::10.6.6 Validate uniqueness rule"
public int validateInstanceReferenceDomain(AEntity nonConf)
throws SdaiException
SdaiException FN_NAVL will be thrown if this method is invoked.
SdaiException - FN_NAVL, function not available.
public int validateSchemaInstance()
throws SdaiException
SdaiException FN_NAVL will be thrown if this method is invoked.
SdaiException - FN_NAVL, function not available.
public boolean isValidationCurrent()
throws SdaiException
SdaiException FN_NAVL will be thrown if this method is invoked.
SdaiException - FN_NAVL, function not available.public java.lang.String toString()
String.
It includes constant string "SchemaInstance: " and the name of the schema instance.
public void exportClearTextEncoding(java.lang.String location)
throws SdaiException
location gets some String value,
then this value is used as a name for the resulting file.
If, however, location is null, then the file name is constructed by
taking the name of this schema instance and combining it with the extension "stp".
The contents of each associated model is written down to
the file as a separate data section. The header of the file includes
time-stamp which specifies the date and time when the schema instance was
created or most recently modified.
The attribute name of the entity file_name in the
header of the exchange structure (see ISO 10303-21::8.2.2 file_name) is set
to the name of this schema instance.
The value of the attribute implementation_level of the
entity file_description (see ISO 10303-21::8.2.1 file_description)
can take one of the following values:
associated_models contains at most one model;
file_population in the header of the exchange structure
(see ISO 10303-21::8.2.4 file_population) is created;
file_population instance the value standing for
associated_models is missing, that is, dollar sign is used.
This happens because all the data sections in the
resulting exchange structure file correspond to models in the
associated_models set (see ISO 10303-21::8.2.4 file_population).
After execution of this method the schema instance itself remains unchanged.
The method is disabled for the special schema instance data_dictionary
defined in SdaiSession class.
In this case SdaiException FN_NAVL is thrown.
location - the name of the file created by the method.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - RP_NOPN, repository is not open.
SdaiException - TR_NEXS, transaction does not exist.
SdaiException - TR_NAVL, transaction currently not available.
SdaiException - FN_NAVL, function not available.
SdaiException - SY_ERR, underlying system error.SdaiRepository.exportClearTextEncoding(java.lang.String),
exportClearTextEncoding(String location, String file_name),
exportClearTextEncoding(OutputStream location),
see "ISO 10303-21"
public void exportClearTextEncoding(java.lang.String location,
java.lang.String file_name)
throws SdaiException
location gets some String value,
then this value is used as a name for the resulting file.
If, however, location is null, then the file name is constructed by
taking the name of this schema instance and combining it with the extension "stp".
The contents of each associated model is written down to
the file as a separate data section. The header of the file includes
time-stamp which specifies the date and time when the schema instance was
created or most recently modified.
The attribute name of the entity file_name in the
header of the exchange structure (see ISO 10303-21::8.2.2 file_name) is set
to the string value submitted through the second method's parameter provided
this value is nonnull. If this value is null, then the attribute
name is set to the name of this schema instance.
The value of the attribute implementation_level of the
entity file_description (see ISO 10303-21::8.2.1 file_description)
can take one of the following values:
associated_models contains at most one model;
file_population in the header of the exchange structure
(see ISO 10303-21::8.2.4 file_population) is created;
file_population instance the value standing for
associated_models is missing, that is, dollar sign is used.
This happens because all the data sections in the
resulting exchange structure file correspond to models in the
associated_models set (see ISO 10303-21::8.2.4 file_population).
After execution of this method the schema instance itself remains unchanged.
The method is disabled for the special schema instance data_dictionary
defined in SdaiSession class.
In this case SdaiException FN_NAVL is thrown.
location - the name of the file created by the method.file_name - the name of the exchange structure to which this schema instance is exported.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - RP_NOPN, repository is not open.
SdaiException - TR_NEXS, transaction does not exist.
SdaiException - TR_NAVL, transaction currently not available.
SdaiException - FN_NAVL, function not available.
SdaiException - SY_ERR, underlying system error.SdaiRepository.exportClearTextEncoding(java.lang.String),
exportClearTextEncoding(String location),
exportClearTextEncoding(OutputStream location),
see "ISO 10303-21"
public void exportClearTextEncoding(java.io.OutputStream location)
throws SdaiException
name of the entity file_name in the
header of the exchange structure (see ISO 10303-21::8.2.2 file_name) is set
to the name of this schema instance.
For more details about the exchange format see
exportClearTextEncoding(String location).
Invoking this method is equivalent to making the following call:
exportClearTextEncoding(location, null);
location - an OutputStream the exchange structure is directed to.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - RP_NOPN, repository is not open.
SdaiException - TR_NEXS, transaction does not exist.
SdaiException - TR_NAVL, transaction currently not available.
SdaiException - FN_NAVL, function not available.
SdaiException - SY_ERR, underlying system error.exportClearTextEncoding(String location),
exportClearTextEncoding(String location, String file_name),
exportClearTextEncoding(OutputStream location, String file_name)
public void exportClearTextEncoding(java.io.OutputStream location,
java.lang.String file_name)
throws SdaiException
name of the entity file_name in the
header of the exchange structure (see ISO 10303-21::8.2.2 file_name) is set
to the string value submitted through the second method's parameter provided
this value is nonnull. If this value is null, then the attribute
name is set to the name of this schema instance.
For more details about the exchange format see
exportClearTextEncoding(String location, String file_name).
location - an OutputStream the exchange structure is directed to.file_name - the name of the exchange structure to which this schema instance is exported.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - RP_NOPN, repository is not open.
SdaiException - TR_NEXS, transaction does not exist.
SdaiException - TR_NAVL, transaction currently not available.
SdaiException - FN_NAVL, function not available.
SdaiException - SY_ERR, underlying system error.exportClearTextEncoding(String location),
exportClearTextEncoding(String location, String file_name),
exportClearTextEncoding(OutputStream location)
public void exportXml(java.io.OutputStream location,
InstanceReader instanceReader)
throws SdaiException
instanceReader parameter.
location - an OutputStream to write XML toinstanceReader - an InstanceReader describing output format
SdaiException - if an error occurs during the operation
or in underlying JSDAI operationsjsdai.xml.InstanceReader,
jsdai.xml.LateBindingReader
public abstract ASchemaInstance getIncludedSchemaInstances()
throws SdaiException
SchemaInstances included by the
current schema instance.
The inclusion relation defined on the set of schema instances forms
a graph, which must be acyclic.
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.
public void addSchemaInstance(SchemaInstance schemaInstance)
throws SdaiException
Applying inclusion operation to a SchemaInstance in
"SystemRepository" is forbidden.
In the case of such an attempt, SdaiException VT_NVLD is thrown.
schemaInstance - the SchemaInstance submitted to include into
disposition of this schema instance.
SdaiException - TR_NEXS, transaction does not exist.
SdaiException - TR_NRW, transaction not read-write.
SdaiException - TR_EAB, transaction ended abnormally.
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - VT_NVLD, value type invalid.
SdaiException - VA_NVLD, value invalid.
SdaiException - VA_NSET, value not set.
SdaiException - RP_RO, read-only access to repository.
SdaiException - RP_LOCK, repository locked by another user.
SdaiException - SY_ERR, underlying system error.
public void removeSchemaInstance(SchemaInstance schemaInstance)
throws SdaiException
Applying removal operation to a SchemaInstance in "SystemRepository"
is forbidden.
In the case of such an attempt, SdaiException VT_NVLD is thrown.
schemaInstance - the SchemaInstance that is to be removed
from the set of included schema instances.
SdaiException - TR_NEXS, transaction does not exist.
SdaiException - TR_NRW, transaction not read-write.
SdaiException - TR_EAB, transaction ended abnormally.
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.
SdaiException - VT_NVLD, value type invalid.
SdaiException - VA_NSET, value not set.
SdaiException - RP_RO, read-only access to repository.
SdaiException - RP_LOCK, repository locked by another user.
SdaiException - SY_ERR, underlying system error.
public ASdaiModel getReferencedModels()
throws SdaiException
SdaiModels associated either with this
schema instance or a schema instance reached from this schema instance
following the inclusion relation (directly or indirectly).
Duplicate appearances of a model are not taken into account.
SdaiException - RP_NOPN, repository is not open.
SdaiException - SI_NEXS, schema instance does not exist.
|
Copyright © LKSoftWare GmbH, 1999-2008 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||