Neoview JDBC Type 4 Driver API Reference (R2.2, R2.3, R2.4, R2.5)

getConnection
public java.sql.Connection getConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
Attempts to establish an NDCS connection.
Specified by:
getConnection in interface javax.sql.DataSource
Parameters:
username - user name
password - user password
Returns:
a connection to the NDCS server.
Throws:
java.sql.SQLException - if a database access error or NDCS error occurs.
See Also:
getConnection()
getReference
public javax.naming.Reference getReference()
throws javax.naming.NamingException
Specified by:
getReference in interface javax.naming.Referenceable
Returns:
Reference Object containing all the Type 4 property references.
Throws:
javax.naming.NamingException
setLogWriter
public void setLogWriter(java.io.PrintWriter out)
throws java.sql.SQLException
Sets the print writer for the current Type 4 data source.
Specified by:
setLogWriter in interface javax.sql.DataSource
Overrides:
setLogWriter in class T4Properties
Parameters:
out - java.io.PrintWriter for the current T4 connection.
Throws:
java.sql.SQLException - when error occurs.
See Also:
T4Properties.getLogWriter()
,
ConnectionPoolDataSource