|
|||||||||||
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 | +--planetj.database.field.SQLAssociationField
Represents an association between two SQL tables
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 | |
SQLAssociationField()
|
Method Summary | |
boolean |
equals(Object otherField)
Tests if another field is equal to this field. |
static Object |
getAssociation(Field field)
Deprecated. replaced with getAssociation(Field, ExecutingContext) because with the executing context, user parameters can now be included in association sqls operations |
static Object |
getAssociation(Field field,
ExecutingContext ec)
Get the association from the given Field. |
static Object |
getAssociation(Operation associationOp,
Row row,
ExecutingContext ec)
Get the association from the given operation. |
Object |
getCopiedValue()
Gets an independent copy of this field's value. |
String |
getDisplayValue()
Returns the display value of this Field as a String |
String |
getSQLValue(boolean pUseOriginalValue)
Returns the Field's value in SQL format. |
Object |
getValue()
Returns the Field's current value. |
boolean |
getValueAsBoolean()
Subclasses must override this to detirmine what their boolean value is. |
boolean |
isUpdateable()
Tests if this field can be updated by the user. |
boolean |
isValueEqual(Object obj)
Return a boolean indicating if the passed in Object is equal to this Fields value. |
Methods inherited from class planetj.database.field.SQLOperationField |
createObject, getDefaultDatabaseValue, getSQLType, getValueAsByte, getValueAsDouble, getValueAsFloat, getValueAsInt, isNumeric, isString, isValueGreaterThan, isValueLessThan, toString |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SQLAssociationField()
Method Detail |
public boolean equals(Object otherField)
equals
in class Field
public static Object getAssociation(Field field) throws CMException
CMException
public Object getCopiedValue()
getCopiedValue
in class Field
public String getDisplayValue() throws CMException
getDisplayValue
in class Field
CMException
public String getSQLValue(boolean pUseOriginalValue) throws CMException
getSQLValue
in class Field
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 Object getValue()
getValue
in interface INamed
getValue
in class Field
public boolean getValueAsBoolean()
getValueAsBoolean
in class SQLOperationField
public boolean isUpdateable()
isUpdateable
in class Field
public boolean isValueEqual(Object obj)
isValueEqual
in class Field
public static Object getAssociation(Field field, ExecutingContext ec) throws CMException
field
- Field containing association to getec
- context in which the user is executing
CMException
public static Object getAssociation(Operation associationOp, Row row, ExecutingContext ec) throws CMException
associationOp
- association Operation to executerow
- Row containing possible values for the association's parametersec
- context in which the user is executing
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |