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

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

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

Database BigInt type. Internally presented like special BigInt type. see Language Support However, there is no 64-bit integral type in JavaScript, so variables of type long are mapped onto JavaScript double-precision floating point values.


Field Summary
static BigInt nullValue
          Predefined BigInt null value.
 
Constructor Summary
DBBigInt()
          Constructs new DBBigInt with null value.
DBBigInt(BigInt initialValue)
          Constructs new DBBigInt with specified initial value.
 
Method Summary
 BigInt getBigInt()
           
 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 BigInt nullValue
Predefined BigInt null value.

Constructor Detail

DBBigInt

public DBBigInt()
Constructs new DBBigInt with null value.


DBBigInt

public DBBigInt(BigInt initialValue)
Constructs new DBBigInt with specified initial value.

Parameters:
initialValue - a initial value for newly constructed db value
Method Detail

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

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

getBigInt

public BigInt getBigInt()
Returns:
a BigInt value of instance


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