NonStop Server for Java (NSJ) Programmer's Guide (NSJ 2.0+)
implements the javax.sql.DataSource interface.
The SQLMPDataSource class implements the following methods:
getConnection()●
getConnection(String username, password)●
getLoginTimeout()●
getLogWriter()●
setLogWriter(PrintWriter out)●
setServer(url)●
The setLoginTimeout(int seconds) method, which sets the maximum time in seconds that a data source can
wait while attempting to connect to a database, is not supported.
SQLMPDriver
SQLMPDriver implements the interface that connects a Java program or servlet to an SQL/MP database.
The SQL/MP drivers support the following SQLMPDriver methods:
acceptsURL(String)●
connect(String, Properties)●
getMajorVersion()●
getMinorVersion()●
jdbcCompliant()●
The SQL/MP drivers do not support the method getPropertyInfo(String, Properties), which always
returns the value null.
SQLMPPreparedStatement
SQLMPPreparedStatement allows an SQL/MP statement to be compiled, stored in a
SQLMPPreparedStatement object, and then executed multiple times.
The SQL/MP drivers support the following SQLMPPreparedStatement methods:
addBatch()●
clearBatch()●
clearParameters()●
execute()●
executeBatch()●
executeQuery()●
executeUpdate()●
getConnection●
getFetchDirection●
getFetchSize●
getResultSetConcurrency●
getResultSetType●
setAsciiStream()*●
setBigDecimal()*●
setBignum()*●
setBlob(int i, Blob x)*●
setBoolean()*●