|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.reps.Protocol
public class 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 |
assertProtocol(java.lang.String name)
Returns the Protocol with a certain name, creating it if
it does not already exist.. |
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 IntegrityException
protocolName - the name of the protocol.
IntegrityException - if the protocol already exists in
the repository
public static void remove(java.lang.String protocolName)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
protocolName - the name of the protocol to be removed.
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public static void remove(int pid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
pid - the identifier of the protocol to be removed.
NotFoundException
java.sql.SQLException
DSRException
java.io.IOException
public void remove()
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
NotFoundException
java.sql.SQLException
DSRException
java.io.IOExceptionpublic java.lang.String getName()
public void setName(java.lang.String protocolName)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
protocolName - the string that is to be the protocol's name.
NotFoundException
java.sql.SQLException
DSRException
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.
NotFoundException
java.sql.SQLException
DSRException
java.io.IOExceptionpublic static Protocol assertProtocol(java.lang.String name)
Protocol with a certain name, creating it if
it does not already exist..
public static boolean exists(java.lang.String protocolName)
protocolName - String name of protocol
public static Protocol getProtocol(int pid)
throws NotFoundException,
java.sql.SQLException,
DSRException,
java.io.IOException
Protocol with the given PID.
pid - the identifier of the protocol in the STR.
Protocol with the given pid.
NotFoundException
java.sql.SQLException
DSRException
java.io.IOExceptionprotected int getPID()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||