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

java.lang.Object
  extended by net.pleso.framework.client.dal.db.types.DBString
All Implemented Interfaces:
IDBValue, INullable
Direct Known Subclasses:
DBHTMLString

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

Database String type


Field Summary
static java.lang.String nullValue
           
 
Constructor Summary
DBString()
           
DBString(java.lang.String initialValue)
           
 
Method Summary
 java.lang.String getString()
           
 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.lang.String nullValue
Constructor Detail

DBString

public DBString()

DBString

public DBString(java.lang.String 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

getString

public java.lang.String getString()


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