1 package org.apache.ojb.broker.accesslayer; 2 3 17 18 import org.apache.ojb.broker.util.factory.ConfigurableFactory; 19 import org.apache.ojb.broker.metadata.ClassDescriptor; 20 import org.apache.ojb.broker.metadata.JdbcConnectionDescriptor; 21 22 35 36 public class StatementsForClassFactory extends ConfigurableFactory 37 { 38 private static StatementsForClassFactory singleton; 39 40 41 45 public static synchronized StatementsForClassFactory getInstance() 46 { 47 if (singleton == null) 48 { 49 singleton = new StatementsForClassFactory(); 50 } 51 return singleton; 52 } 53 54 57 protected String getConfigurationKey() 58 { 59 return "StatementsForClassClass"; 60 } 61 62 63 69 public StatementsForClassIF getStatementsForClass(JdbcConnectionDescriptor cds, ClassDescriptor cld) 70 { 71 return (StatementsForClassIF) this.createNewInstance(new Class []{JdbcConnectionDescriptor.class, ClassDescriptor.class}, 72 new Object []{cds, cld}); 73 } 74 } 75 | Popular Tags |