org.hsqldb.jdbc
Class JDBCDataSourceFactory
java.lang.Object
org.hsqldb.jdbc.JDBCDataSourceFactory
- All Implemented Interfaces:
- ObjectFactory
public class JDBCDataSourceFactory
- extends Object
- implements ObjectFactory
A JNDI ObjectFactory for creating JDBCDataSource
object instances.
- Author:
- deforest@users
JDBCDataSourceFactory
public JDBCDataSourceFactory()
getObjectInstance
public Object getObjectInstance(Object obj,
Name name,
Context nameCtx,
Hashtable environment)
throws Exception
- Creates a JDBCDataSource object using the location or reference
information specified.
The Reference object should support the properties, database, user,
password.
- Specified by:
getObjectInstance
in interface ObjectFactory
- Parameters:
obj
- The reference information used in creating a
JDBCDatasource object.name
- ignorednameCtx
- ignoredenvironment
- ignored
- Returns:
- A newly created JDBCDataSource object; null if an object
cannot be created.
- Throws:
Exception
- never
Copyright © 2001 - 2009 HSQL Development Group.