org.apache.ojb.broker.accesslayer
Class StatementsForClassFactory

java.lang.Object
  extended by org.apache.ojb.broker.util.factory.ConfigurableFactory
      extended by 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

Constructor Summary
StatementsForClassFactory()
           
 
Method Summary
static StatementsForClassFactory getInstance()
          Get the singleton instance of this class
 StatementsForClassIF getStatementsForClass(JdbcConnectionDescriptor cds, ClassDescriptor cld)
          Get an instance of StatementsForClassIF
 
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
 

Constructor Detail

StatementsForClassFactory

public StatementsForClassFactory()
Method Detail

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 descriptor
cld - the class descriptor of the persistant object
Returns:
an instance of StatementsForClassIF


(C) 2002 - 2006 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