|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.STR
public class STR
The STR library. Provides a low level interface the persistent storages of meta data about data sources, and transformations between them. It is intended that this class is only used by the reps package, and that all other APIs and applications access the STR via the reps package.
| Field Summary | |
|---|---|
static int |
DEBUG_GENERAL
|
static int |
DEBUG_GUI
Debug information from the gui package |
static int |
DEBUG_P2P
Debug information from the p2p package |
static int |
DEBUG_PATHWAY
Debug information about pathway manipulations in the reps package |
static int |
DEBUG_WRAPPER
Debug information from the wrappers package |
static java.lang.String |
STR_DataSourceName
|
| Constructor Summary | |
|---|---|
STR()
|
|
| Method Summary | |
|---|---|
static boolean |
atDebugLevel(int level)
Return true if the debug level set by setDebugLevel(int) is
at least at a certain level. |
static boolean |
atSectionDebugLevel(int section,
int level)
Tests whether the section of code has been set to at least the debug level specified. |
static int |
createAccessMethod(int sid,
java.lang.String url,
int pid,
java.lang.String dbDriver,
java.lang.String username,
java.lang.String password,
java.lang.String wrapper,
int awfFeatures)
Add the access methods of a schema to the STR. Precondition: The schema whose access methods are being added must already exist in the schemas table. |
static int |
createProtocol(java.lang.String name)
Add the given protocol to the STR. |
static int |
createSchema(java.lang.String name,
int type,
int subnetSID)
Adds a new schema to the STR. |
static int |
createSchemaObject(int sid,
int cid,
int tid,
java.lang.String value)
As above but with the AMType in |
static int |
createSchemaObject(int sid,
int cid,
java.lang.String value)
Adds a new schema object to the STR. |
static void |
createScheme(int obid,
int pos,
int sobid)
Adds a scheme to the STR. |
static void |
createTransformation(java.lang.String action,
int fromObj,
int toObj,
int fromSchema,
int toSchema,
java.lang.String function,
java.lang.String constraint)
Adds a transformation to the STR between two existing schemas, which must not already have a transformation between them. |
static void |
debugPrintStackTrace(java.lang.Throwable throwable,
int level)
Print an throwable's stack trace, but only at a certain debug level |
static java.lang.String |
escapeSQLString(java.lang.String text)
Take a string, and escape its characters such the \ character will be stored in SQL correctly. |
static java.util.Vector |
executeQuery(java.lang.String sql)
Execute a SQL query on the repository, and return the result in a Vector |
static int |
executeUpdate(java.lang.String sql)
Execute a SQL update on the repository. |
static java.lang.String |
flattenSchemes(java.lang.Object[] schemes)
Converts an Object array representation of a schema
object's scheme into a String representation. |
static int |
getAccessMethodAWFFeatures(int amid)
Returns the feature settings of the specified access method. |
static int[] |
getAccessMethodBySID(int sid)
Returns all the access method identifiers (AMID) that point to the access methods for the specified schema. |
static java.lang.String |
getAccessMethodDBDriver(int amid)
Returns the database driver of the specified access method. |
static java.lang.String |
getAccessMethodPassword(int amid)
Returns the password of the specified access method. |
static int |
getAccessMethodPID(int amid)
Returns the protocol identifier (PID) of the specified access method. |
static java.lang.String |
getAccessMethodProperty(int amid,
java.lang.String name)
Access Method Property |
static int |
getAccessMethodSID(int amid)
Returns the schema identifier (SID) to which the specified access method connects. |
static java.lang.String |
getAccessMethodURL(int amid)
Returns the URL of the specified access method. |
static java.lang.String |
getAccessMethodUsername(int amid)
Returns the username of the specified access method. |
static java.lang.String |
getAccessMethodWrapper(int amid)
Returns the feature settings of the specified access method. |
static java.lang.String[] |
getAllProtocols()
Returns the name of all the protocols found in the STR. |
static java.lang.String[] |
getAllSchemaNames()
Returns the name of all the schemas found in the STR. |
static java.lang.Object[][] |
getAllSchemeNames(int sid)
Returns an Object array of all objects' schemes of a
schema. |
static java.lang.String |
getAllSchemeNamesString(int sid)
Returns the scheme representation (of type String)
of all objects' schemes of a schema. |
static java.lang.String |
getCloseSchemeBracket()
Return String used to close schemes |
static java.lang.String |
getDataSourceName()
Returns the name of the repository in the local database. |
static int |
getDebugLevel()
Return the value of the debug level at set by setDebugLevel(int)
deprecated: use #Debugger.getDebugLevel() instead |
static int[] |
getDependentSchemaObjects(int obid,
int cid)
Returns the object identifiers (OBID) in ascending order of all the schema objects that depedent on the existanace of some other object. |
static java.lang.String |
getIDString()
Return a string that is globally unique for a STR repository |
static java.lang.Object[] |
getObjectSchemeNames(int obid)
Returns an Object array of an object's scheme. |
static java.lang.String |
getObjectSchemeNamesString(int obid)
Returns the scheme representation (of type String})
of an object's scheme. |
static java.lang.String |
getOpenSchemeBracket()
Return String used to open schemes |
static int |
getProtocolByName(java.lang.String name)
Returns the protocol identifier (PID) of the specified protocol name. |
static java.lang.String |
getProtocolName(int pid)
Returns the name of the given protocol identifier (PID). |
static int |
getSchemaBackgroundColor(int sid)
|
static int |
getSchemaByName(java.lang.String name)
Returns the schema identifier (SID) of the schema specified by name. Assumption:schema names are unique. |
static int |
getSchemaForegroundColor(int sid)
|
static int[] |
getSchemaIDs()
Returns the IDs of all the schemas found in the STR. |
static java.awt.Point |
getSchemaLabelPos(int sid)
|
static java.lang.String |
getSchemaName(int sid)
Returns the name of the schema with the given schema identifier. |
static java.lang.String[] |
getSchemaNames()
Returns the name of all the schemas found in the STR. |
static int |
getSchemaObjectBackgroundColor(int obid)
|
static int |
getSchemaObjectCID(int obid)
Returns the construct identifier (CID) of the schema object. |
static int |
getSchemaObjectForegroundColor(int obid)
|
static java.awt.Point |
getSchemaObjectLabelPos(int obid)
|
static java.awt.Point |
getSchemaObjectPos(int obid)
|
static int[] |
getSchemaObjects(int sid)
Returns the object identifiers (OBID) in ascending order of all the schema objects that belong to a particular schema. |
static int[] |
getSchemaObjectsByCID(int cid)
Returns the object identifiers (OBID) in ascending order of all the schema objects that are instances of a certain construct type, in order of the OBID to which they belong |
static int |
getSchemaObjectSID(int obid)
Returns the schema identifier (SID) that a schema object belongs to. |
static int |
getSchemaObjectTextColor(int obid)
|
static int |
getSchemaObjectTID(int obid)
Returns the type identifier (TID) for a schema object. |
static java.lang.String |
getSchemaObjectValue(int obid)
Returns the name (value) of the schema object. |
static java.awt.Point |
getSchemaPos(int sid)
|
static int[] |
getSchemaSIDs()
Returns the schema identifier (SID) of all the schemas found in the STR. |
static int |
getSchemaSubnetSID(int sid)
Returns the subnet schema id of this schema. |
static int |
getSchemaTextColor(int sid)
|
static int |
getSchemaType(int sid)
Returns the type of a schema. |
static int[] |
getSchemeOBIDList(int sobid)
Returns a list of all schema object identifiers (OBID) by which a particular schema object is referenced. |
static int[] |
getSchemePosList(int obid)
Returns a list of positions in the scheme of a particular schema object. |
static int |
getSchemeSOBID(int obid,
int pos)
Returns the object identifier (SOBID) of the referenced schema object in the specified schema object's scheme at the given position. |
static int[] |
getSchemeSOBIDList(int obid)
Returns a list of all schema object identifiers (SOBID) referenced by a particular schema object. |
static int |
getSectionDebugLevel(int section)
Gets the debug level which the section of code has been set to. |
static java.lang.String |
getSTR_DataSourceName()
Deprecated. use getDataSourceName() |
static java.lang.String |
getTranAction(int fromSchema,
int toSchema)
Returns the action of transformation between two schemas. |
static java.lang.String |
getTranConstraint(int fromSchema,
int toSchema)
Returns the constraint of a transformation between two schemas. |
static int |
getTranFromObject(int fromSchema,
int toSchema)
Returns the schema object to be transformed in a transformation. |
static int[] |
getTranFromSchema(int toSchema)
Returns a list of schema identifiers (SID) from which a particular schema can be derived. |
static java.lang.String |
getTranFunction(int fromSchema,
int toSchema)
Returns the function of a transformation between two schemas. |
static java.lang.String |
getTransformationProperty(int fsid,
int tsid,
java.lang.String name)
Transformation Property |
static java.util.Vector |
getTransformations()
Returns a vector representing all transformations in the repository |
static int[][] |
getTransformationsByOBID(int obid)
Returns the pairs of schema identifiers (SID) of all the schema transformations that involve the supplied OBID |
static int |
getTranToObject(int fromSchema,
int toSchema)
Returns the schema object as a result of a transformation. |
static int[] |
getTranToSchema(int fromSchema)
Returns a list of schema identifiers (SID) which are derived from a particular schema. |
static void |
main(java.lang.String[] args)
|
static void |
removeAccessMethod(int amid)
Removes an access method from the STR. |
static void |
removeAccessMethodBySID(int sid)
Removes all access methods for the given schema identifier (SID). |
static void |
removeAllSchemes(int obid)
Removes all the schemes associated with the given schema object. |
static void |
removeProtocol(int pid)
Removes the name of a protocol from the STR. |
static void |
removeSchema(int sid)
Removes a schema from the STR. |
static void |
removeSchemaObject(int obid)
Removes a schema object from the STR. |
static void |
removeScheme(int obid,
int scheme_pos)
Removes a particular position of an object's scheme from the STR. |
static void |
removeTransformation(int fromSchema,
int toSchema)
Removes a transformation from the STR. |
static boolean |
repair(boolean report)
Perform some operators to repair the STR repository after it has become corrupt. |
static void |
setAccessMethodAWFFeatures(int amid,
int awfFeatures)
Sets the AutoMedWrapperFactory featrures of a particular access method. |
static void |
setAccessMethodDBDriver(int amid,
java.lang.String dbDriver)
Sets the database driver of a particular access method. |
static void |
setAccessMethodPassword(int amid,
java.lang.String password)
Sets the password of a particular access method. |
static void |
setAccessMethodPID(int amid,
int pid)
Sets the protocol identifier (PID) of a particular access method. |
static void |
setAccessMethodProperty(int amid,
java.lang.String name,
java.lang.String value)
|
static void |
setAccessMethodSID(int amid,
int sid)
Sets the schema identifier (SID) of a particular access method. |
static void |
setAccessMethodURL(int amid,
java.lang.String url)
Sets the URL of a particular access method. |
static void |
setAccessMethodUsername(int amid,
java.lang.String username)
Sets the username of a particular access method. |
static void |
setAccessMethodWrapper(int amid,
java.lang.String wrapper)
Sets the wrapper of a particular access method. |
static void |
setCloseSchemeBracket(java.lang.String cs)
Set the String |
static void |
setDataSourceName(java.lang.String str)
Sets the name of the Schema Transformation Repository in the local database. |
static void |
setDebugLevel(int level)
Control the printing of debug information printed on the command line |
static void |
setOpenSchemeBracket(java.lang.String os)
Set the String |
static void |
setProtocolName(int pid,
java.lang.String name)
Sets the name of the protocol specified by the given protocol identifier (PID). |
static void |
setSchemaBackgroundColor(int sid,
int color)
|
static void |
setSchemaForegroundColor(int sid,
int color)
|
static void |
setSchemaLabelPos(int sid,
int x,
int y)
|
static void |
setSchemaName(int sid,
java.lang.String name)
Sets the name of schema. |
static void |
setSchemaObjectBackgroundColor(int obid,
int color)
|
static void |
setSchemaObjectCID(int obid,
int cid)
Sets the construct identifier (CID) of the schema object. |
static void |
setSchemaObjectForegroundColor(int obid,
int color)
|
static void |
setSchemaObjectLabelPos(int obid,
int x,
int y)
|
static void |
setSchemaObjectPos(int obid,
int x,
int y)
|
static void |
setSchemaObjectSID(int obid,
int sid)
Sets the schema identifier (SID) to which a particular schema object belongs. |
static void |
setSchemaObjectTextColor(int obid,
int color)
|
static void |
setSchemaObjectType(int obid,
int tid)
Save type id for schema object |
static void |
setSchemaObjectValue(int obid,
java.lang.String value)
Sets the name/value of the schema object. |
static void |
setSchemaPos(int sid,
int x,
int y)
|
static void |
setSchemaSubnetSID(int sid,
int subnet_sid)
Sets the subnet SID of a schema. |
static void |
setSchemaTextColor(int sid,
int color)
|
static void |
setSchemaType(int sid,
int type)
Sets the type of a schema. |
static void |
setSchemeSOBID(int obid,
int pos,
int sobid)
Sets the referenced schema object in a specific position of the scheme of a schema object. |
static void |
setSectionDebugLevel(int section,
int level)
Set the level of debug info output to the console for a numbered section of code. |
static void |
setSTR_DataSourceName(java.lang.String str)
Deprecated. use setDataSourceName() |
static void |
setTranAction(int fromSchema,
int toSchema,
java.lang.String action)
Sets the action of a transformation between two schemas. |
static void |
setTranConstraint(int fromSchema,
int toSchema,
java.lang.String constraint)
Sets the constraint of a transformation between two schemas. |
static void |
setTranFromObject(int fromSchema,
int toSchema,
int fromObj)
Sets the object identifier (OBID) of the schema object to be transformed in a transformation |
static void |
setTranFunction(int fromSchema,
int toSchema,
java.lang.String function)
Sets the function of a transformation between two schemas. |
static void |
setTransformationProperty(int fsid,
int tsid,
java.lang.String name,
java.lang.String value)
|
static void |
setTranToObject(int fromSchema,
int toSchema,
int toObj)
Sets the object identifier (OBID) of the schema object as a result of a transformation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String STR_DataSourceName
public static final int DEBUG_GENERAL
public static final int DEBUG_GUI
public static final int DEBUG_PATHWAY
public static final int DEBUG_P2P
public static final int DEBUG_WRAPPER
| Constructor Detail |
|---|
public STR()
| Method Detail |
|---|
public static void setDebugLevel(int level)
level - value to set the debug level at, according to the following
scale:
-1: no debug information, and no reporting of errors the system
finds in its execution if the system can ignore them
0: no debug information (default), but report on errors that the
system has ignored during its execution
1: only debug information that is to explain to users what is going on
5: standard information for software development work on repository
8: detailed information for software development work on repository
10: all debug informationpublic static int getDebugLevel()
setDebugLevel(int)
deprecated: use #Debugger.getDebugLevel() instead
public static boolean atDebugLevel(int level)
setDebugLevel(int) is
at least at a certain level. For example, this is used in code of the
form if (atDebugLevel(5)) ... to ensure that something is
only executed when the system has been set at debug level 5 or more
level - threshold value of debug level for which being "at a debug
level" is true
public static void setSectionDebugLevel(int section,
int level)
section - The section of code to set the level for. Setting
the debug level for section 0 sets the global debug levellevel - The debug level for the section of code
deprecated Moved to Debugger classespublic static int getSectionDebugLevel(int section)
section - The section of code for which the debug level is wanted.
Getting section 0 returns the global debug level
public static boolean atSectionDebugLevel(int section,
int level)
section - The section of code to check the debug level forlevel - The debug level for which is returned true if the
section has been set to a least this value
public static final void debugPrintStackTrace(java.lang.Throwable throwable,
int level)
throwable - that is to be reported ondebugLevel - that STR must be at in order for throwable to be
reported on
deprecated Moved to Debugger classespublic static boolean repair(boolean report)
report - when set true, print comments of the repairs conducted on
the command line.public static java.lang.String getDataSourceName()
public static java.lang.String getSTR_DataSourceName()
public static void setDataSourceName(java.lang.String str)
STR by default.
str - the name of the Schema Transformation Repository in the local database.public static void setSTR_DataSourceName(java.lang.String str)
public static int createSchema(java.lang.String name,
int type,
int subnetSID)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
name - name of the new schema.type - of schema: virtual, datasource, etc.subnetSID - is the SID of the subnet's only extentional schema;
set to -1 if this is the extentional schema that is being created
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static java.lang.String[] getAllSchemaNames()
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static int getSchemaByName(java.lang.String name)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
name - name of schema.
NotFoundException - if no record for
the specified name is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static java.lang.String getSchemaName(int sid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
sid - schema identifier (SID) of the schema.
NotFoundException - if no record for
the specified SID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static int getSchemaSubnetSID(int sid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
sid - schema identifier (SID) of the schema.
NotFoundException - if no record for
the specified SID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static java.awt.Point getSchemaPos(int sid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static void setSchemaPos(int sid,
int x,
int y)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static int getSchemaForegroundColor(int sid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static void setSchemaForegroundColor(int sid,
int color)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static int getSchemaBackgroundColor(int sid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static void setSchemaBackgroundColor(int sid,
int color)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static int getSchemaTextColor(int sid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static void setSchemaTextColor(int sid,
int color)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static java.awt.Point getSchemaLabelPos(int sid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static void setSchemaLabelPos(int sid,
int x,
int y)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static int getSchemaType(int sid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
sid - schema identifier (SID) of the schema.
NotFoundException - if no record for
the specified SID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException - Schema.VIRTUAL_TYPE getType()!=Schema.VIRTUAL_TYPE
public static void setSchemaName(int sid,
java.lang.String name)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
sid - schema identifier (SID) of the schema.name - new name of the schema.
NotFoundException - if no record for
the specified SID is found in the STR.
java.sql.SQLException - if the specified name is already in use.
DSRException
java.io.IOException
public static void setSchemaSubnetSID(int sid,
int subnet_sid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
sid - schema identifier (SID) of the schema.subnet_sid - the SID of the only extension schema in
the subnet to which this schema belongs.
.
NotFoundException - if no record for
the specified SID is found in the STR.
java.sql.SQLException - if the specified name is already in use.
DSRException
java.io.IOException
public static void setSchemaType(int sid,
int type)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
sid - schema identifier (SID) of the schema.type - to assoicate with schema
.
NotFoundException - if no record for
the specified SID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static java.lang.String[] getSchemaNames()
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static int[] getSchemaIDs()
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static int[] getSchemaSIDs()
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static void removeSchema(int sid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
sid - schema identifier (SID) of the schema to be removed.
NotFoundException - if no record for
the specified SID is found in the STR; or if data dependency of the
specified schema with other data in the STR exists.
java.sql.SQLException
DSRException
java.io.IOExceptionpublic static java.lang.String escapeSQLString(java.lang.String text)
public static int createSchemaObject(int sid,
int cid,
java.lang.String value)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
sid - schema identifier (SID) of the schema to which the schema
object belongs.cid - the construct identifier (CID) of the schema object. (See
MDR.createConstruct(int mid, String name,
int constructClass, boolean isRoot))value - the name of (value given to) the schema object.
NotFoundException - if the specified
SID does not exist in the schema table in the STR; or if an invalid
CID is given for the schema object.
java.sql.SQLException
DSRException
java.io.IOException
public static int createSchemaObject(int sid,
int cid,
int tid,
java.lang.String value)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static java.lang.Object[] getObjectSchemeNames(int obid)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
Object array of an object's scheme.
obid - object identifier (OBID) of the schema object.
NotFoundException - if the specified
obidToCopy (OBID) does not exist in the object table in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static java.lang.String getObjectSchemeNamesString(int obid)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
String})
of an object's scheme.
obid - object identifier (OBID) of the schema object.
NotFoundException - if the specified
obidToCopy (OBID) does not exist in the object table in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static java.lang.Object[][] getAllSchemeNames(int sid)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
Object array of all objects' schemes of a
schema.
sid - schema identifier (SID) of the schema.
NotFoundException - if the specified
SID does not exist in the schema table in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static java.lang.String getAllSchemeNamesString(int sid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
String)
of all objects' schemes of a schema.
sid - schema identifier (SID) of the schema.
NotFoundException - if the specified
SID does not exist in the schema table in the STR.
java.sql.SQLException
DSRException
java.io.IOExceptionpublic static void setOpenSchemeBracket(java.lang.String os)
String that is used to open a scheme name,
such as "<<person>>" or "<<person,name>>". By default
it is set to "<<". Normally this would be set to one of "<",
"<<", or "?" (open double chevron)
public static java.lang.String getOpenSchemeBracket()
public static void setCloseSchemeBracket(java.lang.String cs)
String that is used to close a scheme name,
such as "<<person>>" or "<<person,name>>"
By default it is set to ">>". Normally
this would only be changed to ">", ">>", or
"?" (close double chevron)
public static java.lang.String getCloseSchemeBracket()
public static java.lang.String flattenSchemes(java.lang.Object[] schemes)
throws NotFoundException
Object array representation of a schema
object's scheme into a String representation.
schemes - the Object array representation of the
schema object's scheme.
NotFoundException - if the scheme
is somehow corrupt, and thus there is not a known way of
representing it in the standard scheme format.
public static int getSchemaObjectSID(int obid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
obid - object identifier (OBID) of the schema object.
NotFoundException - if no record for
the specified OBID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static int getSchemaObjectTID(int obid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
obid - object identifier (OBID) of the schema object.
NotFoundException - if no record for
the specified OBID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static int getSchemaObjectCID(int obid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
MDR.createConstruct(int mid, String name,
int constructClass, boolean isRoot))
obid - object identifier (OBID) of the schema object.
NotFoundException - if no record for
the specified OBID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static java.awt.Point getSchemaObjectPos(int obid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static void setSchemaObjectPos(int obid,
int x,
int y)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static java.awt.Point getSchemaObjectLabelPos(int obid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static void setSchemaObjectLabelPos(int obid,
int x,
int y)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static int getSchemaObjectForegroundColor(int obid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static void setSchemaObjectForegroundColor(int obid,
int color)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static int getSchemaObjectBackgroundColor(int obid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static void setSchemaObjectBackgroundColor(int obid,
int color)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static int getSchemaObjectTextColor(int obid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static void setSchemaObjectTextColor(int obid,
int color)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static java.lang.String getSchemaObjectValue(int obid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
obid - object identifier (OBID) of the schema object.
NotFoundException - if no record for
the specified OBID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static int[] getSchemaObjects(int sid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
sid - schema identifier (SID) of schema.
NotFoundException - if no record for
the specified SID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static int[] getSchemaObjectsByCID(int cid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException,
MDRException
cid - identifier (CID) of construct.
NotFoundException - if no record for
the specified CID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
MDRException
public static int[] getDependentSchemaObjects(int obid,
int cid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException,
MDRException
obid - identifier (OBID) of existing objectcid - identifier (CID) of depedent objects to find (-1 will return
all dependent objects)
NotFoundException - if no record for
the specified OBID or CID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
MDRException
public static int[][] getTransformationsByOBID(int obid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
obid - identifier (OBID) of schema object.
NotFoundException - if no transformations for
the specified OBID are found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void setSchemaObjectSID(int obid,
int sid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
obid - object identifier (OBID) of the schema object.sid - schema identifier (SID) of schema to which OBID should belong.
NotFoundException - if no record for
the specified OBID is found in the STR; or if no record for the
specified SID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void setSchemaObjectCID(int obid,
int cid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
obid - object identifier (OBID) of schema object.cid - construct identifier (CID) of schema object.
NotFoundException - if no record for
the specified OBID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void setSchemaObjectValue(int obid,
java.lang.String value)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
obid - object identifier (OBID) of schema object.value - new value assigned to schema object.
NotFoundException - if no record for
the specified OBID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void setSchemaObjectType(int obid,
int tid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static void removeSchemaObject(int obid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
obid - object identifier (OBID) of the schema object to be removed.
NotFoundException - if no record for
the specified OBID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void createScheme(int obid,
int pos,
int sobid)
throws NotFoundException,
java.sql.SQLException,
IntegrityException,
DSRException,
java.io.IOException
obid - object identifier (OBID) of schema object.pos - position of the scheme of the schema object.sobid - object identifier (SOBID) of the referenced schema object
to be placed in the specified position in the scheme.
NotFoundException - if no record for
the specified OBID or SOBID is found in the STR
IntegrityException - if a
record already exists for the specified OBID and schemePos.
java.sql.SQLException
DSRException
java.io.IOException
public static int[] getSchemePosList(int obid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
NotFoundException,
java.io.IOException
obid - object identifier (OBID) of schema object.
NotFoundException - if no record for
the specified OBID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static int[] getSchemeSOBIDList(int obid)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
obid - object identifier (OBID) of schema object.
NotFoundException - if no record for
the specified OBID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static int[] getSchemeOBIDList(int sobid)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
sobid - object identifier (SOBID) of referenced schema object.
NotFoundException - if no record for
the specified SOBID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static int getSchemeSOBID(int obid,
int pos)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
obid - object identifier (OBID) of schema object.pos - position of the schema object's scheme.
NotFoundException - if no record for
the specified OBID and pos is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void setSchemeSOBID(int obid,
int pos,
int sobid)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
obid - object identifier (OBID) of schema object.pos - position of the scheme of the schema object.sobid - object identifier (SOBID) of the referenced schema
object to be put in the specified position.
NotFoundException - if no record for
the specified OBID and pos is found in the STR; or if no record
for the specified SOBID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void removeAllSchemes(int obid)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
obid - object identifier (OBID) of the schema object.
NotFoundException - if no record for
the specified OBID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void removeScheme(int obid,
int scheme_pos)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
obid - object identifier (OBID) of schema object.pos - position of the scheme of the schema object to be removed.
NotFoundException - if no record for
the specified OBID and schemePos is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void createTransformation(java.lang.String action,
int fromObj,
int toObj,
int fromSchema,
int toSchema,
java.lang.String function,
java.lang.String constraint)
throws NotFoundException,
java.sql.SQLException,
IntegrityException,
DSRException,
java.io.IOException
action - action of the transformation, its value can be one of
Transformation.ACTION_ADD_STR,
Transformation.ACTION_DELETE_STR,
Transformation.ACTION_RENAME_STR,
Transformation.ACTION_EXTEND_STR,
Transformation.ACTION_CONTRACT_STR,
and Transformation.ACTION_IDENT_STR.fromObj - object identifier (OBID) of schema object to be
transformed, which should be -1 of there is no such object as
will be the case for add and extend transformations.toObj - object identifier (OBID) of schema object as the result
of transformation, which should be -1 of there is no such object as
will be the case for delete and contract transformations.fromSchema - schema identifier (SID) of schema to be transformed.toSchema - schema identifier (SID) of schema as the
result of transformation.function - query which expresses how data of the transformed
object can be derived from the original object.cons - any constraints on the transformation.
IntegrityException - if a transformation
has already been defined from the specified fromSchema to toSchema.
NotFoundException - if any schema or schema object does not
exist already.
java.sql.SQLException
DSRException
java.io.IOException
public static int[] getTranFromSchema(int toSchema)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
toSchema - schema identifier (SID) of schema as a result of a
transformation.
NotFoundException - if no record for
the specified toSchema SID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static int[] getTranToSchema(int fromSchema)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
fromSchema - schema identifier (SID) of source schema.
NotFoundException - if no record
for the specified fromSchema SID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static java.lang.String getTranAction(int fromSchema,
int toSchema)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
fromSchema - schema identifier (SID) of source schema.toSchema - schema identifier (SID) of schema transformed.
Transformation.ACTION_ADD_STR, Transformation.ACTION_DELETE_STR, Transformation.ACTION_RENAME_STR,
Transformation.ACTION_EXTEND_STR, Transformation.ACTION_CONTRACT_STR, and ident.
NotFoundException - if no record for
the specified fromSchema and toSchema SID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static java.lang.String getTranFunction(int fromSchema,
int toSchema)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
fromSchema - schema identifier (SID) of source schema.toSchema - schema identifier (SID) of schema as a result of a
transformation.
NotFoundException - if no record for
the specified fromSchema and toSchema SID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static java.lang.String getTranConstraint(int fromSchema,
int toSchema)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
fromSchema - schema identifier (SID) of source schema.toSchema - schema identifier (SID) of schema as a result of a
transformation.
NotFoundException - if no record for
the specified fromSchema and toSchema SID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static int getTranFromObject(int fromSchema,
int toSchema)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
fromSchema - schema identifier (SID) of source schema.toSchema - schema identifier (SID) of schema as a result of a
transformation.
null.
NotFoundException - if no record for
the specified fromSchema and toSchema SID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static int getTranToObject(int fromSchema,
int toSchema)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
fromSchema - schema identifier (SID) of source schema.toSchema - schema identifier (SID) of schema as a result of a
transformation.
null.
NotFoundException - if no record for
the specified fromSchema and toSchema SID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void setTranAction(int fromSchema,
int toSchema,
java.lang.String action)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
fromSchema - schema identifier (SID) of source schema.toSchema - schema identifier (SID) of schema as a result of a
transformation.action - action of the transformation - one of 'add',
'del', 'ren', 'ext',
'con', and 'ident'.
NotFoundException - if no record for
the specified fromSchema and toSchema SID is found in the STR; or if
the specified action is not a valid action (i.e., if it is not
one of 'add', 'del', 'ren',
'ext', 'con', and 'ident').
java.sql.SQLException
DSRException
java.io.IOException
public static void setTranFromObject(int fromSchema,
int toSchema,
int fromObj)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
fromSchema - schema identifier (SID) of source schema.toSchema - schema identifier (SID) of schema as a result of a
transformation.fromObj - object identifier (OBID) of schema object to be transformed.
NotFoundException - if no record for
the specified fromSchema and toSchema SID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void setTranToObject(int fromSchema,
int toSchema,
int toObj)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
fromSchema - schema identifier (SID) of source schema.toSchema - schema identifier (SID) of schema as a result of a
transformation.toObj - object identifier (OBID) of schema object as the result of
transformation.
NotFoundException - if no record for
the specified fromSchema and toSchema SID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void setTranFunction(int fromSchema,
int toSchema,
java.lang.String function)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
fromSchema - schema identifier (SID) of source schema.toSchema - schema identifier (SID) of schema as a result of a
transformation.function - query which expresses how data of the transformed
object can be derived from the original object.
NotFoundException - if no record for
the specified fromSchema and toSchema SID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void setTranConstraint(int fromSchema,
int toSchema,
java.lang.String constraint)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
fromSchema - schema identifier (SID) of source schema.toSchema - schema identifier (SID) of schema as a result of a
transformation.constraint - the constraint of the transformation.
NotFoundException - if no record for
the specified fromSchema and toSchema SID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void removeTransformation(int fromSchema,
int toSchema)
throws NotFoundException,
java.sql.SQLException,
NotFoundException,
DSRException,
java.io.IOException
fromSchema - schema identifier (SID) of source schema.toSchema - schema identifier (SID) of schema as a result of a
transformation.
NotFoundException - if no record for
the specified fromSchema and toSchema SID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static java.lang.String getTransformationProperty(int fsid,
int tsid,
java.lang.String name)
throws NotFoundException
NotFoundException
public static void setTransformationProperty(int fsid,
int tsid,
java.lang.String name,
java.lang.String value)
throws NotFoundException
NotFoundException
public static int createAccessMethod(int sid,
java.lang.String url,
int pid,
java.lang.String dbDriver,
java.lang.String username,
java.lang.String password,
java.lang.String wrapper,
int awfFeatures)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
sid - schema identifier (SID) of the schema whose access method
entry is being created.url - URL of database to connect to.pid - protocol identifier (PID) of the protocol used for the
access method.dbDriver - database driver for connecting to the database.username - for connecting to the database (and null if none
required).password - for connecting to the database (and null if none
required)..wrapper - classname of the AutoMedWrapper ysed for
wrapping the datasouce.awfFeatures - feature setting for the AutoMedWrapperFactory.
NotFoundException - if a record whose
values match the specified values already exists in the accessMethod
table; or if the specified SID or PID is found in the STR.
java.sql.SQLException - if no record for the specified SID or PID is
found in the STR.
DSRException
java.io.IOException
public static int[] getAccessMethodBySID(int sid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
sid - schema identifier (SID) of schema.
NotFoundException - if no record for
the specified SID is found in the schema table in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static int getAccessMethodSID(int amid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
amid - access method identifier (AMID).
NotFoundException - if no record for
the specified AMID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static java.lang.String getAccessMethodURL(int amid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
amid - access method identifier (AMID).
NotFoundException - if no record for
the specified AMID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static int getAccessMethodPID(int amid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
amid - access method identifier (AMID).
NotFoundException - if no record for
the specified AMID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static java.lang.String getAccessMethodDBDriver(int amid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
amid - access method identifier (AMID).
NotFoundException - if no record for
the specified AMID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static java.lang.String getAccessMethodPassword(int amid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
amid - access method identifier (AMID) for which the password
is required
NotFoundException - if no record for
the specified AMID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static int getAccessMethodAWFFeatures(int amid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
AutoMedWrapper
this the setting of the features.
amid - access method identifier (AMID) for which the
setting is required
is required
NotFoundException - if no record for
the specified AMID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static java.lang.String getAccessMethodWrapper(int amid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
AutoMedWrapper
this the setting of the features.
amid - access method identifier (AMID) for which the
setting is required
is required
NotFoundException - if no record for
the specified AMID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static java.lang.String getAccessMethodUsername(int amid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
amid - access method identifier (AMID).
NotFoundException - if no record for
the specified AMID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void setAccessMethodSID(int amid,
int sid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
amid - the access method identifier (AMID).sid - schema identifier (SID) of the access method.
NotFoundException - if no record for
the specified AMID or SID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void setAccessMethodURL(int amid,
java.lang.String url)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
amid - the access method identifier (AMID).url - URL of database that the access method connects to.
NotFoundException - if no record for
the specified AMID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void setAccessMethodPID(int amid,
int pid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
amid - the access method identifier (AMID).pid - the protocol identifier (PID) that is used for establishing a
connection to the database.
NotFoundException - if no record for
the specified AMID or PID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void setAccessMethodDBDriver(int amid,
java.lang.String dbDriver)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
amid - the access method identifier (AMID).dbDriver - database driver that is used for establishing a
connection to the database.
NotFoundException - if no record for
the specified AMID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void setAccessMethodPassword(int amid,
java.lang.String password)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
amid - the access method identifier (AMID).password - of the database that the access method is
associated
NotFoundException - if no record for
the specified AMID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void setAccessMethodUsername(int amid,
java.lang.String username)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
amid - the access method identifier (AMID).username - username that is used for establishing a
connection to the database.
NotFoundException - if no record for
the specified AMID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void setAccessMethodWrapper(int amid,
java.lang.String wrapper)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
amid - the access method identifier (AMID).wrapper - full class name of the AccessMethod.
NotFoundException - if no record for
the specified AMID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void setAccessMethodAWFFeatures(int amid,
int awfFeatures)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
amid - the access method identifier (AMID).awfFeatures - features
NotFoundException - if no record for
the specified AMID or SID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void removeAccessMethod(int amid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
amid - the access method identifier (AMID).
NotFoundException - if no record for
the specified AMID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void removeAccessMethodBySID(int sid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
sid - the schema identifier (SID) whose access methods are to
be removed.
NotFoundException - if no record for
the specified AMID is found in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static int createProtocol(java.lang.String name)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
name - the name of the protocol.
NotFoundException
java.sql.SQLException - if a record for the specified name already
exists in the protocol table in the STR.
DSRException
java.io.IOException
public static int getProtocolByName(java.lang.String name)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
name - name of the protocol.
NotFoundException - if no record for
the specified name is found in the protocol table in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static java.lang.String getProtocolName(int pid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
pid - the protocol identifier (PID).
NotFoundException - if no record for
the specified PID is found in the protocol table in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static java.lang.String[] getAllProtocols()
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
null
if no record is found in the protocol table in the STR.
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static void setProtocolName(int pid,
java.lang.String name)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
pid - the protocol identifier (PID).name - new name of the protocol.
NotFoundException - if no record for
the specified PID is found in the protocol table in the STR.
java.sql.SQLException
DSRException
java.io.IOException
public static void removeProtocol(int pid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
NotFoundException,
java.io.IOException
pid - the protocol identifier (PID).
NotFoundException - if no record for
the specified PID is found in the protocol table in the STR; or if
data denpendency of the specified protocol with other data in the
STR exists.
java.sql.SQLException
DSRException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
public static java.util.Vector getTransformations()
throws AutoMedException,
java.sql.SQLException,
java.io.IOException
AutoMedException
java.sql.SQLException
java.io.IOExceptionpublic static java.lang.String getIDString()
public static java.util.Vector executeQuery(java.lang.String sql)
Vector
Vector or Vector, each of the later
representing one row in the result of the SQL query.public static int executeUpdate(java.lang.String sql)
sql - Statement to execute on the repository
public static java.lang.String getAccessMethodProperty(int amid,
java.lang.String name)
throws NotFoundException
NotFoundException
public static void setAccessMethodProperty(int amid,
java.lang.String name,
java.lang.String value)
throws NotFoundException
NotFoundException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||