|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.database.Field | +--planetj.database.field.LogicalField | +--planetj.database.field.BlankDisplayField
A Field which is always displayed as blank, and whose value is null. Attempting to update the contents of this field will cause an exception to be thrown.
Nested Class Summary |
Nested classes inherited from class planetj.database.Field |
Field.FieldLocation |
Field Summary |
Fields inherited from interface planetj.dataengine.security.IGuarded |
TYPE_ID_UNKNOWN, TYPE_NAME_FIELD, TYPE_NAME_SQLOPERATION, TYPE_SECURED_BY_LEVEL, TYPE_SECURED_BY_OPERATION, TYPE_UNSECURED |
Constructor Summary | |
BlankDisplayField()
|
Method Summary | |
Object |
createObject(String pStringValue)
Create an object for this Field type using the given String. |
Object |
getCopiedValue()
Gets an independent copy of this field's value. |
String |
getDefaultDatabaseValue()
Subclass must override this method and return a default value to be placed in the database when this field is Not-nullable and not required. |
String |
getDisplayValue()
Returns an empty String |
String |
getSQLValue(boolean pUseOriginalValue)
Returns the Field's value in SQL format. |
boolean |
getValueAsBoolean()
Subclasses must override this to detirmine what their boolean value is. |
String |
getValueAsString()
Returns the Field's value as a String. |
boolean |
isValueEqual(Object obj)
Return a boolean indicating if the passed in Object is equal to this Fields value. |
boolean |
isValueGreaterThan(Object obj)
Returns a boolean indicating if this field is greater than the supplied object. |
boolean |
isValueLessThan(Object obj)
Returns a boolean indicating if this field is less then the supplied object. |
Methods inherited from class planetj.database.field.LogicalField |
setRow |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BlankDisplayField()
Method Detail |
public Object createObject(String pStringValue)
createObject
in class Field
pStringValue
- Stringpublic Object getCopiedValue()
getCopiedValue
in class Field
public String getDefaultDatabaseValue() throws CMException
Example: A SS# is not required to be filled in by users, but the database does not allow nulls in that field. SocialSecurityField must override this method and return a default value like -1; Creation date: (8/26/2002 6:49:09 PM)
getDefaultDatabaseValue
in class LogicalField
CMException
public String getDisplayValue()
getDisplayValue
in class Field
public String getSQLValue(boolean pUseOriginalValue) throws CMException
getSQLValue
in class LogicalField
pUseOriginalValue
- If this is true then the value used will be this field's original value as it
was read from the database. Otherwise its current value is used.
CMException
public boolean getValueAsBoolean()
getValueAsBoolean
in class Field
public String getValueAsString()
getValueAsString
in class Field
public boolean isValueEqual(Object obj)
isValueEqual
in class Field
public boolean isValueGreaterThan(Object obj)
isValueGreaterThan
in class Field
public boolean isValueLessThan(Object obj)
isValueLessThan
in class Field
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |