|
JCas v0.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cas.xml.AbstractCasSaxTagHandler cas.config.JCasInstanceTag
Configuration object for a database instance.
Field Summary | |
protected String |
adminRole
The admin role |
protected Connection |
con
The static database connection for custom authorization. |
protected static String |
DEFAULT_DUMMY_TABLE
Default dummy table |
protected String |
driver
The driver |
protected String |
dummyTable
A dummy table on the instance |
protected String |
instanceName
The instance name |
protected static String |
NAME
The tag name |
protected static String[] |
parents
The parents |
protected String |
password
The password |
protected String |
path
The path |
protected String |
roleSelect
The role select statement |
protected String |
user
The user |
Constructor Summary | |
JCasInstanceTag()
Creates a new instance of JCasInstanceTag |
Method Summary | |
protected AbstractCasSaxTagHandler |
createHandler(String tagName,
Attributes attributes)
Returns a new instance of the handler for the specified sub tag. |
String |
getAdminRole()
Returns the DBA role. |
Connection |
getConnection()
Returns a connection to the database. |
Connection |
getConnection(String uid,
String pwd)
Returns a new connection. |
String |
getDriver()
Returns the driver. |
String |
getDummyTable()
Returns the dummy table. |
String |
getInstanceName()
Returns the name of the instance. |
String[] |
getParentTagNames()
Returns the tag names of all possible parents. |
String |
getPassword()
Returns the password. |
String |
getPath()
Returns the path. |
String |
getRoleSelect()
Returns the role select statement. |
protected String[] |
getSubTagNames()
Returns the tag names that can appear within this handler but actually do not contain other tags. |
String |
getTagName()
Returns the tag name this handler will take care of. |
String |
getUser()
Returns the user. |
void |
tagCompleted()
Validates the configuration. |
Methods inherited from class cas.xml.AbstractCasSaxTagHandler |
characters, clear, endElement, getHandler, getSubHandler, getSubHandlerCount, getSubHandlers, getSubTag, getSubTag, getSubTagCount, getSubTags, ignoresUnknownTags, setAttributes, setIgnoreUnknownTags, startElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static String NAME
protected static String[] parents
protected static String DEFAULT_DUMMY_TABLE
protected String instanceName
protected String driver
protected String path
protected String user
protected String password
protected String roleSelect
protected String adminRole
protected Connection con
protected String dummyTable
Constructor Detail |
public JCasInstanceTag()
Method Detail |
protected AbstractCasSaxTagHandler createHandler(String tagName, Attributes attributes)
AbstractCasSaxTagHandler
createHandler
in class AbstractCasSaxTagHandler
tagName
- - name of the sub tag
public String[] getParentTagNames()
AbstractCasSaxTagHandler
getParentTagNames
in class AbstractCasSaxTagHandler
protected String[] getSubTagNames()
AbstractCasSaxTagHandler
getSubTagNames
in class AbstractCasSaxTagHandler
public String getTagName()
CasSaxTagHandler
public void tagCompleted() throws SAXException
AbstractCasSaxTagHandler
tagCompleted
in interface CasSaxTagHandler
tagCompleted
in class AbstractCasSaxTagHandler
SAXException
public String getInstanceName()
public String getDriver()
public String getPath()
public String getUser()
public String getPassword()
public String getRoleSelect()
public String getAdminRole()
public String getDummyTable()
public Connection getConnection() throws SQLException
SQLException
public Connection getConnection(String uid, String pwd) throws SQLException
SQLException
|
JCas v0.3.1 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |