|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jtds.jdbcx.JtdsDataSource
The jTDS DataSource
, ConnectionPoolDataSource
and
XADataSource
implementation.
Field Summary | |
private java.util.HashMap |
_Config
|
private static Driver |
_Driver
Driver instance used for obtaining connections. |
(package private) static java.lang.String |
DESCRIPTION
|
(package private) static long |
serialVersionUID
serial version UID |
Constructor Summary | |
|
JtdsDataSource()
Constructs a new DataSource. |
(package private) |
JtdsDataSource(java.util.HashMap config)
Constructs a configured DataSource. |
Method Summary | |
private void |
addNonNullProperties(java.util.Properties props,
java.lang.String user,
java.lang.String password)
|
java.lang.String |
getAppName()
|
boolean |
getAutoCommit()
|
int |
getBatchSize()
|
java.lang.String |
getBindAddress()
|
java.lang.String |
getBufferDir()
|
int |
getBufferMaxMemory()
|
int |
getBufferMinPackets()
|
boolean |
getCacheMetaData()
|
java.lang.String |
getCharset()
|
java.sql.Connection |
getConnection()
Returns a new database connection. |
java.sql.Connection |
getConnection(java.lang.String user,
java.lang.String password)
Returns a new database connection for the user and password specified. |
java.lang.String |
getDatabaseName()
|
java.lang.String |
getDescription()
|
java.lang.String |
getDomain()
|
java.lang.String |
getInstance()
|
private int |
getIntProperty(java.lang.String key)
|
java.lang.String |
getLanguage()
|
boolean |
getLastUpdateCount()
|
long |
getLobBuffer()
|
java.lang.String |
getLogFile()
|
int |
getLoginTimeout()
|
java.io.PrintWriter |
getLogWriter()
|
private long |
getLongProperty(java.lang.String key)
|
java.lang.String |
getMacAddress()
|
int |
getMaxStatements()
|
boolean |
getNamedPipe()
|
int |
getPacketSize()
|
java.lang.String |
getPassword()
|
javax.sql.PooledConnection |
getPooledConnection()
Returns a new pooled database connection. |
javax.sql.PooledConnection |
getPooledConnection(java.lang.String user,
java.lang.String password)
Returns a new pooled database connection for the user and password specified. |
int |
getPortNumber()
|
int |
getPrepareSql()
|
java.lang.String |
getProcessId()
|
java.lang.String |
getProgName()
|
javax.naming.Reference |
getReference()
|
boolean |
getSendStringParametersAsUnicode()
|
java.lang.String |
getServerName()
|
int |
getServerType()
|
boolean |
getSocketKeepAlive()
|
int |
getSocketTimeout()
|
java.lang.String |
getSsl()
|
boolean |
getTcpNoDelay()
|
java.lang.String |
getTds()
|
boolean |
getUseCursors()
|
boolean |
getUseJCIFS()
|
boolean |
getUseLOBs()
|
boolean |
getUseNTLMV2()
|
java.lang.String |
getUser()
|
java.lang.String |
getWsid()
|
javax.sql.XAConnection |
getXAConnection()
Returns a new XA database connection. |
javax.sql.XAConnection |
getXAConnection(java.lang.String user,
java.lang.String password)
Returns a new XA database connection for the user and password specified. |
boolean |
getXaEmulation()
|
void |
setAppName(java.lang.String appName)
|
void |
setAutoCommit(boolean autoCommit)
|
void |
setBatchSize(int batchSize)
|
void |
setBindAddress(java.lang.String bindAddress)
|
void |
setBufferDir(java.lang.String bufferDir)
|
void |
setBufferMaxMemory(int bufferMaxMemory)
|
void |
setBufferMinPackets(int bufferMinPackets)
|
void |
setCacheMetaData(boolean cacheMetaData)
|
void |
setCharset(java.lang.String charset)
|
void |
setDatabaseName(java.lang.String databaseName)
|
void |
setDescription(java.lang.String description)
|
void |
setDomain(java.lang.String domain)
|
void |
setInstance(java.lang.String instance)
|
void |
setLanguage(java.lang.String language)
|
void |
setLastUpdateCount(boolean lastUpdateCount)
|
void |
setLobBuffer(long lobBuffer)
|
void |
setLogFile(java.lang.String logFile)
|
void |
setLoginTimeout(int loginTimeout)
|
void |
setLogWriter(java.io.PrintWriter out)
|
void |
setMacAddress(java.lang.String macAddress)
|
void |
setMaxStatements(int maxStatements)
|
void |
setNamedPipe(boolean namedPipe)
|
void |
setPacketSize(int packetSize)
|
void |
setPassword(java.lang.String password)
|
void |
setPortNumber(int portNumber)
|
void |
setPrepareSql(int prepareSql)
|
void |
setProcessId(java.lang.String processId)
|
void |
setProgName(java.lang.String progName)
|
void |
setSendStringParametersAsUnicode(boolean sendStringParametersAsUnicode)
|
void |
setServerName(java.lang.String serverName)
|
void |
setServerType(int serverType)
|
void |
setSocketKeepAlive(boolean socketKeepAlive)
|
void |
setSocketTimeout(int socketTimeout)
|
void |
setSsl(java.lang.String ssl)
|
void |
setTcpNoDelay(boolean tcpNoDelay)
|
void |
setTds(java.lang.String tds)
|
void |
setUseCursors(boolean useCursors)
|
void |
setUseJCIFS(boolean useJCIFS)
|
void |
setUseLOBs(boolean useLOBs)
|
void |
setUseNTLMV2(boolean usentlmv2)
|
void |
setUser(java.lang.String user)
|
void |
setWsid(java.lang.String wsid)
|
void |
setXaEmulation(boolean xaEmulation)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final long serialVersionUID
static final java.lang.String DESCRIPTION
private final java.util.HashMap _Config
private static final Driver _Driver
Constructor Detail |
JtdsDataSource(java.util.HashMap config)
public JtdsDataSource()
Method Detail |
public javax.sql.XAConnection getXAConnection() throws java.sql.SQLException
getXAConnection
in interface javax.sql.XADataSource
java.sql.SQLException
- if an error occurspublic javax.sql.XAConnection getXAConnection(java.lang.String user, java.lang.String password) throws java.sql.SQLException
getXAConnection
in interface javax.sql.XADataSource
user
- the user name to connect withpassword
- the password to connect with
java.sql.SQLException
- if an error occurspublic java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
java.sql.SQLException
- if an error occurspublic java.sql.Connection getConnection(java.lang.String user, java.lang.String password) throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
user
- the user name to connect withpassword
- the password to connect with
java.sql.SQLException
- if an error occurspublic javax.naming.Reference getReference()
getReference
in interface javax.naming.Referenceable
public javax.sql.PooledConnection getPooledConnection() throws java.sql.SQLException
getPooledConnection
in interface javax.sql.ConnectionPoolDataSource
java.sql.SQLException
- if an error occurspublic javax.sql.PooledConnection getPooledConnection(java.lang.String user, java.lang.String password) throws java.sql.SQLException
getPooledConnection
in interface javax.sql.ConnectionPoolDataSource
user
- the user name to connect withpassword
- the password to connect with
java.sql.SQLException
- if an error occurspublic void setLogWriter(java.io.PrintWriter out)
setLogWriter
in interface javax.sql.DataSource
public java.io.PrintWriter getLogWriter()
getLogWriter
in interface javax.sql.DataSource
public void setLoginTimeout(int loginTimeout)
setLoginTimeout
in interface javax.sql.DataSource
public int getLoginTimeout()
getLoginTimeout
in interface javax.sql.DataSource
public void setSocketTimeout(int socketTimeout)
public int getSocketTimeout()
public void setSocketKeepAlive(boolean socketKeepAlive)
public boolean getSocketKeepAlive()
public void setProcessId(java.lang.String processId)
public java.lang.String getProcessId()
public void setDatabaseName(java.lang.String databaseName)
public java.lang.String getDatabaseName()
public void setDescription(java.lang.String description)
public java.lang.String getDescription()
public void setPassword(java.lang.String password)
public java.lang.String getPassword()
public void setPortNumber(int portNumber)
public int getPortNumber()
public void setServerName(java.lang.String serverName)
public java.lang.String getServerName()
public void setAutoCommit(boolean autoCommit)
public boolean getAutoCommit()
public void setUser(java.lang.String user)
public java.lang.String getUser()
public void setTds(java.lang.String tds)
public java.lang.String getTds()
public void setServerType(int serverType)
public int getServerType()
public void setDomain(java.lang.String domain)
public java.lang.String getDomain()
public void setUseNTLMV2(boolean usentlmv2)
public boolean getUseNTLMV2()
public void setInstance(java.lang.String instance)
public java.lang.String getInstance()
public void setSendStringParametersAsUnicode(boolean sendStringParametersAsUnicode)
public boolean getSendStringParametersAsUnicode()
public void setNamedPipe(boolean namedPipe)
public boolean getNamedPipe()
public void setLastUpdateCount(boolean lastUpdateCount)
public boolean getLastUpdateCount()
public void setXaEmulation(boolean xaEmulation)
public boolean getXaEmulation()
public void setCharset(java.lang.String charset)
public java.lang.String getCharset()
public void setLanguage(java.lang.String language)
public java.lang.String getLanguage()
public void setMacAddress(java.lang.String macAddress)
public java.lang.String getMacAddress()
public void setPacketSize(int packetSize)
public int getPacketSize()
public void setTcpNoDelay(boolean tcpNoDelay)
public boolean getTcpNoDelay()
public void setPrepareSql(int prepareSql)
public int getPrepareSql()
public void setLobBuffer(long lobBuffer)
public long getLobBuffer()
public void setMaxStatements(int maxStatements)
public int getMaxStatements()
public void setAppName(java.lang.String appName)
public java.lang.String getAppName()
public void setProgName(java.lang.String progName)
public java.lang.String getProgName()
public void setWsid(java.lang.String wsid)
public java.lang.String getWsid()
public void setLogFile(java.lang.String logFile)
public java.lang.String getLogFile()
public void setSsl(java.lang.String ssl)
public java.lang.String getSsl()
public void setBatchSize(int batchSize)
public int getBatchSize()
public void setBufferDir(java.lang.String bufferDir)
public java.lang.String getBufferDir()
public int getBufferMaxMemory()
public void setBufferMaxMemory(int bufferMaxMemory)
public void setBufferMinPackets(int bufferMinPackets)
public int getBufferMinPackets()
public void setCacheMetaData(boolean cacheMetaData)
public boolean getCacheMetaData()
public void setUseCursors(boolean useCursors)
public boolean getUseCursors()
public void setUseLOBs(boolean useLOBs)
public boolean getUseLOBs()
public void setBindAddress(java.lang.String bindAddress)
public java.lang.String getBindAddress()
public void setUseJCIFS(boolean useJCIFS)
public boolean getUseJCIFS()
private void addNonNullProperties(java.util.Properties props, java.lang.String user, java.lang.String password)
private int getIntProperty(java.lang.String key)
private long getLongProperty(java.lang.String key)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |