|
|||||||||||
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
planetj.database.field.StringField
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 | |
StringField()
|
Method Summary | |
java.lang.Object |
createObject(java.lang.String pStringValue)
Create an object for this Field type using the given String. |
java.lang.String |
getCSVField()
Returns the String value of the Object, that will be written to the CSV file. |
java.lang.String |
getExternalValidationKey()
Get the key that may be used to uniquely identify Field subclasses for external validation. |
boolean |
getValueAsBoolean()
Subclasses must override this to detirmine what their boolean value is. |
boolean |
isNumber()
This is a not a Number field. |
boolean |
isString()
This is a String field. |
boolean |
isValidLength(ExecutingContext ec)
Check to see if the given value is equal to this field's value. |
boolean |
isValueEqual(java.lang.Object obj,
boolean ignoreCase)
Check to see if the given value is equal to this field's value. |
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 planetj.database.field.StringOrNumberField |
correctValue, getCopiedValue, getDefaultDatabaseValue, getSQLValue, isValueEqual, isValueGreaterThan, isValueLessThan |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StringField()
Method Detail |
public java.lang.Object createObject(java.lang.String pStringValue)
createObject
in class StringOrNumberField
pStringValue
- Stringpublic java.lang.String getCSVField()
VARCHAR Enclosed by double quotation marks and are not padded to create a fixed length field.
CHAR Enclosed by double quotation marks but are padded with blanks if necessary to create a fixed length field
In a CMException was thrown, or there were problems, then [Invalid Field] will be returned Creation date: (4/22/2002 2:28:25 PM)
getCSVField
in interface ICSVField
getCSVField
in class Field
public java.lang.String getExternalValidationKey()
getExternalValidationKey
in class Field
public boolean getValueAsBoolean()
getValueAsBoolean
in class Field
public boolean isNumber()
public boolean isString()
isString
in class Field
public boolean isValidLength(ExecutingContext ec)
isValidLength
in class Field
ec
- The current executing context, which may be null
public boolean isValueEqual(java.lang.Object obj, boolean ignoreCase)
public void setValue(java.lang.Object pValue) throws CMException
setValue
in class StringOrNumberField
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |