|
Action Request System Java API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.remedy.arsys.api.SchemaFactory
The methods in the SchemaFactory class are used to
instantiate a new schema object or to get an existing schema from the server.
You then define the properties of the object,
and then you can perform different operations (e.g. set/create/delete) on the object
from the server side.
The following Java code snippet is an example of how to get
a schema object that is existing on the server:
SchemaFactory schemaFactory = SchemaFactory.getFactory( );
SchemaKey key = new SchemaKey( );
SchemaCriteria criteria = new SchemaCriteria( );
criteria.setRetrieveAll( true );
Schema schema = (Schema)schemaFactory.findByKey( context, key, criteria );
| Constructor Summary | |
protected |
SchemaFactory()
|
| Method Summary | |
static SchemaKey[] |
find(ARServerUser context,
SchemaListCriteria criteria)
Returns a list of schema names specified by SchemaListCriteria. |
static SchemaAliasInfo[] |
findAliases(ARServerUser context,
SchemaAliasesCriteria criteria)
Returns a list of schema names and corresponding aliases specified by SchemaListCriteria. |
static Schema |
findByKey(ARServerUser context,
SchemaKey key,
SchemaCriteria criteria)
Returns detailed information about the Schema object
specified by SchemaCriteria and SchemaKey. |
static Schema[] |
findObjects(ARServerUser context,
SchemaListCriteria listcriteria,
SchemaCriteria criteria)
Returns detailed information for a list of Schema objects
specified by SchemaListCriteria and SchemaCriteria. |
static SchemaFactory |
getFactory()
Returns factory method you want. |
java.lang.Object |
newInstance()
Creates new factory class for this object. |
boolean |
releaseInstance(java.lang.Object schema)
Releases schema factory object from memory. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
protected SchemaFactory()
| Method Detail |
public static SchemaFactory getFactory()
public java.lang.Object newInstance()
public boolean releaseInstance(java.lang.Object schema)
public static Schema findByKey(ARServerUser context,
SchemaKey key,
SchemaCriteria criteria)
throws ARException
Schema object
specified by SchemaCriteria and SchemaKey.context - ARServerUser object containing user name, password, server name and language informationcriteria - SchemaCriteria object containing the name of the schema and the information to retrieve
public static SchemaKey[] find(ARServerUser context,
SchemaListCriteria criteria)
throws ARException
SchemaListCriteria.context - ARServerUser object containing user name, password, server name and language informationcriteria - SchemaListCriteria object
public static SchemaAliasInfo[] findAliases(ARServerUser context,
SchemaAliasesCriteria criteria)
throws ARException
SchemaListCriteria.context - ARServerUser object containing user name, password, server name and language informationcriteria - SchemaListCriteria object
public static Schema[] findObjects(ARServerUser context,
SchemaListCriteria listcriteria,
SchemaCriteria criteria)
throws ARException
Schema objects
specified by SchemaListCriteria and SchemaCriteria.context - ARServerUser object containing user name, password, server name and language informationlistcriteria - SchemaListCriteria objectcriteria - SchemaCriteria object
|
Action Request System Java API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||