|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.ddtek.jdbc.jxtr.JXTRDataSource
Implements the different JDBC data source interfaces.
JXTRDataSource implements the different JDBC data source
interfaces. Besides all standard JDBC methods, some Connect for SQL/XML
specific attributes are implemented.
| Constructor Summary | |
JXTRDataSource(javax.sql.DataSource embeddedDataSource)
Creates a Connect for SQL/XML data source based on an underlying JDBC data source. |
|
| Method Summary | |
java.lang.String |
getBinaryEncoding()
Retrieves the type of encoding for binary values. |
java.sql.Connection |
getConnection()
Attempts to establish a connection with the data source that this DataSource object represents. |
java.sql.Connection |
getConnection(java.lang.String user,
java.lang.String password)
Attempts to establish a connection with the data source that this DataSource object represents. |
java.lang.String |
getDataSourceName()
Retrieves the name property for this data source. |
java.lang.String |
getDescription()
Retrieves the data source description. |
int |
getLoginTimeout()
Gets the maximum time in seconds this data source can wait while attempting to connect to a database. |
java.io.PrintWriter |
getLogWriter()
Retrieves the log writer for this DataSource object. |
java.lang.String |
getNullReplacementValue()
Retrieves NULL replacement value. |
javax.sql.PooledConnection |
getPooledConnection()
Attempts to establish a physical database connection that can be used as a pooled connection. |
javax.sql.PooledConnection |
getPooledConnection(java.lang.String user,
java.lang.String password)
Attempts to establish a physical database connection that can be used as a pooled connection. |
javax.naming.Reference |
getReference()
Retrieves the reference for this data source object. |
java.lang.String |
getTimestampEncoding()
Retrieves the timestamp encoding. |
javax.sql.XAConnection |
getXAConnection()
Attempts to establish a physical database connection. |
javax.sql.XAConnection |
getXAConnection(java.lang.String username,
java.lang.String password)
Attempts to establish a physical database connection using the specified user name and password. |
void |
setBinaryEncoding(java.lang.String val)
Sets the type of encoding for binary values. |
void |
setDataSourceName(java.lang.String val)
Sets the name property for this data source. |
void |
setDescription(java.lang.String val)
Sets data source description attribute. |
void |
setLoginTimeout(int value)
Sets the maximum time in seconds that this data source will wait while attempting to connect to a database. |
void |
setLogWriter(java.io.PrintWriter writer)
Sets the log writer for this DataSource object. |
void |
setNullReplacementValue(java.lang.String val)
Sets the replacement value to use if a NULL value is encountered when selecting data from the database. |
void |
setTimestampEncoding(java.lang.String val)
Sets the type of encoding for timestamp values. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JXTRDataSource(javax.sql.DataSource embeddedDataSource)
embeddedDataSource - A valid Connect for JDBC or SequeLink for
JDBC data source.| Method Detail |
public void setDataSourceName(java.lang.String val)
val - The name for this data source.public java.lang.String getDataSourceName()
public void setBinaryEncoding(java.lang.String val)
Either base64 or hex
val - Encoding to use for timestamp values.public java.lang.String getBinaryEncoding()
Either odbc or iso8601
public void setTimestampEncoding(java.lang.String val)
val - Timestamp encodingpublic java.lang.String getTimestampEncoding()
public void setNullReplacementValue(java.lang.String val)
val - Value used to replace the NULL value if a NULL value is
encountered.public java.lang.String getNullReplacementValue()
public void setDescription(java.lang.String val)
val - Data source description.public java.lang.String getDescription()
public javax.naming.Reference getReference()
getReference in interface javax.naming.Referenceable
public int getLoginTimeout()
throws java.sql.SQLException
getLoginTimeout in interface javax.sql.DataSourcejava.sql.SQLException - If a database access error occurs
public void setLoginTimeout(int value)
throws java.sql.SQLException
setLoginTimeout in interface javax.sql.DataSourcevalue - The data source login time limit.
java.sql.SQLException - If a database access error occurs
public java.io.PrintWriter getLogWriter()
throws java.sql.SQLException
getLogWriter in interface javax.sql.DataSourcejava.sql.SQLException - If a database access error occurs
public void setLogWriter(java.io.PrintWriter writer)
throws java.sql.SQLException
setLogWriter in interface javax.sql.DataSourcewriter - The log writer for this DataSource object.
java.sql.SQLException - If a database access error occurs
public final java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcejava.sql.SQLException - If a database access error occurs
public final java.sql.Connection getConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourceuser - The user name for the connection.password - The user password for the connection.
java.sql.SQLException - If a database access error occurs
public javax.sql.PooledConnection getPooledConnection()
throws java.sql.SQLException
getPooledConnection in interface javax.sql.ConnectionPoolDataSourcejava.sql.SQLException - If a database access error occurs
public javax.sql.PooledConnection getPooledConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
getPooledConnection in interface javax.sql.ConnectionPoolDataSourceuser - The database user name for the connection.password - The user password for the connection.
java.sql.SQLException - If a database access error occurs
public javax.sql.XAConnection getXAConnection()
throws java.sql.SQLException
getXAConnection in interface javax.sql.XADataSourcejava.sql.SQLException - If a database access error occurs
public javax.sql.XAConnection getXAConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
getXAConnection in interface javax.sql.XADataSourcepassword - The user password for the connection.
java.sql.SQLException - If a database access error occurs
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||