ojb.broker.platforms
Class PlatformDefaultImpl

java.lang.Object
  |
  +--ojb.broker.platforms.PlatformDefaultImpl
All Implemented Interfaces:
Platform
Direct Known Subclasses:
PlatformHsqldbImpl, PlatformInformixImpl, PlatformMsAccessImpl, PlatformMySQLImpl

public class PlatformDefaultImpl
extends java.lang.Object
implements Platform

This class is a concrete implementation of Platform. Provides default implementations for all methods declared in Platform. It is intended as a vanilla implementation and as baseclass for platform specific implementations.

Author:
Thomas Mahler

Constructor Summary
PlatformDefaultImpl()
           
 
Method Summary
 void initializeJdbcConnection(java.sql.Connection conn)
          callback called immediately after a JDBC Connection has been obtained in ...
 void setNullForStatement(java.sql.PreparedStatement ps, int index, int sqlType)
          some JDBC-Drivers do not support all sqlTypes this callback is used set parameters to a PreparedStatement
 void setObjectForStatement(java.sql.PreparedStatement ps, int index, java.lang.Object value, int sqlType)
          some JDBC-Drivers do not support all sqlTypes this callback is used set parameters to a PreparedStatement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformDefaultImpl

public PlatformDefaultImpl()
Method Detail

initializeJdbcConnection

public void initializeJdbcConnection(java.sql.Connection conn)
Description copied from interface: Platform
callback called immediately after a JDBC Connection has been obtained in ...

Specified by:
initializeJdbcConnection in interface Platform
See Also:
Platform.initializeJdbcConnection(Connection)

setObjectForStatement

public void setObjectForStatement(java.sql.PreparedStatement ps,
                                  int index,
                                  java.lang.Object value,
                                  int sqlType)
                           throws java.sql.SQLException
Description copied from interface: Platform
some JDBC-Drivers do not support all sqlTypes this callback is used set parameters to a PreparedStatement

Specified by:
setObjectForStatement in interface Platform
java.sql.SQLException

setNullForStatement

public void setNullForStatement(java.sql.PreparedStatement ps,
                                int index,
                                int sqlType)
                         throws java.sql.SQLException
Description copied from interface: Platform
some JDBC-Drivers do not support all sqlTypes this callback is used set parameters to a PreparedStatement

Specified by:
setNullForStatement in interface Platform
java.sql.SQLException


Authors: Thomas Mahler and others. (C) 2000, 2001.
All rights reserved. Published under the Gnu Public License.
http://objectbridge.sourceforge.net
Version: 0.8.375, 2002-04-04