|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgistoolkit.datasources.SimpleSQLConverter
Class to convert java types and AttributeTypes to SQL for a particular database.
Constructor Summary | |
SimpleSQLConverter()
Creates a new instance of SimpleSQLConverter |
Method Summary | |
AttributeType |
getAttributeType(java.sql.ResultSetMetaData inrmet,
int inIndex)
Convert the given ODBC type of data to the GISToolkit type of data. |
java.lang.String |
toSQL(java.lang.Object inObject,
AttributeType inAttributeType,
int inJDBCType)
Take the given type, of the given value, and convert it to the sql string needed for insertion into the database. |
java.lang.String |
toSQLDate(java.util.Date inDate,
AttributeType inAttributeType)
Convert a java date into the JDBC date representaion for this database. |
java.lang.String |
toSQLDate(java.lang.Object inObject,
AttributeType inAttributeType)
Convert the object to the JDBC Date representaion for the database. |
java.lang.String |
toSQLDate(java.lang.String inDate,
AttributeType inAttributeType)
Convert a string into the JDBC date representaion for this database. |
java.lang.String |
toSQLDecimal(java.lang.Object inDecimal,
AttributeType inAttributeType)
Convert an object into the JDBC decimal representaion for this database. |
java.lang.String |
toSQLInteger(java.lang.Object inInteger,
AttributeType inAttributeType)
Convert an object into the JDBC Integer representaion for this database. |
java.lang.String |
toSQLString(java.lang.Object inObject,
AttributeType inAttributeType)
Convert the object to a JDBC Character representation for the database. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SimpleSQLConverter()
Method Detail |
public AttributeType getAttributeType(java.sql.ResultSetMetaData inrmet, int inIndex) throws java.sql.SQLException
getAttributeType
in interface SQLConverter
java.sql.SQLException
public java.lang.String toSQL(java.lang.Object inObject, AttributeType inAttributeType, int inJDBCType)
toSQL
in interface SQLConverter
public java.lang.String toSQLString(java.lang.Object inObject, AttributeType inAttributeType)
toSQLString
in interface SQLConverter
public java.lang.String toSQLDate(java.lang.Object inObject, AttributeType inAttributeType)
toSQLDate
in interface SQLConverter
public java.lang.String toSQLDate(java.util.Date inDate, AttributeType inAttributeType)
toSQLDate
in interface SQLConverter
public java.lang.String toSQLDate(java.lang.String inDate, AttributeType inAttributeType)
toSQLDate
in interface SQLConverter
public java.lang.String toSQLInteger(java.lang.Object inInteger, AttributeType inAttributeType)
toSQLInteger
in interface SQLConverter
public java.lang.String toSQLDecimal(java.lang.Object inDecimal, AttributeType inAttributeType)
toSQLDecimal
in interface SQLConverter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |