org.apache.ojb.broker.accesslayer
Class StatementsForClassFactory
java.lang.Object
org.apache.ojb.broker.util.factory.ConfigurableFactory
org.apache.ojb.broker.accesslayer.StatementsForClassFactory
- All Implemented Interfaces:
- org.apache.ojb.broker.util.configuration.Configurable
- public class StatementsForClassFactory
- extends org.apache.ojb.broker.util.factory.ConfigurableFactory
Factory for StatementsForClassIF
implementations. Developers may specify the specific implementation returned by
getStatementsForClass(org.apache.ojb.broker.metadata.JdbcConnectionDescriptor, org.apache.ojb.broker.metadata.ClassDescriptor)
by implementing the
StatementsForClassIF
interface and setting the StatementsForClassClass
property in
OJB.properties
.
- Version:
- $Id: StatementsForClassFactory.java 365232 2005-12-21 22:36:07Z tomdz $
- Author:
- Randall Burt
- See Also:
StatementManager
,
StatementsForClassImpl
Methods inherited from class org.apache.ojb.broker.util.factory.ConfigurableFactory |
configure, createNewInstance, createNewInstance, createNewInstance, getClassToServe, setClassToServe |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StatementsForClassFactory
public StatementsForClassFactory()
getInstance
public static StatementsForClassFactory getInstance()
- Get the singleton instance of this class
- Returns:
- the singleton instance of StatementsForClassFactory
getStatementsForClass
public StatementsForClassIF getStatementsForClass(JdbcConnectionDescriptor cds,
ClassDescriptor cld)
- Get an instance of
StatementsForClassIF
- Parameters:
cds
- our connection descriptorcld
- the class descriptor of the persistant object
- Returns:
- an instance of
StatementsForClassIF
(C) 2002 - 2005 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30