|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--uk.ac.ic.doc.automed.reps.Protocol
The Protocol class describes a generic method of accessing data sources,
such as JDBC or ODBC. Each extensional AutoMed Schema can have one
or more AccessMethods, each of which holds the
parameters required by the
protocol in order to access the data source.
| Method Summary | |
static Protocol |
createProtocol(java.lang.String protocolName)
Creates a new protocol. |
static boolean |
exists(java.lang.String protocolName)
Determine if a given named protocol exists in the repository |
java.lang.String |
getName()
Returns the name of the protocol. |
protected int |
getPID()
Returns the protocol identifier (PID). |
static Protocol |
getProtocol(int pid)
Returns the Protocol with the given PID. |
static Protocol |
getProtocol(java.lang.String protocolName)
Returns the Protocol with the given protocolName. |
void |
remove()
|
static void |
remove(int pid)
Removes the protocol with the given protocol PID. |
static void |
remove(java.lang.String protocolName)
Removes the protocol with the given protocolName. |
void |
setName(java.lang.String protocolName)
Sets the name of the protocol to the given string. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Protocol createProtocol(java.lang.String protocolName)
throws STRException,
java.sql.SQLException,
DataSourceRepositoryException,
java.io.IOException
protocolName - the name of the protocol.
STRException
java.sql.SQLException
DataSourceRepositoryException
java.io.IOException
public static void remove(java.lang.String protocolName)
throws STRException,
java.sql.SQLException,
DataSourceRepositoryException,
java.io.IOException
protocolName - the name of the protocol to be removed.
STRException
java.sql.SQLException
DataSourceRepositoryException
java.io.IOException
public static void remove(int pid)
throws STRException,
java.sql.SQLException,
DataSourceRepositoryException,
java.io.IOException
pid - the identifier of the protocol to be removed.
STRException
java.sql.SQLException
DataSourceRepositoryException
java.io.IOException
public void remove()
throws STRException,
java.sql.SQLException,
DataSourceRepositoryException,
java.io.IOException
STRException
java.sql.SQLException
DataSourceRepositoryException
java.io.IOExceptionpublic java.lang.String getName()
public void setName(java.lang.String protocolName)
throws STRException,
java.sql.SQLException,
DataSourceRepositoryException,
java.io.IOException
protocolName - the string that is to be the protocol's name.
STRException
java.sql.SQLException
DataSourceRepositoryException
java.io.IOException
public static Protocol getProtocol(java.lang.String protocolName)
throws NotFoundException
Protocol with the given protocolName.
protocolName - the name of the protocol.
Protocol with the given protocolName.
STRException
java.sql.SQLException
DataSourceRepositoryException
java.io.IOException
NotFoundExceptionpublic static boolean exists(java.lang.String protocolName)
protocolName - String name of protocol
public static Protocol getProtocol(int pid)
throws STRException,
java.sql.SQLException,
DataSourceRepositoryException,
java.io.IOException
Protocol with the given PID.
pid - the identifier of the protocol in the STR.
Protocol with the given pid.
STRException
java.sql.SQLException
DataSourceRepositoryException
java.io.IOExceptionprotected int getPID()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||