db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r489531 - /db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/StatementsForClassImpl.java
Date Fri, 22 Dec 2006 00:57:18 GMT
Author: arminw
Date: Thu Dec 21 16:57:17 2006
New Revision: 489531

URL: http://svn.apache.org/viewvc?view=rev&rev=489531
Log:
change Platform instance lookup

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/StatementsForClassImpl.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/StatementsForClassImpl.java
URL: http://svn.apache.org/viewvc/db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/StatementsForClassImpl.java?view=diff&rev=489531&r1=489530&r2=489531
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/StatementsForClassImpl.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/java/org/apache/ojb/broker/accesslayer/StatementsForClassImpl.java
Thu Dec 21 16:57:17 2006
@@ -26,15 +26,14 @@
 import org.apache.ojb.broker.accesslayer.sql.SqlGeneratorFactory;
 import org.apache.ojb.broker.core.proxy.ProxyHelper;
 import org.apache.ojb.broker.metadata.ClassDescriptor;
-import org.apache.ojb.broker.metadata.JdbcConnectionDescriptor;
 import org.apache.ojb.broker.metadata.ConnectionPoolDescriptor;
+import org.apache.ojb.broker.metadata.JdbcConnectionDescriptor;
 import org.apache.ojb.broker.platforms.Platform;
 import org.apache.ojb.broker.platforms.PlatformException;
-import org.apache.ojb.broker.platforms.PlatformFactory;
 import org.apache.ojb.broker.query.Query;
+import org.apache.ojb.broker.util.ExceptionHelper;
 import org.apache.ojb.broker.util.logging.Logger;
 import org.apache.ojb.broker.util.logging.LoggerFactory;
-import org.apache.ojb.broker.util.ExceptionHelper;
 
 /**
  * This class serves as a cache for Statements that are
@@ -72,7 +71,7 @@
     {
         this.classDescriptor = classDescriptor;
         clazz = classDescriptor.getClassOfObject();
-        platform = PlatformFactory.getPlatformFor(jcd);
+        platform = jcd.getPlatform();
         sqlGenerator = SqlGeneratorFactory.getInstance().createSqlGenerator(platform);
 
         final ConnectionPoolDescriptor cpd = jcd.getConnectionPoolDescriptor();



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message