rs.sol.soloist.server.builtindomains.builtindatatypes
Class DateTime.AsDateTime

java.lang.Object
  extended by rs.sol.soloist.server.javaimpl.db.mapping.handlers.AbstractDataTypeHandler<DateTime>
      extended by rs.sol.soloist.server.builtindomains.builtindatatypes.DateTime.AsDateTime
All Implemented Interfaces:
rs.sol.soloist.server.javaimpl.db.mapping.IDataTypeHandler<DateTime>
Direct Known Subclasses:
DateTime.AsDateTimeLocal
Enclosing class:
DateTime

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

Encodes DateTime as SQL DATETIME (in UTC)


Constructor Summary
DateTime.AsDateTime()
           
 
Method Summary
 rs.sol.soloist.server.javaimpl.db.model.Column.Type getColumnType()
           
 DateTime readValue(IDataType type, java.sql.ResultSet sqlResultSet, int columnIndex)
           
 java.lang.String toSQLString(DateTime value)
           
 void writeValue(java.sql.PreparedStatement sqlPStmt, int parameterIndex, DateTime 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

DateTime.AsDateTime

public DateTime.AsDateTime()
Method Detail

getColumnType

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

readValue

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

toSQLString

public java.lang.String toSQLString(DateTime value)

writeValue

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