public class TSchemaDefinition3AccessorImpl extends TAbstractSchemaDefinitionAccessor implements TSchemaDefinition3Accessor
canBeCancelled, clientRequests, requestCounter, SGUAI
Constructor and Description |
---|
TSchemaDefinition3AccessorImpl(TStreamAccessor streamAccessor,
TResponseBuilder responseBuilder)
Special Constructor.
|
Modifier and Type | Method and Description |
---|---|
TResponse |
define(TXMLObject[] schemaObjects)
Defines multiple schemas stored in an array of dataObjects.
|
TResponse |
define(TXMLObject[] schemaObjects,
TDefineMode defineMode)
Defines multiple schemas stored in an array of dataObjects.
|
TResponse |
define(TXMLObject schemaObject,
boolean asTest)
Deprecated.
Please use the method define( TXMLObject schemaObject, TDefineMode defineMode ) instead.
|
TResponse |
define(TXMLObject schemaObject,
TDefineMode defineMode)
Defines a Tamino schema depending on the defineMode indicator into the current database.
|
java.util.Iterator<java.lang.String> |
getCollectionNames()
Gets the iterator for the list of all collection names stored within Tamino.
|
java.util.Iterator<java.lang.String> |
getDoctypeNames(java.lang.String collection,
java.lang.String schema)
Gets the iterator for the list of all doctype names that are given for the specified collection and
schema.
|
java.util.Iterator<java.lang.String> |
getRootElementNames(java.lang.String collection)
Gets the root element names within the specified collection.
|
TResponse |
getSchema(java.lang.String collection,
java.lang.String schema)
Gets the schema or multiple schemas for the given collection and schema and hands back the result
as a TResponse object.
|
java.util.Iterator<java.lang.String> |
getSchemaNames(java.lang.String collection)
Gets the iterator for the list of schema names given within the specified collection, or if no collection
is given all schema names currently stored under the connected database.
|
java.util.Iterator<java.lang.String> |
getUndefinedRootElementNames(java.lang.String collection)
Gets the root element names within the specified collection wich do not belong to any defined schema.
|
cancelRequests, define, getAccessFailureVerifier, getResponseBuilder, getStreamAccessor, setAccessLocation, setCanBeCancelled, setMaximumRequestDuration, undefine, undefine
getAccessCollection, getAccessLocation, getApplicationName, getCanBeCancelled, getDatabaseUri, getInvocation, getLocale, getLockMode, getLockwaitMode, getMaximumRequestDuration, invalidate, invoke, invoke, invoke, setApplicationName, setInvocation, setLockMode, setLockwaitMode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
define, undefine, undefine
cancelRequests, getAccessLocation, getApplicationName, getCanBeCancelled, getLockMode, getLockwaitMode, getMaximumRequestDuration, setAccessLocation, setApplicationName, setCanBeCancelled, setLockMode, setLockwaitMode, setMaximumRequestDuration
invalidate
public TSchemaDefinition3AccessorImpl(TStreamAccessor streamAccessor, TResponseBuilder responseBuilder)
streamAccessor,
- internally needed for core stream access.responseBuilder,
- needed for building high level response objects.public java.util.Iterator<java.lang.String> getCollectionNames() throws TQueryException
getCollectionNames
in interface TSchemaDefinition3Accessor
TQueryException
- if the query for the collection names fails.public java.util.Iterator<java.lang.String> getSchemaNames(java.lang.String collection) throws TQueryException
getSchemaNames
in interface TSchemaDefinition3Accessor
collection
- specifies the collection for which all schema names have to be delivered. If this is not
specified all schema names are requested.TQueryException
- if the query for the schema names fails.public java.util.Iterator<java.lang.String> getDoctypeNames(java.lang.String collection, java.lang.String schema) throws TQueryException
getDoctypeNames
in interface TSchemaDefinition3Accessor
collection
- specifies the collection for which all doctype names have to be delivered.schema
- specifies the schema for which all doctype names have to be delivered.TQueryException
- if the query for the schema names fails.public TResponse getSchema(java.lang.String collection, java.lang.String schema) throws TQueryException
getSchema
in interface TSchemaDefinition3Accessor
collection
- specifies the Tamino collection for which schemas are requested.schema
- specifies the schema name for which schemas are requested.TQueryException
- if the query for the given schema fails.public java.util.Iterator<java.lang.String> getRootElementNames(java.lang.String collection) throws TQueryException
getRootElementNames
in interface TSchemaDefinition3Accessor
collection
- the collection for which all root element names will be retrieved.TQueryException
- signals an error while attempting to query for the schemas.public java.util.Iterator<java.lang.String> getUndefinedRootElementNames(java.lang.String collection) throws TQueryException
getUndefinedRootElementNames
in interface TSchemaDefinition3Accessor
collection
- the collection for which all undefined root element names will be retrieved.TQueryException
- signals an error while attempting to query for the schemas.public TResponse define(TXMLObject schemaObject, boolean asTest) throws TDefineException
define
in interface TSchemaDefinition3Accessor
schemaObject
- denotes the schema instance which should be defined on Tamino.asTest
- indicates if define should only be tested. If set to true define is tested otherwise
the schema is physically defined.TDefineException
- if the define for the given schema instance fails. This is the case regardless
of the value for the asTest parameter.public TResponse define(TXMLObject schemaObject, TDefineMode defineMode) throws TDefineException
define
in interface TSchemaDefinition3Accessor
schemaObject
- denotes the schema instance which should be defined on Tamino.defineMode
- indicates if the input schema should only be tested and if it should be validated.TDefineException
- if the define for the given schema instance fails. This is the case regardless
of the value for the asTest parameter.public TResponse define(TXMLObject[] schemaObjects) throws TDefineException
define
in interface TSchemaDefinition3Accessor
array
- of dataObjects containing the schemas to be defined in Tamino.TDefineException
- signals an error while attempting the define operation.public TResponse define(TXMLObject[] schemaObjects, TDefineMode defineMode) throws TDefineException
define
in interface TSchemaDefinition3Accessor
array
- of dataObjects containing the schemas to be defined in Tamino.defineMode
- indicates if the input schema should only be tested and if it should be validated.TDefineException
- signals an error while attempting the define operation.Copyright (c) 2017 Software AG. All Rights Reserved.