|
|||||||||||
| 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.SQLOperationField
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)
| 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 java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SQLOperationField()
| Method Detail |
public Object createObject(String pStringValue)
createObject in class FieldpStringValue - String
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: (5/24/02 4:02:49 PM)
getDefaultDatabaseValue in class FieldCMException
public int getSQLType()
throws CMException
java.sql.Types
getSQLType in class FieldCMExceptionpublic boolean getValueAsBoolean()
getValueAsBoolean in class Fieldpublic byte getValueAsByte()
getValueAsByte in class Fieldpublic double getValueAsDouble()
getValueAsDouble in class Fieldpublic float getValueAsFloat()
getValueAsFloat in class Fieldpublic int getValueAsInt()
getValueAsInt in class Fieldpublic boolean isNumeric()
isNumeric in class Fieldpublic boolean isString()
isString in class Fieldpublic boolean isValueGreaterThan(Object obj)
isValueGreaterThan in class Fieldpublic boolean isValueLessThan(Object obj)
isValueLessThan in class Fieldpublic String toString()
toString in class Field
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||