|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsdai.lang.SdaiCommon jsdai.lang.SdaiSession
It is the main class to begin and end any usage of JSDAI.
Only one SdaiSession
object can exist at a time.
An SdaiSession
is started with
openSession
and ended with closeSession
methods.
The active session can be statically accessed with getSession
method.
Conceptionally, the SdaiSession
can be represented by
the following EXPRESS entity:
ENTITY SdaiSession;sdaiImplementation
: Implementation;knownServers
: SET [1:?] OF SdaiRepository;activeServers
: SET [1:?] OF SdaiRepository;activeModels
: SET [1:?] OF SdaiModel;dataDictionary
: OPTIONAL SchemaInstance;dataMapping
: OPTIONAL SchemaInstance; INVERSEactiveTransaction
: SdaiTransaction FOR owningSession; END_ENTITY;
All attributes are read-only, and for each of them a corresponding get method is defined.
As it is documented in the description of class SdaiRepository
,
there exists a special repositories-directory which location is specified
by the property "repositories" in the configuration file jsdai.properties.
During execution of openSession
method all the repositories
found in this directory are made available for the user by including them
into the set knownServers
defined in the session.
Some members of knownServers
can be opened and, thus, can also be found in
the set activeServers
.
After openSession
only the special repository with the
name "SystemRepository" is opened. The "SystemRepository" is always
the first member in activeServers
and knownServers
.
The contents of this repository (SdaiModel
s and
SchemaInstance
s) are read-only; an application is not
allowed to modify them. The SdaiModel
s in "SystemRepository"
contain either meta-descriptions of the supported
EXPRESS schemas or mapping information between such schemas.
The "SystemRepository" contains 2 SchemaInstance
s:
with one all dictionary SdaiModel
s (data_dictionary)
and with another all dictionary and mapping SdaiModel
s (data_mapping)
are associated.
Field Summary | |
static java.lang.String |
asterisk
This field is for internal JSDAI use only. |
static java.lang.String |
COMP_MODEL_NAME
The name of the reserved SdaiModel "MIXED_COMPLEX_TYPES_DICTIONARY_DATA". |
static java.lang.String |
DICT_MODEL_NAME
The name of the reserved SdaiModel "SDAI_DICTIONARY_SCHEMA_DICTIONARY_DATA". |
static java.lang.String |
DICT_SCHEMA_NAME
The name of the reserved SchemaInstance "SDAI_DICTIONARY_SCHEMA". |
static java.lang.String |
DICTIONARY_NAME_SUFIX
Suffix of dictionary SdaiModel "_DICTIONARY_DATA" |
static java.lang.String |
DICTIONARY_SCHEMA_INSTANCE_NAME
The name of the default SchemaInstance "SDAI_DICTIONARY_SCHEMA_INSTANCE"
holding all dictionary SdaiModel s. |
static int |
FALSE
integer value for LOGICAL value FALSE. |
static java.lang.String |
MAPP_MODEL_NAME
The name of the reserved SdaiModel "SDAI_MAPPING_SCHEMA_DICTIONARY_DATA". |
static java.lang.String |
MAPP_SCHEMA_NAME
The name of the reserved SchemaInstance "SDAI_MAPPING_SCHEMA". |
static java.lang.String |
MAPPING_NAME_SUFIX
Suffix of dictionary SdaiModel with mapping data "_MAPPING_DATA" |
static java.lang.String |
MAPPING_SCHEMA_INSTANCE_NAME
The name of the default SchemaInstance "SDAI_MAPPING_SCHEMA_INSTANCE"
holding all mapping and related dictionary SdaiModel s |
static int |
TRUE
integer value for LOGICAL value TRUE. |
static int |
UNKNOWN
integer value for LOGICAL value UNKNOWN. |
Method Summary | |
void |
addLoggingListener(SdaiListener listener)
Adds SdaiListener extending java.util.EventListener
to a special aggregate of SDAI listeners receiving SDAI logging events. |
void |
closeSession()
Terminates this SdaiSession .
|
static void |
convertMapping(MappingContext mappingContext)
Converts target (AIM) population by invoking underlying AIM2ARM algorithm. |
java.lang.String |
convertRepoName(java.lang.String name)
Converts a given String to a string that may be
used as a repository name.
|
SdaiRepository |
createRepository(java.lang.String repository_name,
java.lang.Object location)
Creates a new repository and adds it to knownServers (but not
to activeServers what means that the repository returned
is closed).
|
void |
enableLogging(boolean enable)
Starts recording changes made to the entity instances in the log for subsequent undo/redo operations. |
void |
endUndoGroup()
Ends recording changes (made to the entity instances) in the current group. |
void |
endUndoGroup(java.lang.Object listenerArgument)
Ends recording changes (made to the entity instances) in the current group. |
static jsdai.dictionary.EData_type |
findDataType(java.lang.String name,
java.lang.Class schema)
This method is for internal JSDAI use only. |
jsdai.dictionary.ESchema_definition |
findSchemaDefinition(java.lang.String name)
Given schema name, returns definition of the Express schema with this name. |
ASdaiModel |
getActiveModels()
Returns SdaiModel s currently being accessed in the session.
|
ASdaiRepository |
getActiveServers()
Returns the aggregate containing all repositories currently open in this SdaiSession . |
SdaiTransaction |
getActiveTransaction()
Returns the transaction currently available in the session. |
AEntity |
getClipboard()
Returns a clipboard - a globally available aggregate for all JSDAI applications running on the same JVM. |
java.lang.Class |
getComplexEntityClass(java.lang.Class[] types,
java.lang.Class schema)
Finds the entity class for a complex entity data type with two or more leaf entity data types. |
jsdai.dictionary.EEntity_definition |
getComplexEntityDefinition(jsdai.dictionary.EEntity_definition[] types,
jsdai.dictionary.ESchema_definition schema)
Finds the entity definition for a complex entity data type with two or more leaf entity data types. |
java.lang.String |
getDataBaseBridge()
Returns SQL bridge connection URL |
SchemaInstance |
getDataDictionary()
Returns the SchemaInstance with which all data dictionary
SdaiModel s are associated.
|
SchemaInstance |
getDataMapping()
Returns the SchemaInstance with which all SdaiModel s
with dictionary and mapping data are associated.
|
ASdaiRepository |
getKnownServers()
Returns the aggregate containing all repositories currently available in this SdaiSession . |
static java.lang.String |
getLicensee()
Returns the name of the person or organization to whom a licence is granted. |
static java.io.PrintWriter |
getLogWriter()
Returns the static logging/tracing PrintWriter that can be used during
any SdaiSession . |
java.io.PrintWriter |
getLogWriterSession()
Returns the logging/tracing PrintWriter that is associated with
the current Object of SdaiSession . |
jsdai.mapping.ASchema_mapping |
getMappings(jsdai.dictionary.ESchema_definition schema)
Returns the schema_mappings of AIM schema. |
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. |
SdaiRepository |
getRepositoryByRef(jsdai.query.SerializableRef repositoryRef)
Returns remote SdaiRepository using specified repository reference. |
static java.lang.String |
getRepositoriesPath()
Returns the pathname string of the local directory containing subdirectories for different repositories and some additional information. |
SdaiContext |
getSdaiContext()
Returns the default context of this session. |
Implementation |
getSdaiImplementation()
Returns the instance of class Implementation containing
the general characteristics of JSDAI.
|
static java.lang.String |
getSerialNumber()
Returns the serial number of JSDAI. |
static SdaiSession |
getSession()
Returns the session. |
SdaiRepository |
getSystemRepository()
Returns a special repository with the name "SystemRepository". |
void |
importClearTextEncoding(java.io.InputStream sourceLocation,
SdaiRepository destinationLocation)
Imports an exchange structure (part21 file) into an existing repository submitted through the second method's parameter. |
SdaiRepository |
importClearTextEncoding(java.lang.String name,
java.lang.Object source_location,
java.lang.Object destination_location)
Creates a new repository and imports an exchange structure (part21 file) into it. |
ASchemaInstance |
importClearTextEncoding(java.lang.String sourceLocation,
SdaiRepository targetRepo)
Imports an exchange structure (part21 file) into an existing repository submitted through the second method's parameter. |
boolean |
isModified()
Informs if at least one repository available in this session is modified. |
boolean |
isRedoGroupAvailable()
Informs whether the redo operation is available for at least one group of recorded changes. |
boolean |
isUndoGroupAvailable()
Informs whether the undo operation is available for at least one group of recorded changes. |
void |
linkDataBaseBridge(java.lang.String bridgeURL,
java.lang.String user,
char[] password)
Links SQL Bridge and makes remote repositories available in aggregate of known_servers , which is accessible through
getKnownServers method.
|
SdaiRepository |
linkRepository(java.lang.String name,
java.lang.String location)
Links an already existing SdaiRepository outside
of this SdaiSession (external) to knownServers
(but not to activeServers what means that the repository
returned is closed).
|
java.util.Properties |
loadApplicationProperties(java.lang.Class identification)
Returns Properties table for an application specified
by a parameter of type Class .
|
void |
lock(ASdaiRepository repositories,
ASchemaInstance schInstances,
ASdaiModel models,
int maxwait)
Locks specified remote SdaiRepositories , SchemaInstances ,
and SdaiModels in exclusive mode on JSDAI-DB.
|
SdaiQuery |
newQuery(org.w3c.dom.Document querySpec)
Creates and returns a new SdaiQuery. |
SdaiQuery |
newQuery(org.w3c.dom.Element el)
Creates and returns a new SdaiQuery |
static SdaiSession |
openSession()
Commences a new SdaiSession .
|
static void |
println(java.lang.String message)
Prints a message to the static log Writer accessable for any SdaiSession .
|
void |
printlnSession(java.lang.String message)
Prints a message to the log Writer accessable only for the current Object of SdaiSession .
|
int |
query(java.lang.String where,
EEntity entity,
AEntity result)
This method is not implemented in current JSDAI version. |
void |
redoGroup(int groupCount)
Performs redo operation for a specified number of groups. |
void |
redoGroup(int groupCount,
java.lang.Object listenerArgument)
Performs redo operation for a specified number of groups. |
A_string |
remoteRepositories(java.lang.String location)
Finds a list of repositories on remote server. |
void |
removeLoggingListener(SdaiListener listener)
Removes SdaiListener extending java.util.EventListener
from the special aggregate of SDAI listeners receiving SDAI logging events. |
static void |
setLogWriter(java.io.PrintWriter out)
Sets the static logging/tracing PrintWriter that can be used during
any SdaiSession . |
void |
setLogWriterSession(java.io.PrintWriter out)
Sets the logging/tracing PrintWriter that can be used during
the current Object of SdaiSession . |
void |
setSdaiContext(SdaiContext context)
Sets the default context of this session. |
static void |
setSessionProperties(java.util.Properties properties)
Supplies SdaiSession properties. |
SdaiTransaction |
startTransactionReadOnlyAccess()
Specifies the beginning of a sequence of read-only operations in this SdaiSession . |
SdaiTransaction |
startTransactionReadWriteAccess()
Specifies the beginning of a sequence of read-write operations in this SdaiSession . |
void |
storeApplicationProperties(java.lang.Class identification,
java.util.Properties properties,
java.lang.String header)
Writes the property list of the submitted Properties table
to the properties file created for an application specified by a parameter
of type Class . |
void |
switchToCommit(jsdai.query.SerializableRef commitRef)
Switches remote repositories to specified commit point in history or to current state if null is passed as the parameter. |
boolean |
testActiveTransaction()
Checks if the transaction is currently available in the session. |
boolean |
testDataDictionary()
Checks whether this SDAI implementation supports data dictionary. |
boolean |
testDataMapping()
Checks whether this SDAI implementation supports operations with mapping data. |
java.lang.String |
toString()
Returns a description of this session as a String .
|
void |
undoGroup(int groupCount)
Performs undo operation for a specified number of groups. |
void |
undoGroup(int groupCount,
java.lang.Object listenerArgument)
Performs undo operation for a specified number of groups. |
void |
unlinkDataBaseBridge()
Removal of all remote repositories from the aggregate "known_servers". |
void |
unlockAll()
Removes all exclusive locks placed by this SdaiSession on
remote SdaiRepositories , SchemaInstances , and
SdaiModels .
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String asterisk
public static final int TRUE
public static final int FALSE
public static final int UNKNOWN
public static final java.lang.String DICTIONARY_NAME_SUFIX
public static final java.lang.String MAPPING_NAME_SUFIX
public static final java.lang.String DICTIONARY_SCHEMA_INSTANCE_NAME
SchemaInstance
"SDAI_DICTIONARY_SCHEMA_INSTANCE"
holding all dictionary SdaiModel
s.
public static final java.lang.String MAPPING_SCHEMA_INSTANCE_NAME
SchemaInstance
"SDAI_MAPPING_SCHEMA_INSTANCE"
holding all mapping and related dictionary SdaiModel
s
public static final java.lang.String DICT_MODEL_NAME
public static final java.lang.String MAPP_MODEL_NAME
public static final java.lang.String COMP_MODEL_NAME
public static final java.lang.String DICT_SCHEMA_NAME
public static final java.lang.String MAPP_SCHEMA_NAME
Method Detail |
public AEntity getClipboard()
public SdaiContext getSdaiContext()
SdaiContext
parameter.
public void setSdaiContext(SdaiContext context)
SdaiContext
parameter.
context
- The new default contextpublic static SdaiSession getSession()
SdaiSession
object can exist at the same time,
and this object can be accessed by this method.
SdaiSession
or null if no session is open.public Implementation getSdaiImplementation() throws SdaiException
Implementation
containing
the general characteristics of JSDAI.
The SdaiSession
has only one associated Implementation
.
Implementation
.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- VA_NSET, value not set.public ASdaiRepository getKnownServers() throws SdaiException
SdaiSession
. This aggregate is called known servers.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- SY_ERR, underlying system error.getActiveServers()
public ASdaiRepository getActiveServers() throws SdaiException
SdaiSession
. This aggregate is called active servers.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- SY_ERR, underlying system error.getKnownServers()
public boolean testDataDictionary() throws SdaiException
true
.
SdaiException
- SS_NOPN, session is not open.public boolean testDataMapping() throws SdaiException
true
.
SdaiException
- SS_NOPN, session is not open.public SchemaInstance getDataDictionary() throws SdaiException
SchemaInstance
with which all data dictionary
SdaiModel
s are associated.
This schema instance has name "SDAI_DICTIONARY_SCHEMA_INSTANCE" and
belongs to the special repository with the name "SystemRepository".
In JSDAI 2.0 and later versions this schema instance is always available.
SchemaInstance
for the data dictionary.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- VA_NSET, value not set.getDataMapping()
public SchemaInstance getDataMapping() throws SdaiException
SchemaInstance
with which all SdaiModel
s
with dictionary and mapping data are associated.
This schema instance has name "SDAI_MAPPING_SCHEMA_INSTANCE" and
belongs to the special repository with the name "SystemRepository".
In JSDAI 2.0 and later versions this schema instance is always available.
SchemaInstance
for both dictionary and mapping data.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- VA_NSET, value not set.getDataDictionary()
public ASdaiModel getActiveModels() throws SdaiException
SdaiModel
s currently being accessed in the session.
Such SdaiModel
s must belong to opened repositories
and must have either read-only or read-write access mode started.
SdaiModel
s.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- SY_ERR, underlying system error.public boolean testActiveTransaction() throws SdaiException
SdaiModel
s and
SchemaInstance
s contained in the repositories of this session.
true
if an SdaiTransaction
is available,
false
otherwise.
SdaiException
- SS_NOPN, session is not open.getActiveTransaction()
public SdaiTransaction getActiveTransaction() throws SdaiException
SdaiSession
there is either no or one
SdaiTransaction
which can be accessed by this method.
If transaction is not available, then SdaiException
VA_NSET is thrown.
SdaiTransaction
of this session.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- VA_NSET, value not set.testActiveTransaction()
public boolean isModified() throws SdaiException
true
if some repository of this session is modified, and
false
otherwise.
SdaiException
- SS_NOPN, session is not open.public SdaiRepository getSystemRepository() throws SdaiException
openSession
.
However, its contents (SdaiModel
s and
SchemaInstance
s) are read-only; an application is not
allowed to modify them. The SdaiModel
s in "SystemRepository"
contain either meta-descriptions of the supported
EXPRESS schemas or mapping information between such schemas.
The "SystemRepository" contains 2 SchemaInstance
s:
with one all dictionary SdaiModel
s (data_dictionary)
and with another all dictionary and mapping SdaiModel
s (data_mapping)
are associated.
SdaiException
- SS_NOPN, session is not open.public java.lang.String toString()
String
.
It may be either "SdaiSession status: closed" or "SdaiSession status: open".
public static void setLogWriter(java.io.PrintWriter out)
PrintWriter
that can be used during
any SdaiSession
. To disable it, this method should be
applied with null passed to method's parameter.
out
- the new logging/tracing PrintWriter
.getLogWriter()
,
println(java.lang.String)
public void setLogWriterSession(java.io.PrintWriter out)
PrintWriter
that can be used during
the current Object
of SdaiSession
. To disable it, this method should be
applied with null passed to method's parameter.
out
- the new logging/tracing PrintWriter
.getLogWriter()
,
println(java.lang.String)
public static java.io.PrintWriter getLogWriter()
PrintWriter
that can be used during
any SdaiSession
.
PrintWriter
or null if it is disabled.setLogWriter(java.io.PrintWriter)
,
println(java.lang.String)
public java.io.PrintWriter getLogWriterSession()
PrintWriter
that is associated with
the current Object
of SdaiSession
.
PrintWriter
or null if it is disabled.setLogWriter(java.io.PrintWriter)
,
println(java.lang.String)
public static void println(java.lang.String message) throws SdaiException
SdaiSession
.
If null value is passed to the method's parameter,
then SdaiException
VA_NSET is thrown.
message
- a log or tracing message.
SdaiException
- VA_NSET, value not set.getLogWriter()
,
setLogWriter(java.io.PrintWriter)
public void printlnSession(java.lang.String message) throws SdaiException
Object
of SdaiSession
.
If null value is passed to the method's parameter,
then SdaiException
VA_NSET is thrown.
message
- a log or tracing message.
SdaiException
- VA_NSET, value not set.getLogWriter()
,
setLogWriter(java.io.PrintWriter)
public static java.lang.String getRepositoriesPath() throws SdaiException
knownServers
defined in the session.
SdaiException
- SY_ERR, underlying system error.public static java.lang.String getSerialNumber()
public static java.lang.String getLicensee()
public static void setSessionProperties(java.util.Properties properties) throws SdaiException
SdaiSession
properties. This is an alternative
way to providing properties through jsdai.properties
file.
This method should be called before the first SdaiSession
is opened. If non null properties value is provided then
jsdai.properties
file is not loaded on session open.
This method is an extension of JSDAI, which is not a part of the standard.
properties
- session properties. Refer to jsdai.properties
for used properties. At least one property with the name
repositories
has to be available, which
specifies the directory where SdaiRepositories
are stored. This parameter can be null, which switched
to default behavior of loading jsdai.properties
file.
SdaiException
- SS_OPN is thrown in session was already opened.public static SdaiSession openSession() throws SdaiException
SdaiSession
.
This is the first operation before any other SDAI activity can be started.
More than one SdaiSession
can be active at the same time.
However only the first opened SdaiSession
has the access to
local SdaiRepositories
in the set knownServers
.
JSDAI 2.2 and later versions allow within the same run of an application
to re-open an SdaiSession
as many times as it is needed.
This method initiates the set knownServers
by putting into it
"SystemRepository" and all repositories located in the special
repositories-directory in the local file system.
After execution of the method, "SystemRepository" always contains
the following SdaiModel
s:
SchemaInstance
s:
SdaiModel
s into
"SystemRepository" can be managed.
The needed models are specified by the property "jsdai.SXxx=some_string" in the
configuration file jsdai.properties; here "xxx" is the package name in JSDAI library
for which the corresponding data dictionary model will be created, and "some_string"
is a two-level list of the names of EXPRESS schemas represented by the package "xxx".
The names are written in upper case letters, exactly as in the instance of entity
"file_schema" in the header of a Part-21 file. The list looks like
AAA;BBB,CCC,DDD;EEE;FFF,GGG;
Thus, for each JSDAI package specified using "jsdai.SXxx" property a dictionary
model in "SystemRepository" is created. However, an explicit specification of
dictionary models relevant for an application through jsdai.properties file
is not mandatory. When needed, such models are created automatically.
For example, when applying importClearTextEncoding method the exchange structure
being imported may contain the name of the EXPRESS schema (in the header entity
"file_schema", see "ISO 10303-21::9.2.3") for which no model in "SystemRepository"
currently exists. In this case the needed model is created during execution of
this method.
Examples of property statements: jsdai.SAp203val=CCDCLGWIS;CONFIG_CONTROL_DESIGN,GEOMETRIC_VALIDATION_PROPERTIES_MIM; jsdai.SAutomotive_design=AUTOMOTIVE_DESIGN;AUTOMOTIVE_DESIGN_CC1;AUTOMOTIVE_DESIGN_CC2; jsdai.STopology_schema=anything
Examples of FILE_SCHEMA instances: FILE_SCHEMA=(('CCDCLGWIS')); FILE_SCHEMA=(('CONFIG_CONTROL_DESIGN {099}','GEOMETRIC_VALIDATION_PROPERTIES_MIM{111}")); FILE_SCHEMA=(('AUTOMOTIVE_DESIGN_CC1 {1 2 10303 214-1 1 5 3}')); FILE_SCHEMA=(('TOPOLOGY_SCHEMA'));
Only two models within "SystemRepository" are automatically made accessible: "SDAI_DICTIONARY_SCHEMA_DICTIONARY_DATA" and "SDAI_MAPPING_SCHEMA_DICTIONARY_DATA". To start (read-only) access of any other data dictionary model, a transaction has to be started.
"SystemRepository" is opened automatically and only close session operation can close that repository.
Before opening SdaiSession
JSDAI configuration information is searched.
Configuration can be provided by invoking setSessionProperties
method
prior to first call to openSession
or otherwise the property file
jsdai.properties
is searched in the following order:
jsdai.properties
it is used as a
directory where file jsdai.properties
is searched. If system
property is not given or file jsdai.properties
does not exist in this
directory then the next step is considereduser.dir
) is searched for file jsdai.properties
.
If file jsdai.properties
does not exist in this directory then
the next step is considereduser.home
)
is searched for file jsdai.properties
. If file
jsdai.properties
does not exist in this directory then the next
step is consideredjava.ext.dirs
) is searched for file jsdai.properties
.
If jsdai.properties
does not exist in this path then
SdaiException.SY_ERR
is thrown.
SdaiSession
opened.
SdaiException
- SS_OPN, session open.
SdaiException
- SS_NAVL, session not available.
SdaiException
- SY_ERR, underlying system error.closeSession()
,
"ISO 10303-22::10.3.1 OpenSession",
setSessionProperties(java.util.Properties)
public void closeSession() throws SdaiException
SdaiSession
.
After execution of this method all JSDAI objects become not available.
Particularly, all open repositories are closed.
This method also deletes all temporary repositories.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- SY_ERR, underlying system error.openSession()
,
"ISO 10303-22::10.4.4 Close session"public SdaiTransaction startTransactionReadWriteAccess() throws SdaiException
SdaiSession
.
SdaiTransaction
.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- TR_EXS, transaction exists.startTransactionReadOnlyAccess()
,
SdaiTransaction.endTransactionAccessCommit()
,
SdaiTransaction.endTransactionAccessAbort()
,
"ISO 10303-22::10.4.6 Start transaction read-write access,
7.4.5 sdai_transaction, and 13.1.1 Levels of transaction"public SdaiTransaction startTransactionReadOnlyAccess() throws SdaiException
SdaiSession
.
SdaiTransaction
.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- TR_EXS, transaction exists.startTransactionReadWriteAccess()
,
SdaiTransaction.endTransactionAccessCommit()
,
SdaiTransaction.endTransactionAccessAbort()
,
"ISO 10303-22::10.4.7 Start transaction read-only access,
7.4.5 sdai_transaction, and 13.1.1 Levels of transaction"public jsdai.dictionary.EEntity_definition getComplexEntityDefinition(jsdai.dictionary.EEntity_definition[] types, jsdai.dictionary.ESchema_definition schema) throws SdaiException
The aggregate passed to the first method's parameter shall include all leaf entity data types required to uniquely identify the complex entity and may optionally include some supertypes of those leaf entity data types.
This method is not implemented in JSDAI 2.0.
SdaiException
FN_NAVL will be thrown if this method is invoked.
types
- an aggregate containing leaf entity data types and
possibly some of their supertypes.schema
- the EXPRESS schema where entity data types are defined or declared.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- ED_NDEF, entity definition not defined.
SdaiException
- FN_NAVL, function not available.getComplexEntityClass(java.lang.Class[], java.lang.Class)
,
"ISO 10303-22::10.9.1 Get complex entity definition"public java.lang.Class getComplexEntityClass(java.lang.Class[] types, java.lang.Class schema) throws SdaiException
The aggregate passed to the first method's parameter shall include entity interfaces for all leaf entity data types required to uniquely identify the complex entity and may optionally include entity interfaces for some supertypes of those leaf entity data types.
This method is not implemented in JSDAI 2.0.
SdaiException
FN_NAVL will be thrown if this method is invoked.
types
- an aggregate containing entity interfaces for leaf entity data types
and possibly some of their supertypes.schema
- the EXPRESS schema where entity data types are defined or declared.
SdaiException
- FN_NAVL, function not available.getComplexEntityDefinition(jsdai.dictionary.EEntity_definition[], jsdai.dictionary.ESchema_definition)
,
"ISO 10303-22::10.9.1 Get complex entity definition"public jsdai.dictionary.ESchema_definition findSchemaDefinition(java.lang.String name) throws SdaiException
null
is returned.
name
- name of the schema.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- SY_ERR, underlying system error.SchemaInstance.getDefiningSchema()
public SdaiRepository linkRepository(java.lang.String name, java.lang.String location) throws SdaiException
Links an already existing SdaiRepository
outside
of this SdaiSession
(external) to knownServers
(but not to activeServers
what means that the repository
returned is closed).
Such a repository exists in the special repositories-directory or
in the specified directory as SDAI file
or it is a remote repository on a JSDAI-Server.
This method also can be used to promote a degenerated repository
(see class SdaiRepository
) to the normal one.
If method is applied by passing to its parameters the name and, possibly,
the location of some repository which already exists in the current
session, then it simply finds this repository in knownServers
and returns it.
If null value or empty string is passed to the method's first
parameter for the local repository, then SdaiException
VA_NSET is thrown.
If null value or empty string is passed to the method's first
parameter for repository stored in SDAI file, then repository name is derived from location.
If repository with the specified or derived name already exists and name parameter
was not null, then repository with modified name (repository name plus sequence number)
is linked. If name parameter was null, then SdaiException
LC_NVLD is thrown.
Remote location string format is as follows:
//username:password@hostname:port or //username:password
Here the port number is optional.
This method is an extension of JSDAI, which is not a part of the standard.
Example:
SdaiSession s = ...;
SdaiRepository rep;
rep = s.linkRepository("MyRepo0", null);
rep = s.linkRepository("MyRepo1", "c:\\myrepos\\MyRepo.sdai");
rep = s.linkRepository("", "c:\\MyRepo2.sdai");
rep = s.linkRepository("MyRepo2", "//guest:passwd@192.123.22.11:1050");
rep = s.linkRepository("MyRepo3", "//username:password@server.mydomain.com");
rep = s.linkRepository("//testrep.server.lksoft.de", "//username:password@"); ?
rep = s.linkRepository("//server.lksoft.de/MyRepo5", "//username:password@"); ?
rep = s.linkRepository("//username:password@server.lksoft.de/MyRepo5", null);
rep = s.linkRepository("//username:password@testrep.server.lksoft.de", null);
name
- the name of the external repository to be linked.location
- a place where to find the external repository
and, if needed, an access information like user-name and password.
SdaiRepository
with the given name at the given location,
either local or remote.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- TR_NEXS, transaction does not exist.
SdaiException
- RP_NEXS, repository does not exist.
SdaiException
- RP_DUP, repository duplicate.
SdaiException
- LC_NVLD, location is invalid.
SdaiException
- VA_NSET, value not set.SdaiRepository.unlinkRepository()
public SdaiRepository createRepository(java.lang.String repository_name, java.lang.Object location) throws SdaiException
Creates a new repository and adds it to knownServers
(but not
to activeServers
what means that the repository returned
is closed).
Such a repository is created either in the special repositories-directory
or in the specified directory as SDAI file
or as a remote repository on a JSDAI-Server.
SdaiException
VA_NSET. If the value for this parameter is
an empty string "", then JSDAI creates a temporary repository with some
default name. Each temporary repository is automatically deleted
during execution of closeSession
or
openSession
methods. The latter is possible if
the last close session operation has ended abnormally or an application
did not perform this operation.
The value passed to the first parameter, provided nonempty, must obey
the general rules imposed on the construction of valid repository names (see
class SdaiRepository
). If these rules are violated, then
SdaiException
VA_NVLD is thrown.This method is an extension of JSDAI, which is not a part of the standard.
Example:
SdaiSession s = ...;
SdaiRepository repo;
// create local repositories
repo = s.createRepository("MyRepo1", null);
repo = s.createRepository("", null);
// create repositories stored in SDAI files
repo = s.createRepository("MyRepo2", "c:\\myrepos\\MyRepo.sdai");
repo = s.createRepository("", "c:\\MyRepo2.sdai");
// create remote repositories on JSDAI-Server
repo = s.createRepository("MyRepo3", "//guest:passwd@192.123.22.11:1050");
repo = s.createRepository("MyRepo4", "//username:password@server.mydomain.com");
repo = s.createRepository("//testrep.server.lksoft.de", "//username:password@");
repo = s.createRepository("//server.lksoft.de/MyRepo6", "//username:password@");
repository_name
- the name of the newly created repository.location
- a location where to place the new repository.
SdaiRepository
with the given name at the given location,
either local or remote.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- RP_DUP, repository duplicate.
SdaiException
- LC_NVLD, location is invalid.
SdaiException
- VA_NSET, value not set.
SdaiException
- VA_NVLD, value invalid.
SdaiException
- SY_ERR, underlying system error.convertRepoName(java.lang.String)
public SdaiRepository importClearTextEncoding(java.lang.String name, java.lang.Object source_location, java.lang.Object destination_location) throws SdaiException
knownServers
and activeServers
, thus it is open after execution of this method.
There are the following possibilities to choose the name of the repository:
SdaiRepository
).
If these rules are violated, then
SdaiException
VA_NVLD is thrown.closeSession
or
openSession
methods. The latter is possible if
the last close session operation has ended abnormally or an application
did not perform this operation.file_name
in the header
of an exchange structure from which the encoding is imported. The string
extracted from this entity, if needed, is converted to a string allowed
to be a valid name of the repository (see class SdaiRepository
).
All characters before the first letter are deleted, and all illegal characters
are replaced by underscores. If the resulting string is empty, then
some default string as a repository name is used.Before creating a new repository this method tries to find a degenerated repository
with the same name (see class SdaiRepository
) and, if an attempt is
successfull, promotes it to the normal one.
For each data section in the exchange structure a separate SdaiModel
in the repository is created. If the exchange structure contains only one data section,
then the corresponding model gets name "default". Otherwise, the name of each
model is taken from the parameters of the data section from which this model
is constructed. Upon termination of the method each model contains all entity
instances whose encoding is found in the corresponding data section.
This method automatically creates all needed data dictionary models, if any. Read-only access to these models is automatically started.
It should be noted that the method imports exchange structures in which
all or some names of entities are presented in a short form.
For example, any of the following cases for entity cartesian_point
is apt:
When importing part21 file it may happen that some complex instance in it is of entity type that is not defined or declared in the underlying schema. In this case method itself tries to replace this instance with an instance of known entity type that most fits to the missing type. To attributes of the substitute, which are common to those of the missing entity type, values taken from the part21 file are assigned. Attributes (if any) of the created instance, which are not defined in the missing entity type, are left unset. A user about this replacement operation is informed by the warning message issued.
This method is an extension of JSDAI, which is not a part of the standard.
Example:
SdaiSession s = ...;
SdaiRepository repo;
repo = s.importClearTextEncoding(null,"myfile1.stp", null);
repo = s.importClearTextEncoding("","myfile2.stp", null);
repo = s.importClearTextEncoding("MyRepo3","myfile3.stp", null);
repo = s.importClearTextEncoding("MyRepo4","myfile4.stp", "c:\\myrepos");
// Stored in SDAI files
repo = s.createRepository(null, "myfile5.pf", "MyRepo.sdai");
repo = s.createRepository("MyRepo6", "myfile6.pf", "c:\\myrepos\\MyRepo.sdai");
// On remote server side:
repo = s.importClearTextEncoding("MyRepo7", "myfile7.pf", "//guest:passwd@192.123.22.11:1050");
repo = s.importClearTextEncoding("MyRepo8", "myfile8.pf", "//user:secret@server.mydomain.com");
repo = s.importClearTextEncoding("//MyRepo9.server.mydomain.com", "myfile9.pf", "//username:password@");
repo = s.importClearTextEncoding("//server.mydomain.com/MyRepo10", "myfile10.pf", "//username:password@");
During import of an exchange structure (a part21 file) some checking and validation of the data contained in it is performed. This activity can be roughly classified as follows:
name
- the name of the repository to which the data should be imported.source_location
- the location of the exchange structure, e.g. "c:\a_path\the_file.stp".destination_location
- the location where to place the new repository.
SdaiRepository
with the data imported from the exchange structure.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- RP_DUP, repository duplicate.
SdaiException
- TR_NEXS, transaction does not exist.
SdaiException
- TR_NRW, transaction not read-write.
SdaiException
- MO_DUP, SDAI-model duplicate.
SdaiException
- VA_NVLD, value invalid.
SdaiException
- SY_ERR, underlying system error.convertRepoName(java.lang.String)
,
"ISO 10303-21: Implementation methods: Clear text encoding of the exchange structure",
"Technical corrigendum 1 to ISO 10303-21",
"Ammendment to ISO 10303-21"public ASchemaInstance importClearTextEncoding(java.lang.String sourceLocation, SdaiRepository targetRepo) throws SdaiException
SdaiModel
s and
SchemaInstance
s are simply added to the existing ones.
The new schema instances constitute an aggregate that is returned by the method.
In the case when a data section in the exchange structure being imported has the name
which is already used by a model in the repository, the name of the new model
corresponding to this data section is constructed by appending to it the letter "x",
for example, data section "polytope" becomes a SdaiModel
with
the name "polytopex". An analogous operation is applied
to the schema instances found in the exchange structure file.
Other functionality of the method is the same as of its main variant
importClearTextEncoding
.
sourceLocation
- the location of the exchange structure, e.g. "c:\a_path\the_file.stp".targetRepo
- the repository where to import the data from the exchange structure.
ASchemaInstance
with the schema instances created or imported
from the exchange structure.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- TR_NEXS, transaction does not exist.
SdaiException
- TR_NRW, transaction not read-write.
SdaiException
- SY_ERR, underlying system error.importClearTextEncoding(String, Object, Object)
public void importClearTextEncoding(java.io.InputStream sourceLocation, SdaiRepository destinationLocation) throws SdaiException
InputStream
(the first parameter of the method).
Other functionality of the method is the same as of its main variant
importClearTextEncoding
.
sourceLocation
- the location of the exchange structure.destinationLocation
- the repository where to import the data from the exchange structure.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- TR_NEXS, transaction does not exist.
SdaiException
- TR_NRW, transaction not read-write.
SdaiException
- MO_DUP, SDAI-model duplicate.
SdaiException
- SY_ERR, underlying system error.importClearTextEncoding(String, Object, Object)
public java.lang.String convertRepoName(java.lang.String name) throws SdaiException
String
to a string that may be
used as a repository name.
All characters before the first letter are deleted, and all illegal characters
are replaced by underscores.
This resulting string obeys the general rules imposed on the construction of valid
repository names (see class SdaiRepository
).
This method is an extension of JSDAI, which is not a part of the standard.
name
- the String
asked to convert to valid repository name.
String
converted to valid repository name.
SdaiException
createRepository(java.lang.String, java.lang.Object)
,
importClearTextEncoding(java.lang.String, java.lang.Object, java.lang.Object)
public static jsdai.dictionary.EData_type findDataType(java.lang.String name, java.lang.Class schema)
public A_string remoteRepositories(java.lang.String location) throws SdaiException
Returns an A_string of the given name at the given location on remote server.
Example:
rep = session.remoteRepositories("//guest:passwd@server.lksoft.de")
rep = session.remoteRepositories("//guest:passwd@192.123.22.11:1050")
rep = session.remoteRepositories("//username:password@server.mydomain.com")
location
- where to find the external repository
and if needed access information like user-name and password.
Remote location format: //username:password@hostname:port
Port number is optional
SdaiException
- SS_NOPN, the session is closed
SdaiException
- The location is invalidpublic jsdai.mapping.ASchema_mapping getMappings(jsdai.dictionary.ESchema_definition schema) throws SdaiException
schema
- The AIM schema to return schema_mappings for
ASchema_mapping
containing schema_mappings
SdaiException
- if an error occurs in underlying JSDAI operationspublic java.util.Properties loadApplicationProperties(java.lang.Class identification) throws SdaiException
Properties
table for an application specified
by a parameter of type Class
.
If the required file containing a list of application properties does not exist,
then an empty Properties
table is returned.jsdai.lang
are reserved by JSDAI to provide
special JSDAI properties. The following special classes as a parameter
can be specified:
jsdai.lang.SdaiSession
(since JSDAI 4.0.1)linkDataBaseBridge
) the empty Properties
is returned.
Otherwise properties include at minimum properties named
group-<name of the group>
for each group the JSDAI-DB user which
was specified invoking method linkDataBaseBridge
belongs. The values of
above mentioned properties correspond to Group Properties entered using
Web Administration Tool.
This method is an extension of JSDAI, which is not a part of the standard.
identification
- the class specifying an application.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- SY_ERR, underlying system error.storeApplicationProperties(java.lang.Class, java.util.Properties, java.lang.String)
public void storeApplicationProperties(java.lang.Class identification, java.util.Properties properties, java.lang.String header) throws SdaiException
Properties
table
to the properties file created for an application specified by a parameter
of type Class
.jsdai.lang
are reserved by JSDAI to store
special JSDAI properties.
This method is an extension of JSDAI, which is not a part of the standard.
identification
- the class specifying an application.properties
- a table containing application properties.header
- a description of the property list.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- SY_ERR, underlying system error.loadApplicationProperties(java.lang.Class)
public void enableLogging(boolean enable) throws SdaiException
SdaiModel
, SdaiRepository
,
SchemaInstance
) are not logged.
The flow of records is divided into segments called groups.
To close a group, method endUndoGroup()
shall be used.
The log file is automatically emptied during execution of
commit
and abort
operations.
Recording is stopped by submitting value false
to
the method. In this case the data are released, and undo/redo operations become
disabled.
enable
- true
to start recording changes to the instances and
false
to stop recording.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- SY_ERR, an underlying system error occurred.public void endUndoGroup() throws SdaiException
SdaiException
- SS_NOPN, session is not open.
SdaiException
- SY_ERR, an underlying system error occurred.endUndoGroup(Object listenerArgument)
public void endUndoGroup(java.lang.Object listenerArgument) throws SdaiException
SdaiListener
interface.
listenerArgument
- an information provided to SDAI listeners receiving SDAI logging event.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- SY_ERR, an underlying system error occurred.endUndoGroup()
public boolean isUndoGroupAvailable() throws SdaiException
enableLogging(boolean)
was applied with parameter set at value true
;
true
if undo operation is available; false
otherwise.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- SY_ERR, an underlying system error occurred.public void undoGroup(int groupCount) throws SdaiException
groupCount
- the number of groups (taken from the end of the list)
for which the undo operation is asked to be performed.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- SY_ERR, an underlying system error occurred.undoGroup(int groupCount, Object listenerArgument)
public void undoGroup(int groupCount, java.lang.Object listenerArgument) throws SdaiException
SdaiListener
interface.
groupCount
- the number of groups (taken from the end of the list)
for which the undo operation is asked to be performed.listenerArgument
- an information provided to SDAI listeners receiving SDAI logging event.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- SY_ERR, an underlying system error occurred.undoGroup(int groupCount)
public boolean isRedoGroupAvailable() throws SdaiException
true
if redo operation is available; false
otherwise.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- SY_ERR, an underlying system error occurred.public void redoGroup(int groupCount) throws SdaiException
groupCount
- the number of groups (taken from the beginning of the list)
for which the redo operation is asked to be performed.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- SY_ERR, an underlying system error occurred.redoGroup(int groupCount, Object listenerArgument)
public void redoGroup(int groupCount, java.lang.Object listenerArgument) throws SdaiException
SdaiListener
interface.
groupCount
- the number of groups (taken from the beginning of the list)
for which the redo operation is asked to be performed.listenerArgument
- an information provided to SDAI listeners receiving SDAI logging event.
SdaiException
- SS_NOPN, session is not open.
SdaiException
- SY_ERR, an underlying system error occurred.redoGroup(int groupCount)
public void addLoggingListener(SdaiListener listener) throws SdaiException
SdaiListener
extending java.util.EventListener
to a special aggregate of SDAI listeners receiving SDAI logging events.
listener
- a SdaiListener
to be added.
SdaiException
removeLoggingListener(jsdai.lang.SdaiListener)
public void removeLoggingListener(SdaiListener listener) throws SdaiException
SdaiListener
extending java.util.EventListener
from the special aggregate of SDAI listeners receiving SDAI logging events.
listener
- SdaiListener
to be removed.
SdaiException
addLoggingListener(jsdai.lang.SdaiListener)
public void linkDataBaseBridge(java.lang.String bridgeURL, java.lang.String user, char[] password) throws SdaiException
known_servers
, which is accessible through
getKnownServers
method.
This method is an extension of JSDAI, which is not a part of the standard.
Example:
SdaiSession s = ...; s.linkDataBaseBridge("//my.bridgeUrl.com", "user", "password".toCharArray()); ... ASdaiRepository agRepositories = s.getKnownServers();
bridgeURL
- a location where SQL Bridge is running prefixed with "//".user
- a user of SQL Bridge to use.password
- password stored as a character array.
SdaiException
- LC_NVLD, the location is invalid.
SdaiException
- SY_ERR, underlying system error.getKnownServers()
,
JSDAI DB Extensionpublic void unlinkDataBaseBridge() throws SdaiException
SdaiException
public java.lang.String getDataBaseBridge() throws SdaiException
SdaiException
public void switchToCommit(jsdai.query.SerializableRef commitRef) throws SdaiException
jsdai:database:
by querying entity commits
which corresponds to
commits table. Entity type commits
is defined by
this EXPRESS code:ENTITY commits; user_name : OPTIONAL STRING; time_stamp : STRING; app_comment : OPTIONAL STRING; END_ENTITY;Attribute
time_stamp
conforms to this
SimpleDateFormat
string:yyyy-MM-dd'T'HH:mm:ss.S
time_stamp
formats are allowed:yyyy-MM-dd'T'HH:mm:ss
yyyy-MM-dd
This method is an extension of JSDAI, which is not a part of the standard.
commitRef
- commit reference obtained using remote SDAI query
or null which denotes current state
SdaiException
- if an error occurs during the operation
or in underlying JSDAI operationspublic void lock(ASdaiRepository repositories, ASchemaInstance schInstances, ASdaiModel models, int maxwait) throws SdaiException
SdaiRepositories
, SchemaInstances
,
and SdaiModels
in exclusive mode on JSDAI-DB.
JSDAI-DB can place shared or exclusive locks on remote
SdaiRepositories
, SchemaInstances
, and
SdaiModels
. JSDAI-DB locks objects in shared mode for certain
JSDAI operations. Shared mode locks can be placed on the same object by more
than one SdaiSession
, however exclusive lock can be placed by at
most one SdaiSession
on the same object. In addition the lock can
not be placed on an object if the lock of the opposite type already exists.
Exclusive locks are removed either by invoking method unlockAll
or
by ending remote session as a result of invoking unlinkRemoteRepositories
or closeSession
methods.
Shared locks are automatically placed by these operations on:
SdaiRepository
deleteRepository
,
createModel
, createSchemaInstance
, and methods
setting the header of SdaiRepository
, or during run of
delete
, and deleteSdaiModel
of contained
SchemaInstances
and SdaModels
respectively
on JSDAI-DB.SchemaInstance
addSdaiModel
, removeSdaiModel
,
rename
, delete
, and methods setting the header of
SchemaInstance
on JSDAI-DB.SdaiModel
startReadWriteAccess
or promoteSdaiModelToRW
till endReadWriteAccess
or reduceSdaiModelToRO
operations.
During run of renameSdaiModel
and deleteSdaiModel
on JSDAI-DB.This method is an extension of JSDAI, which is not a part of the standard.
repositories
- an aggregate of SdaiRepositories
to be locked
or null if none of repositories needs to be locked.schInstances
- an aggregate of SchemaInstances
to be locked
or null if none of schema instances needs to be locked.models
- an aggregate of SdaiModels
to be locked
or null if none of models needs to be locked.maxwait
- maximum time in seconds to retry getting lock. The value
of Integer.MAX_VALUE
means that locking attempts
should be retried indeterminately.
SdaiException
- SY_LOC, if requested lock can not be obtained
within specified maximum time period.
SdaiException
- if an error occurs during the operation
or in underlying JSDAI operationsunlockAll()
,
SdaiRepository.getLockingUser()
,
SchemaInstance.getLockingUser()
,
SdaiModel.getLockingUser()
public void unlockAll() throws SdaiException
SdaiSession
on
remote SdaiRepositories
, SchemaInstances
, and
SdaiModels
.
This method is an extension of JSDAI, which is not a part of the standard.
SdaiException
- if an error occurs during the operation
or in underlying JSDAI operationslock(jsdai.lang.ASdaiRepository, jsdai.lang.ASchemaInstance, jsdai.lang.ASdaiModel, int)
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 QuerySource
where
- a String
valueentity
- an EEntity
valueresult
- an AEntity
value
int
value
SdaiException
- FN_NAVL, function not available.public SdaiQuery newQuery(org.w3c.dom.Document querySpec) throws SdaiException
querySpec
- is a XML document, which defines SdaiQuery
SdaiQuery
SdaiException
- if an error occurs during the operation
or in underlying JSDAI operationspublic SdaiQuery newQuery(org.w3c.dom.Element el) throws SdaiException
el
- is a XML element, which defines SdaiQuery
SdaiQuery
SdaiException
- if an error occurs during the operation
or in underlying JSDAI operationspublic ASdaiModel getQuerySourceDomain() throws SdaiException
QuerySource
getQuerySourceDomain
in interface QuerySource
SdaiException
- if an error occurs during the operation
or in underlying JSDAI operationspublic AEntity getQuerySourceInstances() throws SdaiException
QuerySource
getQuerySourceInstances
in interface QuerySource
AEntity
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 operationspublic jsdai.query.SerializableRef getQuerySourceInstanceRef() throws SdaiException
getQuerySourceInstanceRef
in interface QuerySource
SdaiException
public jsdai.query.SerializableRef getQuerySourceDomainRef() throws SdaiException
getQuerySourceDomainRef
in interface QuerySource
SdaiException
public SdaiRepository getRepositoryByRef(jsdai.query.SerializableRef repositoryRef) throws SdaiException
SdaiRepository
using specified repository reference.
repositoryRef
- SerializableRef
used to refer to remote repository.
SdaiRepository
refered by specified repository reference.
SdaiException
- FN_NAVL, function not available.
SdaiException
- SY_ERR, underlying system error.SdaiRepository.getSdaiModelByRef(SerializableRef)
,
SdaiRepository.getSchemaInstanceByRef(SerializableRef)
,
SdaiRepository.getInstanceByRef(SerializableRef)
public static void convertMapping(MappingContext mappingContext) throws SdaiException
mappingContext
- the mapping context containing conversion related information
SdaiException
- if an underlying JSDAI error occursMappingContext
,
MappingPopulationCreator
,
JSDAI Mapping Extension
|
Copyright © LKSoftWare GmbH, 1999-2008 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |