org.chur.ant.db.profiles
Class AbstractDBProfile

java.lang.Object
  extended by org.chur.ant.db.profiles.AbstractDBProfile
All Implemented Interfaces:
DBProfile
Direct Known Subclasses:
CommonProfile, DB2Profile, MySQLProfile, OracleProfile

public abstract class AbstractDBProfile
extends java.lang.Object
implements DBProfile

This abstract class provides the common implementation of 'convert' method from DBProfile interface.

Date: Mar 26, 2007 Time: 5:40:15 PM Author: Sergey Churikov


Constructor Summary
protected AbstractDBProfile()
           
protected AbstractDBProfile(java.lang.String datePattern)
           
 
Method Summary
 java.lang.String convert(java.sql.ResultSet rs, int fieldIndex, int sqlType)
          Common implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.chur.ant.db.profiles.DBProfile
createDeleteSQLProducer, createInsertSQLProducer, createUpdateSQLProducer, isExceptionCanBeIgnored, typeName, viewNameColumn, viewOwnerColumn, viewsCatalog, viewSqlColumn
 

Constructor Detail

AbstractDBProfile

protected AbstractDBProfile()

AbstractDBProfile

protected AbstractDBProfile(java.lang.String datePattern)
Method Detail

convert

public java.lang.String convert(java.sql.ResultSet rs,
                                int fieldIndex,
                                int sqlType)
                         throws java.sql.SQLException
Common implementation. This method maps a value in the following ways:

Specified by:
convert in interface DBProfile
Parameters:
rs -
fieldIndex -
sqlType -
Returns:
value of rs.getXXX( fieldIndex) which was converted into java.lang.String. Null is allowed.
Throws:
java.sql.SQLException