Top Description Fields Constructors Methods
org.h2.jdbcx

public final Class JdbcDataSourceFactory

extends Object
implements ObjectFactory
Class Inheritance
All Implemented Interfaces
javax.naming.spi.ObjectFactory
Imports
java.util.Hashtable, javax.naming.Context, .Name, .Reference, javax.naming.spi.ObjectFactory, org.h2.engine.Constants, .SysProperties, org.h2.message.Trace, .TraceSystem

This class is used to create new DataSource objects. An application should not use this class directly.

Field Summary

Modifier and TypeField and Description
private final Trace
private static final TraceSystem

Constructor Summary

AccessConstructor and Description
public
JdbcDataSourceFactory()

The public constructor to create new factory objects.

Method Summary

Modifier and TypeMethod and Description
public synchronized Object

Returns:

the new JdbcDataSource, or null if the reference class name is not JdbcDataSource.
getObjectInstance
(Object
the reference (this factory only supports objects of type javax.naming.Reference)
obj
,
Name
unused
name
,
Context
unused
nameCtx
,
Hashtable<?, ?>
unused
environment
)

Implements javax.naming.spi.ObjectFactory.getObjectInstance.

Creates a new object using the specified location or reference information.

pack-priv Trace
public static TraceSystem

Returns:

TraceSystem
getTraceSystem
()

INTERNAL

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

traceback to summary
private final Trace trace
traceSystemback to summary
private static final TraceSystem traceSystem

Constructor Detail

JdbcDataSourceFactoryback to summary
public JdbcDataSourceFactory()

The public constructor to create new factory objects.

Method Detail

getObjectInstanceback to summary
public synchronized Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment)

Implements javax.naming.spi.ObjectFactory.getObjectInstance.

Creates a new object using the specified location or reference information.

Parameters
obj:Object

the reference (this factory only supports objects of type javax.naming.Reference)

name:Name

unused

nameCtx:Context

unused

environment:Hashtable<?, ?>

unused

Returns:Object

the new JdbcDataSource, or null if the reference class name is not JdbcDataSource.

Annotations
@Override
getTraceback to summary
pack-priv Trace getTrace()
getTraceSystemback to summary
public static TraceSystem getTraceSystem()

INTERNAL

Returns:TraceSystem

TraceSystem