|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.database.Field
planetj.database.field.StringOrNumberField
Nested Class Summary |
Nested classes inherited from class planetj.database.Field |
Field.FieldLocation |
Field Summary |
Fields inherited from class planetj.database.Field |
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_UNKNOWN |
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 | |
StringOrNumberField()
|
Method Summary | |
java.lang.Object |
correctValue(java.lang.Object value)
Correct the given value if needed so it is of the proper type when set on this Field. |
java.lang.Object |
createObject(java.lang.String pStringValue)
Create an object for this Field type using the given String. |
java.lang.Object |
getCopiedValue()
Gets an independent copy of this field's value. |
java.lang.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. |
java.lang.String |
getSQLValue(boolean pUseOriginalValue)
Returns the Field's name and value in SQL format. |
boolean |
isValueEqual(java.lang.Object obj)
Return a boolean indicating if the passed in Object is equal to this Fields value. |
boolean |
isValueGreaterThan(java.lang.Object obj)
Returns a boolean indicating if this field is greater than the supplied object. |
boolean |
isValueLessThan(java.lang.Object obj)
Returns a boolean indicating if this field is less then the supplied object. |
void |
setValue(java.lang.Object pValue)
Sets the current value of the Field to the specified value, and also sets the old value to the previous value. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StringOrNumberField()
Method Detail |
public java.lang.Object correctValue(java.lang.Object value)
Field
correctValue
in class Field
value
- Objectpublic java.lang.Object createObject(java.lang.String pStringValue) throws java.lang.NumberFormatException
createObject
in class Field
pStringValue
- String
java.lang.NumberFormatException
public java.lang.Object getCopiedValue()
getCopiedValue
in class Field
public java.lang.String getDefaultDatabaseValue()
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: (4/9/2002 4:42:30 PM)
getDefaultDatabaseValue
in class Field
public java.lang.String getSQLValue(boolean pUseOriginalValue) throws CMException
getSQLValue
in class Field
pUseOriginalValue
-
CMException
public boolean isValueEqual(java.lang.Object obj)
isValueEqual
in class Field
public boolean isValueGreaterThan(java.lang.Object obj)
isValueGreaterThan
in class Field
public boolean isValueLessThan(java.lang.Object obj)
isValueLessThan
in class Field
public void setValue(java.lang.Object pValue) throws CMException
setValue
in class Field
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |