rs.sol.soloist.server.builtindomains.builtindatatypes
Class Date.AsDate

java.lang.Object
  extended by rs.sol.soloist.server.javaimpl.db.mapping.handlers.AbstractDataTypeHandler<Date>
      extended by rs.sol.soloist.server.builtindomains.builtindatatypes.Date.AsDate
All Implemented Interfaces:
rs.sol.soloist.server.javaimpl.db.mapping.IDataTypeHandler<Date>
Enclosing class:
Date

public static class Date.AsDate
extends rs.sol.soloist.server.javaimpl.db.mapping.handlers.AbstractDataTypeHandler<Date>

Date stored as SQL DATE (in UTC)

Author:
marko.ninkovic

Constructor Summary
Date.AsDate()
           
 
Method Summary
 rs.sol.soloist.server.javaimpl.db.model.Column.Type getColumnType()
           
 Date readValue(IDataType type, java.sql.ResultSet sqlResultSet, int columnIndex)
           
 java.lang.String toSQLString(Date value)
           
 void writeValue(java.sql.PreparedStatement sqlPStmt, int parameterIndex, Date value)
           
 
Methods inherited from class rs.sol.soloist.server.javaimpl.db.mapping.handlers.AbstractDataTypeHandler
getSQLType, getSQLType, getSQLType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Date.AsDate

public Date.AsDate()
Method Detail

getColumnType

public rs.sol.soloist.server.javaimpl.db.model.Column.Type getColumnType()

readValue

public Date readValue(IDataType type,
                      java.sql.ResultSet sqlResultSet,
                      int columnIndex)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

toSQLString

public java.lang.String toSQLString(Date value)

writeValue

public void writeValue(java.sql.PreparedStatement sqlPStmt,
                       int parameterIndex,
                       Date value)
                throws java.sql.SQLException
Throws:
java.sql.SQLException