org.compass.gps.device.jdbc.dialect
Interface JdbcDialect

All Known Implementing Classes:
DefaultJdbcDialect, OracleJdbcDialect

public interface JdbcDialect

A dialect specific operations that might be different accross different databases.

Author:
kimchy

Method Summary
 String getStringValue(ResultSet rs, ColumnMapping mapping)
          Returns the String value for the given column mapping.
 String getStringValue(ResultSet rs, int columnIndex)
          Returns the String value for the given column index.
 Long getVersion(ResultSet rs, VersionColumnMapping versionMapping)
          Returns the version value of the given version mapping.
 void setParameter(PreparedStatement ps, int paramIndex, String value)
          Sets the paremeter value for the given parameter index and the PreparedStatement.
 

Method Detail

getStringValue

String getStringValue(ResultSet rs,
                      int columnIndex)
                      throws SQLException
Returns the String value for the given column index. Will return null if the column value is null.

Throws:
SQLException

getStringValue

String getStringValue(ResultSet rs,
                      ColumnMapping mapping)
                      throws SQLException
Returns the String value for the given column mapping. Will return null if the column value is null.

Throws:
SQLException

getVersion

Long getVersion(ResultSet rs,
                VersionColumnMapping versionMapping)
                throws SQLException
Returns the version value of the given version mapping. It is always a long value.

Throws:
SQLException

setParameter

void setParameter(PreparedStatement ps,
                  int paramIndex,
                  String value)
                  throws SQLException
Sets the paremeter value for the given parameter index and the PreparedStatement.

Throws:
SQLException


Copyright (c) 2004-2009 The Compass Project.