Package org.hsqldb.jdbc
Class jdbcDataSourceFactory
java.lang.Object
org.hsqldb.jdbc.jdbcDataSourceFactory
- All Implemented Interfaces:
ObjectFactory
A JNDI ObjectFactory for creating
jdbcDatasource
object instances.- Author:
- deforest@users
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
jdbcDataSourceFactory
public jdbcDataSourceFactory()
-
-
Method Details
-
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 interfaceObjectFactory
- 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
-