|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jnetdirect.datasource.BaseDatasource
com.jnetdirect.jsql.JSQLDataSource
public class JSQLDataSource
This datasource lists properties specific for the JSQLConect driver. This datasource also supports all commonly used properties such as serverName, databaseName. Please see the documentation for BaseDatasource for additional information.
Field Summary |
---|
Fields inherited from class com.jnetdirect.datasource.BaseDatasource |
---|
debugLog |
Constructor Summary | |
---|---|
JSQLDataSource()
Create a new datasource |
Method Summary | |
---|---|
java.lang.String |
getApplicationName()
Get the application name property. |
java.lang.String |
getAsciiStringParameters()
Get the ascii setting |
java.lang.String |
getBooleanLiterals()
Get the boolean literals property. |
java.lang.String |
getCodepage()
Get the codepage |
java.sql.Connection |
getConnection()
Obtain a database connection using the datasource user and password properties. |
java.sql.Connection |
getConnection(java.lang.String username,
java.lang.String password)
Obtain a database connection using the supplied user and password properties. |
java.lang.String |
getConnectionRetryCount()
Get the connection retry count. |
java.lang.String |
getConnectionRetryWait()
Get the connection retry wait time. |
java.lang.String |
getDisableStatementPooling()
Get the prepared statement pooling flag. |
java.lang.String |
getDomain()
Get the domain name |
java.lang.String |
getEnableFailover()
Get the failover enabled mode. |
java.lang.String |
getInstanceName()
Get the instance name. |
java.lang.String |
getIterativeBatching()
Get the iterativeBatching setting. |
java.lang.String |
getLastUpdateCount()
Get the last update count mode. |
java.lang.String |
getLockTimeout()
Get the lock timeout |
java.lang.String |
getNetLibType()
Get the netLibType (oledb or sqlncli) |
int |
getPacketSize()
Get the packetSize |
java.lang.String |
getPreExecuteMetaData()
Get the preExecuteMetaData setting.. |
java.lang.String |
getSelectMethod()
Get the select method setting. |
java.lang.String |
getSqlVersion()
Get the SQL version |
java.lang.String |
getSsl()
Get the ssl setting |
java.lang.String |
getSslTrusted()
Get the ssl validating setting |
java.lang.String |
getTrustedAuthentication()
Get the trusted authentication setting. |
int |
getTrustedAuthenticationPort()
Get the port used for trusted authentication proxy listener. |
java.lang.String |
getXopenStates()
Get the SQL state mode. |
boolean |
isWrapperFor(java.lang.Class iface)
|
void |
setApplicationName(java.lang.String way)
Set application name. |
void |
setAsciiStringParameters(java.lang.String way)
Set ascii string parameters for prepared statements. |
void |
setBooleanLiterals(java.lang.String way)
Set boolean literals. |
void |
setCodepage(java.lang.String codepage)
Set the code page for the connection. |
void |
setConnectionRetryCount(java.lang.String retries)
Enable retries for failed connections. |
void |
setConnectionRetryWait(java.lang.String waitTime)
Set the retry period for connection retries in milliseconds. |
void |
setDisableStatementPooling(java.lang.String way)
Disable the pooling of prepared statements. |
void |
setDomain(java.lang.String domain)
Set the domain name. |
void |
setEnableFailover(java.lang.String way)
Enable failover connection property parsing. |
void |
setInstanceName(java.lang.String instanceName)
Set the instance name. |
void |
setIterativeBatching(java.lang.String way)
Set to true causes the driver to send each command in the batch separately. |
void |
setLastUpdateCount(java.lang.String way)
Set the last update count mode. |
void |
setLockTimeout(int milliSeconds)
Set the lock timeout. |
void |
setNetLibType(java.lang.String netLibType)
Set the Net Lib Type |
void |
setPacketSize(int packetSize)
Set the requested packet size |
void |
setPreExecuteMetaData(java.lang.String way)
Set to true causes the driver to obtain result set meta data before executing a query. |
void |
setSelectMethod(java.lang.String way)
Sets the cursor type for result set. |
void |
setSqlVersion(java.lang.String version)
Set the version of SQL Server. |
void |
setSsl(java.lang.String way)
Set ssl setting for connections. |
void |
setSslTrusted(java.lang.String way)
Set the ssl trusted for connections. |
void |
setTrustedAuthentication(java.lang.String way)
Enabled trusted authentication (NT) authentication. |
void |
setTrustedAuthenticationPort(int portNumber)
Set the port used for trusted authentication proxy listener. |
void |
setXopenStates(java.lang.String way)
Set the SQL state mode. |
java.lang.Object |
unwrap(java.lang.Class iface)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.sql.CommonDataSource |
---|
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
Constructor Detail |
---|
public JSQLDataSource()
Method Detail |
---|
public java.sql.Connection getConnection(java.lang.String username, java.lang.String password) throws java.sql.SQLException
BaseDatasource
getConnection
in interface javax.sql.DataSource
getConnection
in class BaseDatasource
username
- The user name for the connectionpassword
- The password for the connection
java.sql.SQLException
- The database connection failed.public java.sql.Connection getConnection() throws java.sql.SQLException
BaseDatasource
getConnection
in interface javax.sql.DataSource
getConnection
in class BaseDatasource
java.sql.SQLException
- The database connection failed.public void setDisableStatementPooling(java.lang.String way)
way
- '1' or 'true' to disable statement poolingpublic java.lang.String getDisableStatementPooling()
public void setTrustedAuthentication(java.lang.String way)
way
- '1' or 'true' to enable trusted authenticationpublic java.lang.String getTrustedAuthentication()
public void setSelectMethod(java.lang.String way)
way
- 'cursor' to enable select method.public java.lang.String getSelectMethod()
public void setPreExecuteMetaData(java.lang.String way)
way
- '1' or 'true' to enable preExecuteMetaDatapublic java.lang.String getPreExecuteMetaData()
public void setIterativeBatching(java.lang.String way)
public java.lang.String getIterativeBatching()
public void setSqlVersion(java.lang.String version)
public java.lang.String getSqlVersion()
public void setCodepage(java.lang.String codepage)
codepage
- the character set code pagepublic java.lang.String getCodepage()
public void setLockTimeout(int milliSeconds)
milliSeconds
- The number of milliseconds to wait.public java.lang.String getLockTimeout()
public void setAsciiStringParameters(java.lang.String way)
- public java.lang.String getAsciiStringParameters()
public void setBooleanLiterals(java.lang.String way)
set
- way to 'true' or '1' to enable the translation.public java.lang.String getBooleanLiterals()
public void setApplicationName(java.lang.String way)
The
- application name.public java.lang.String getApplicationName()
public void setLastUpdateCount(java.lang.String way)
way
- Set to "1" or "true" to enable this mode.public java.lang.String getLastUpdateCount()
public void setInstanceName(java.lang.String instanceName)
instanceName
- The instance name.public java.lang.String getInstanceName()
public void setXopenStates(java.lang.String way)
way
- Set to "1" or "true" to enable XOPEN mode.public java.lang.String getXopenStates()
public void setEnableFailover(java.lang.String way)
way
- Set to "true" to enable failover mode.public java.lang.String getEnableFailover()
public void setConnectionRetryCount(java.lang.String retries)
retries
- Set to the number of retries.public java.lang.String getConnectionRetryCount()
public void setConnectionRetryWait(java.lang.String waitTime)
waitTime
- Set to the number of milliseconds.public java.lang.String getConnectionRetryWait()
public void setTrustedAuthenticationPort(int portNumber)
portNumber
- Set to the port used for Trusted Authentication Proxy listener.public int getTrustedAuthenticationPort()
public void setDomain(java.lang.String domain)
domain
- Sets the domain name.public java.lang.String getDomain()
public void setSsl(java.lang.String way)
- public java.lang.String getSsl()
public void setSslTrusted(java.lang.String way)
- public java.lang.String getSslTrusted()
public void setPacketSize(int packetSize)
packetSize
- Set to the requested packetSizepublic int getPacketSize()
public void setNetLibType(java.lang.String netLibType)
netLibType
- (oledb or sqlncli)public java.lang.String getNetLibType()
public boolean isWrapperFor(java.lang.Class iface) throws java.sql.SQLException
isWrapperFor
in interface java.sql.Wrapper
java.sql.SQLException
public java.lang.Object unwrap(java.lang.Class iface) throws java.sql.SQLException
unwrap
in interface java.sql.Wrapper
java.sql.SQLException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |