org.apache.ojb.broker.accesslayer
Class StatementsForClassFactory

java.lang.Object
  extended byorg.apache.ojb.broker.util.factory.ConfigurableFactory
      extended byorg.apache.ojb.broker.accesslayer.StatementsForClassFactory
All Implemented Interfaces:
Configurable

public class StatementsForClassFactory
extends 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: StatmentsForClassFactory.java,v 1.0 2003/07/17 20:50:48 rburt3 Exp $
Author:
Randall Burt
See Also:
org.apache.ojb.broker.accesslayer.StatementManager#getStatementsForClass, StatementsForClassImpl

Constructor Summary
StatementsForClassFactory()
           
 
Method Summary
protected  java.lang.String getConfigurationKey()
          must be implemented in the concrete factory classes.
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
buildArgumentString, configure, createNewInstance, createNewInstance, createNewInstance, getClassToServe, getLogger, setClassToServe
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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

getConfigurationKey

protected java.lang.String getConfigurationKey()
Description copied from class: ConfigurableFactory
must be implemented in the concrete factory classes. the configuration key is used to lookup the Class to serve from the OjbConfiguration in configure().

Specified by:
getConfigurationKey in class ConfigurableFactory

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


Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14