planetj.database.field
Class SQLOperationField

java.lang.Object
  |
  +--planetj.database.Field
        |
        +--planetj.database.field.SQLOperationField
All Implemented Interfaces:
Cloneable, ICSVField, IExternallyNamed, IFDFObject, IGuarded, INamed, IXMLObject, Serializable
Direct Known Subclasses:
SQLAssociationField

public abstract class SQLOperationField
extends Field

A Field whose data is the result of an SQLOperation. Fields of this type are logical fields that are not directly persisted in the database. Creation date: (5/24/02 4:02:48 PM)

See Also:
Serialized Form

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
SQLOperationField()
           
 
Method Summary
 Object createObject(String pStringValue)
          Create an object for this Field type using the given String.
 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.
 int getSQLType()
          Gets the SQL type of the described fields.
 boolean getValueAsBoolean()
          Subclasses must override this to detirmine what their boolean value is.
 byte getValueAsByte()
          Returns a primitive that represents the value in the specified field.
 double getValueAsDouble()
          Returns a primitive that represents the value in the specified field.
 float getValueAsFloat()
          Returns a primitive that represents the value in the specified field.
 int getValueAsInt()
          Returns a primitive that represents the value in the specified field.
 boolean isNumeric()
          Returns true if this class is a subclass of Number Creation date: (4/9/2002 2:33:50 PM)
 boolean isString()
          Subclasses should override to change the 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.
 String toString()
          Returns the String representation of this Field.
 
Methods inherited from class planetj.database.Field
addFieldClassForDataClass, addPropertyChangeListener, appendSQLColumnDefinition, appendSQLNameAndValue, appendSQLNameAndValue, clearValidationExceptions, cloneField, commitValue, concat, create, create, createFromDataType, divide, equals, executeGetterMethod, executeSetterMethod, getAssociationOperation, getAttribute, getAutoUpdateValue, getColumnSpan, getConfigProperty, getCopiedValue, getCSVField, getCurrentValue, getCurrentValueAsString, getDataSQLOperation, getDate, getDefaultExternalName, getDefaultUsageId, getDefaultValue, getDisplayHeight, getDisplayLength, getDisplayOrder, getDisplayValue, getDisplayWidth, getExternalName, getExternalValidationKey, getFDFData, getFieldClassForDataClass, getFieldDescriptor, getFieldDescriptorSource, getFieldIncrementor, getIndex, getLibrary, getLibraryName, getMaxLength, getMaxLength, getMetaDataSystemAlias, getName, getOldValue, getOldValueAsString, getPossibleValues, getPossibleValues, getPreferredDisplayLength, getPreferredJavaDataType, getRow, getSecuredTypeId, getSecuredTypeName, getSecurityType, getSQLColumnDefinition, getSQLColumnDefinition, getSQLNameAndDefaultValue, getSQLNameAndValue, getSQLNameAndValue, getSQLObject, getSQLType, getSQLTypeName, getSQLTypeName, getSQLValue, getSQLValue, getSQLValue, getStaticAttribute, getStyleClass, getStyleClass, getSystem, getSystemAlias, getSystemURL, getTable, getTableName, getValidationExceptions, getValidationInvalidLengthString, getValidationInvalidMinLengthString, getValidationInvalidValueString, getValidationInvalidValueString, getValidationRequiredString, getValidValuesString, getValue, getValueAsDate, getValueAsFullLengthString, getValueAsLong, getValueAsNumber, getValueAsShort, getValueAsString, getXMLData, getXMLTag, guessFieldClassProbability, handlePossibleValueOperation, hasMultipleStyleClasses, hasOldValue, hasPossibleValuesKeyClassOrOp, hasPossibleValuesSQLOperation, hasPossibleValuesSQLOperation, hasValue, isApplicable, isAuthorizedForEdit, isAuthorizedForRead, isAutoUpdateValue, isBoolean, isChanged, isContainsValue, isCurrentValueField, isCurrentValueString, isDate, isDecimalSQLType, isDecimalSQLType, isDefaultValue, isDerived, isDisplayable, isFieldContentDisplayable, isFieldValueDatabaseDefault, isFieldValueNotBlank, isFieldValueNull, isFileUpload, isGuarded, isHelpTextPresent, isInitialized, isNumericSQLType, isNumericSQLType, isPassword, isPhysical, isPossibleValuesSearch, isReadOnly, isReadOnly, isRequired, isRequired, isRequiredOnSearch, isSkeleton, isStringSQLType, isStringSQLType, isTime, isUpdateable, isValidationRequiredForAutoPopulate, isValidLength, isValidLength, isValidMinLength, isValidRequired, isValidRequired, isValidValue, isValidValue, isValueEqual, isValueEqualToString, lessThan, removePropertyChangeListener, rollbackChanges, setAttribute, setChanged, setClonedValues, setDate, setFieldContentDisplayable, setFieldDescriptor, setInitialValue, setInitialValueAsString, setMaxLength, setName, setRow, setSavepoint, setSQLType, setSQLTypeName, setStaticAttribute, setTable, setValue, setValue, setValue, setValueAsString, setValueToDefault, toUpperCase, validate, validate, validate
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SQLOperationField

public SQLOperationField()
Method Detail

createObject

public Object createObject(String pStringValue)
Create an object for this Field type using the given String.

Specified by:
createObject in class Field
Parameters:
pStringValue - String

getDefaultDatabaseValue

public String getDefaultDatabaseValue()
                               throws CMException
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.

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: (5/24/02 4:02:49 PM)

Specified by:
getDefaultDatabaseValue in class Field
CMException

getSQLType

public int getSQLType()
               throws CMException
Gets the SQL type of the described fields. SQL types are defined in java.sql.Types

Overrides:
getSQLType in class Field
CMException

getValueAsBoolean

public boolean getValueAsBoolean()
Subclasses must override this to detirmine what their boolean value is. Returns a primitive that represents the value in the specified field.

Specified by:
getValueAsBoolean in class Field
Returns:
boolean

getValueAsByte

public byte getValueAsByte()
Returns a primitive that represents the value in the specified field.

Overrides:
getValueAsByte in class Field
Returns:
byte

getValueAsDouble

public double getValueAsDouble()
Returns a primitive that represents the value in the specified field.

Overrides:
getValueAsDouble in class Field
Returns:
double

getValueAsFloat

public float getValueAsFloat()
Returns a primitive that represents the value in the specified field.

Overrides:
getValueAsFloat in class Field
Returns:
float

getValueAsInt

public int getValueAsInt()
Returns a primitive that represents the value in the specified field.

Overrides:
getValueAsInt in class Field
Returns:
int

isNumeric

public boolean isNumeric()
Returns true if this class is a subclass of Number Creation date: (4/9/2002 2:33:50 PM)

Overrides:
isNumeric in class Field

isString

public boolean isString()
Subclasses should override to change the value

Overrides:
isString in class Field
Returns:
boolean

isValueGreaterThan

public boolean isValueGreaterThan(Object obj)
Returns a boolean indicating if this field is greater than the supplied object. the Row the Field belongs to. Subclasses should override and implement as appropriate.

Specified by:
isValueGreaterThan in class Field
Returns:
boolean

isValueLessThan

public boolean isValueLessThan(Object obj)
Returns a boolean indicating if this field is less then the supplied object. the Row the Field belongs to. Subclasses should override and return the appropriate response.

Specified by:
isValueLessThan in class Field
Returns:
boolean

toString

public String toString()
Returns the String representation of this Field.

Overrides:
toString in class Field
Returns:
String