JDBCDataSource for plain
connections for the end user.
JDBCPool for pooled plain
connections for the end user.
JDBCPooledDataSource for
PooleConnection objects used
by external connection pooling software.
JDBCXADataSource for
XAConnection objects used by external connection pooling software.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | bdsClassName
class names |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final String | urlName
supported properties |
| private static final String | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static DataSource | Returns: the data source instanceproperties props)Static method to create a JDBCDataSource instance using the given properties for url, user, password, etc. |
| public Object | Returns: A newly created JDBCDataSource object; null if an object cannot be created.The reference information used in creating a
Datasource object. obj, Name ignored name, Context ignored nameCtx, Hashtable<K, V> ignored environment)Implements javax. Creates a DataSource object using the javax.naming.Reference object specified. |
| bdsClassName | back to summary |
|---|---|
| private static final String bdsClassName class names | |
| databaseName | back to summary |
|---|---|
| private static final String databaseName | |
| loginTimeoutName | back to summary |
|---|---|
| private static final String loginTimeoutName | |
| passwordName | back to summary |
|---|---|
| private static final String passwordName | |
| pdsClassName | back to summary |
|---|---|
| private static final String pdsClassName | |
| poolClassName | back to summary |
|---|---|
| private static final String poolClassName | |
| urlName | back to summary |
|---|---|
| private static final String urlName supported properties | |
| userName | back to summary |
|---|---|
| private static final String userName | |
| userNameName | back to summary |
|---|---|
| private static final String userNameName | |
| xdsClassName | back to summary |
|---|---|
| private static final String xdsClassName | |
| JDBCDataSourceFactory | back to summary |
|---|---|
| public JDBCDataSourceFactory() | |
| createDataSource | back to summary |
|---|---|
| public static DataSource createDataSource(Properties props) throws Exception Static method to create a JDBCDataSource instance using the given properties for url, user, password, etc.
| |
| getObjectInstance | back to summary |
|---|---|
| public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<K, V> environment) throws Exception Implements javax. Creates a DataSource object using the javax.naming.Reference object specified. The Reference object's class name should be one of the four supported data source class names and it must support the properties, database, user and password. It may optionally support the loginTimeout property. HyperSQL's JDBCPooledDataSource and JDBCXADataSource object are intended as factories used by a connection pooling DataSource. JDBCDataSource is a factory for normal connections and can be accessed directly by user applications. JDBCPool is a connection pool accessed directly by user applications. | |