net.pleso.framework.client.dal.db.types
Class DBTime

java.lang.Object
  extended by net.pleso.framework.client.dal.db.types.DBTime
All Implemented Interfaces:
IDBValue, INullable

public class DBTime
extends java.lang.Object
implements IDBValue, INullable

Database Time type


Field Summary
static java.util.Date nullValue
           
 
Constructor Summary
DBTime()
           
DBTime(java.util.Date initialValue)
           
 
Method Summary
 java.util.Date getTime()
           
 java.lang.String getValue()
          Returns string representation of current value, held in implementation.
 boolean isNull()
          Checks whether value of instance equals null.
 boolean parseValue(java.lang.String value)
          Parses string representation of value to represented type and assigns parsed value to self.
 void setNull()
          Sets instance value to null.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nullValue

public static final java.util.Date nullValue
Constructor Detail

DBTime

public DBTime()

DBTime

public DBTime(java.util.Date initialValue)
Method Detail

getValue

public java.lang.String getValue()
Description copied from interface: IDBValue
Returns string representation of current value, held in implementation.

Specified by:
getValue in interface IDBValue
Returns:
string representation of value

parseValue

public boolean parseValue(java.lang.String value)
Description copied from interface: IDBValue
Parses string representation of value to represented type and assigns parsed value to self. If string value equals null implementation must try to set itself to null.

Specified by:
parseValue in interface IDBValue
Parameters:
value - string representation of value
Returns:
true if value parsed and assigned successfully

isNull

public boolean isNull()
Description copied from interface: INullable
Checks whether value of instance equals null.

Specified by:
isNull in interface INullable
Returns:
true if instance value is null

setNull

public void setNull()
Description copied from interface: INullable
Sets instance value to null.

Specified by:
setNull in interface INullable

getTime

public java.util.Date getTime()


Copyright © 2006-2007 pleso.net crew All Rights Reserved.