public interface AoSessionOperations
Modifier and Type | Method and Description |
---|---|
void |
abortTransaction()
(3001)
Abort (rollback) a transaction.
|
void |
close()
(3002)
Close session to an ASAM ODS server.
|
void |
commitTransaction()
(3003)
Commit a transaction.
|
Blob |
createBlob()
(3024)
Create a new object with the Interface Blob on the server.
|
AoSession |
createCoSession()
(3025)
Create a co-session.
|
QueryEvaluator |
createQueryEvaluator()
(3023)
Create a QueryEvaluator object.
|
void |
flush()
(3014)
Make the pending changes of the current transaction permanent.
|
ApplElemAccess |
getApplElemAccess()
(3018)
Get the application element access object from the current session.
|
ApplicationStructure |
getApplicationStructure()
(3004)
Get the application model from the current session by returning an
object with the interface ApplicationStructure.
|
ApplicationStructureValue |
getApplicationStructureValue()
(3005)
Get the application model as values from the current session.
|
BaseStructure |
getBaseStructure()
(3006)
Get the ASAM ODS base model from the current session by returning an
object with the interface BaseStructure.
|
NameValueIterator |
getContext(java.lang.String varPattern)
(3007)
Get context variables from the session.
|
NameValue |
getContextByName(java.lang.String varName)
(3008)
Get a context variable by its name from the session.
|
java.lang.String |
getDescription()
(3020)
Get the description of the ASAM ODS session.
|
EnumerationAttributeStructure[] |
getEnumerationAttributes()
(3027)
Get a list of all attributes of all elements in the application
model which are of enumeration type.
|
EnumerationStructure[] |
getEnumerationStructure()
(3028)
Get all enumerations used in the application model.
|
int |
getId()
(3029)
Returns the Id of the session.
|
short |
getLockMode()
(3016)
Get the current lock mode.
|
java.lang.String |
getName()
(3021)
Get the name of the ASAM ODS session.
|
java.lang.String |
getType()
(3022)
Get the type of the ASAM ODS session.
|
InstanceElement |
getUser()
(3026)
Returns the instance element of the user logged in.
|
NameIterator |
listContext(java.lang.String varPattern)
(3009)
List the names of context variables from the session.
|
void |
removeContext(java.lang.String varPattern)
(3010)
Remove context variables from the session.
|
void |
setContext(NameValue contextVariable)
(3011)
Set/modify a known context variable or add a new context variable to
the session.
|
void |
setContextString(java.lang.String varName,
java.lang.String value)
(3012)
Set/modify a known context variable or add a new context variable to
the session.
|
void |
setCurrentInitialRights(InitialRight[] irlEntries,
boolean set)
(3015)
Every new created session instance will set its initial rights to
|
void |
setLockMode(short lockMode)
(3017)
Set the new lock mode.
|
void |
setPassword(java.lang.String username,
java.lang.String oldPassword,
java.lang.String newPassword)
(3019)
Change the password for user defined by
|
void |
startTransaction()
(3013)
Start a transaction on the physical storage system (e.g. database
system).
|
void abortTransaction() throws AoException
AoException
- with the following possible error codes:
AO_ACCESS_DENIED
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEvoid close() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid commitTransaction() throws AoException
AoException
- with the following possible error codes:
AO_ACCESS_DENIED
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEApplicationStructure getApplicationStructure() throws AoException
AoException
- with the following possible error codes:
AO_ACCESS_DENIED
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEApplicationStructureValue getApplicationStructureValue() throws AoException
AoException
- with the following possible error codes:
AO_ACCESS_DENIED
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEBaseStructure getBaseStructure() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVENameValueIterator getContext(java.lang.String varPattern) throws AoException
varPattern
- The name or the search pattern for the context
variable(s).AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_FOUND
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVENameValue getContextByName(java.lang.String varName) throws AoException
varName
- The name of the requested context variable.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_FOUND
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVENameIterator listContext(java.lang.String varPattern) throws AoException
varPattern
- The name or the search pattern for the context
variable(s).AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NOT_FOUND
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid removeContext(java.lang.String varPattern) throws AoException
varPattern
- The name or the search pattern for the context
variable(s) to be removed.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NOT_FOUND
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid setContext(NameValue contextVariable) throws AoException
contextVariable
- The context variable.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid setContextString(java.lang.String varName, java.lang.String value) throws AoException
varName
- The name of the context variable.value
- The value of the context variable.AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid startTransaction() throws AoException
AoException
- with the following possible error codes:
AO_ACCESS_DENIED
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_ALREADY_ACTIVEvoid flush() throws AoException
AoException
- with the following possible error codes:
AO_ACCESS_DENIED
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEvoid setCurrentInitialRights(InitialRight[] irlEntries, boolean set) throws AoException
irlEntries
- The current initial rights.set
- Set (1) or remove (0) the current initial rights. The
previous initial rights get lost. If the parameter set
is 0 (remove) the parameter irlEntries will be ignored.AoException
- with the following possible error codes:
AO_ACCESS_DENIED
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEshort getLockMode() throws AoException
AoException
- with the following possible error codes:
AO_ACCESS_DENIED
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid setLockMode(short lockMode) throws AoException
lockMode
- The new lock mode. The lock mode constants are
defined in the interface LockMode. The interface
definition language IDL does not allow to set the
values of enumerations thus the constant
definitions had to be done in an interface.AoException
- with the following possible error codes:
AO_ACCESS_DENIED
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVEApplElemAccess getApplElemAccess() throws AoException
AoException
- with the following possible error codes:
AO_ACCESS_DENIED
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEvoid setPassword(java.lang.String username, java.lang.String oldPassword, java.lang.String newPassword) throws AoException
username
- The name of the user for which the password will
be changed. If no username is given the password
of the current user will be changed. If the
username differs from the current user the current
user must be a super user.oldPassword
- The current password of the user. A normal user
must supply his current password. The super
user can change the password without supplying
the current password.newPassword
- The new password of the user.AoException
- with the following possible error codes:
AO_ACCESS_DENIED
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_TRANSACTION_NOT_ACTIVE
AO_WRONG_PASSWORDjava.lang.String getDescription() throws AoException
AoException
- with the following possible error codes:
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_CONNECTION_LOSTjava.lang.String getName() throws AoException
AoException
- with the following possible error codes:
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_CONNECTION_LOSTjava.lang.String getType() throws AoException
AoException
- with the following possible error codes:
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_CONNECTION_LOSTQueryEvaluator createQueryEvaluator() throws AoException
AoException
- with the following possible error codes:
AO_ACCESS_DENIED
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEBlob createBlob() throws AoException
AoException
- with the following possible error codes:
AO_BAD_PARAMETER
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEAoSession createCoSession() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_ACCESS_DENIEDInstanceElement getUser() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORYEnumerationAttributeStructure[] getEnumerationAttributes() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVE
AO_NOT_FOUNDEnumerationStructure[] getEnumerationStructure() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY
AO_SESSION_NOT_ACTIVEint getId() throws AoException
AoException
- with the following possible error codes:
AO_CONNECTION_LOST
AO_IMPLEMENTATION_PROBLEM
AO_NOT_IMPLEMENTED
AO_NO_MEMORY