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

env.put(Context.INITIAL_CONTEXT_FACTORY, "Factory class name here");
javax.naming.Context ctx = new javax.naming.InitialContext(env);
DataSource ds = (DataSource)ctx.lookup("DataSource name here");
java.sql.Connection con = ds.getConnection();
Copyright: (C) Copyright 2004-2007 Hewlett-Packard Development Company, L.P.
See Also:
T4Properties, Serialized Form
Constructor Summary
HPT4DataSource()
Contructor for the HPT4DataSource object.
HPT4DataSource(java.util.Properties info)
Contructor for the HPT4DataSource object.
Method Summary
java.sql.Connection getConnection()
Attempts to establish an NDCS connection.
java.sql.Connection getConnection(java.lang.String username, java.lang.String password)
Attempts to establish an NDCS connection.
java.lang.String getNameType()
Deprecated.
javax.naming.Reference getReference()
void setLogWriter(java.io.PrintWriter out)
Sets the print writer for the current Type 4 data source.
void setNameType(java.lang.String nameType)
Deprecated.
Methods inherited from class com.hp.t4jdbc.
T4DSProperties
getBlobTableName, getCatalog, getClobTableName, getConnectionTimeout, getDataSourceName,
getDescription, getInitialPoolSize, getISO88591, getKANJI, getKSC5601, getLanguage, getLocale,
getLoginTimeout, getMaxIdleTime, getMaxPoolSize, getMaxStatements, getMinPoolSize,
getNetworkTimeout, getReserveDataLocator, getRoundingMode, getSchema, getServerDataSource,
getT4LogFile, getT4LogLevel, getTranslationVerification, getUrl, getURL, getUser,
setBlobTableName, setCatalog, setClobTableName, setConnectionTimeout, setConnectionTimeout,
setDataSourceName, setDescription, setInitialPoolSize, setInitialPoolSize, setISO88591, setKANJI,
setKSC5601, setLanguage, setLoginTimeout, setLoginTimeout, setMaxIdleTime, setMaxIdleTime,
setMaxPoolSize, setMaxPoolSize, setMaxStatements, setMaxStatements, setMinPoolSize,
setMinPoolSize, setNetworkTimeout, setNetworkTimeout, setPassword, setReserveDataLocator,
setReserveDataLocator, setRoundingMode, setRoundingMode, setSchema, setServerDataSource,
setT4LogFile, setT4LogLevel, setTranslationVerification, setTranslationVerification, setUrl,
setURL, setUser
Methods inherited from class com.hp.t4jdbc.
T4Properties