public class JNDIDatabaseConnection extends AbstractDatabaseConnection
UrlDriver.UrlDriverInstance
IGNORE, XML_MAP_TAG, XML_TAG
构造器和说明 |
---|
JNDIDatabaseConnection()
Constructor.
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone()
Clone.
|
java.sql.Connection |
createConnection()
创建连接
|
boolean |
equals(java.lang.Object obj)
Equals.
|
java.util.Map<java.lang.String,java.lang.String> |
getContextHashtable()
Gets context hashtable.
|
java.lang.String |
getDriver()
驱动地址
|
java.lang.String |
getJNDIName()
Gets the name of JNDI.
|
void |
readXML(XMLableReader reader)
Read XML.
|
void |
setContextHashtable(java.util.Hashtable contextHashtable)
Sets context hashtable.
|
void |
setJNDIName(java.lang.String jndiName)
Sets the name of JNDI.
|
void |
testConnection()
测试连接
|
java.lang.String |
toString()
字符串形式
|
void |
writeXML(XMLPrintWriter writer)
Write XML.
|
addConnection, connectMessage, feature, getNewCharsetName, getOriginalCharsetName, hasSchema, setNewCharsetName, setOriginalCharsetName, summary, toJSONObject
copy, getId, getNameSpace, setId, setNameSpace
getClassInfo, getData, invalidate, isLoad, setClassInfo, setData
public java.lang.String getJNDIName()
public void setJNDIName(java.lang.String jndiName)
jndiName
- the name of JNDI.public java.util.Map<java.lang.String,java.lang.String> getContextHashtable()
public void setContextHashtable(java.util.Hashtable contextHashtable)
contextHashtable
- the context hashtable.public java.lang.String getDriver()
UrlDriver
public void testConnection() throws java.lang.Exception
java.lang.Exception
- 异常public java.sql.Connection createConnection() throws java.lang.Exception
createConnection
在接口中 Connection
createConnection
在类中 AbstractDatabaseConnection
java.lang.Exception
public boolean equals(java.lang.Object obj)
equals
在接口中 Connection
equals
在类中 AbstractDatabaseConnection
public java.lang.String toString()
toString
在类中 java.lang.Object
public void readXML(XMLableReader reader)
readXML
在接口中 XMLReadable
readXML
在类中 AbstractDatabaseConnection
reader
- the element.XMLableReader
public void writeXML(XMLPrintWriter writer)
writeXML
在接口中 XMLWriter
writeXML
在类中 AbstractDatabaseConnection
writer
- the PrintWriter.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
AbstractDatabaseConnection
clone
在接口中 FCloneable
clone
在类中 AbstractDatabaseConnection
java.lang.CloneNotSupportedException
- 如果克隆失败则抛出此异常