org.drizzle.jdbc.internal.mysql
Class MySQLValueObject

java.lang.Object
  extended by org.drizzle.jdbc.internal.common.AbstractValueObject
      extended by org.drizzle.jdbc.internal.mysql.MySQLValueObject
All Implemented Interfaces:
ValueObject

public class MySQLValueObject
extends AbstractValueObject

Contains the raw value returned from the server

Is immutable

User: marcuse Date: Feb 16, 2009 Time: 9:18:26 PM


Field Summary
 
Fields inherited from class org.drizzle.jdbc.internal.common.AbstractValueObject
dataType
 
Constructor Summary
MySQLValueObject(byte[] rawBytes, DataType dataType)
           
 
Method Summary
 java.lang.Object getObject()
           
 java.sql.Time getTime()
          Since drizzle has no TIME datatype, JDBC Time is stored in a packed integer
 
Methods inherited from class org.drizzle.jdbc.internal.common.AbstractValueObject
getBigDecimal, getBigInteger, getBinaryInputStream, getBoolean, getByte, getBytes, getDate, getDate, getDisplayLength, getDouble, getFloat, getInputStream, getInt, getLong, getPBMSStream, getShort, getString, getTime, getTimestamp, getTimestamp, isNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySQLValueObject

public MySQLValueObject(byte[] rawBytes,
                        DataType dataType)
Method Detail

getObject

public java.lang.Object getObject()
                           throws java.text.ParseException
Specified by:
getObject in interface ValueObject
Specified by:
getObject in class AbstractValueObject
Throws:
java.text.ParseException

getTime

public java.sql.Time getTime()
                      throws java.text.ParseException
Description copied from class: AbstractValueObject
Since drizzle has no TIME datatype, JDBC Time is stored in a packed integer

Specified by:
getTime in interface ValueObject
Overrides:
getTime in class AbstractValueObject
Returns:
the time
Throws:
java.text.ParseException
See Also:
Utils.packTime(long), Utils.unpackTime(int)


Copyright © 2012. All Rights Reserved.