|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--planetj.database.Field
Represents a value in a database. A field is associated with a particular library, table, row, and column in the
database. Every field has an associated FieldDescriptor
which contains metadata about
that Field (such as its name, type, length, etc).
All subclasses should have a default constructor.
Nested Class Summary | |
static class |
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 | |
Field()
|
Method Summary | |
static void |
addFieldClassForDataClass(Class pDataClass,
Class pFieldClass)
Maps a data class to a field class, so that future invocations of the getFieldClassForDataClass() method with the data class as the
argument will return the field class. |
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a listener which is informed when this field has its value changed. |
static StringBuffer |
appendSQLColumnDefinition(FieldDescriptorRow pFieldDescriptor,
DBSystem targetSystem,
StringBuffer sb)
This method should append all of the necessary information to create this field within a CREATE TABLE SQL statement. |
StringBuffer |
appendSQLNameAndValue(boolean pUseOriginalValue,
StringBuffer sb)
Appends the field's name and value in SQL format to the StringBuffer. |
StringBuffer |
appendSQLNameAndValue(boolean pUseOriginalValue,
String pOperator,
StringBuffer sb)
Appends the field's name and value in SQL format to the StringBuffer. |
void |
clearValidationExceptions()
Clears any validation exceptions that may have previously been set on this Field. |
Field |
cloneField()
Returns a clone of the Field. |
void |
commitValue()
Clears out all old values and save point values to commits current values. |
String |
concat(String[] parts)
Concatenate the field values. |
static Field |
create(String pName,
Class pFieldType)
Create and return a new Field |
static Field |
create(String pName,
int pSQLType)
Create and return a new Field |
static Field |
createFromDataType(String pName,
Class pDataType)
Create and return a new Field, based on the type of data the field should hold. |
abstract Object |
createObject(String pStringValue)
Create an object for this Field type using the given String. |
Double |
divide(String[] fieldNames)
Divide the two field values. |
boolean |
equals(Object otherField)
Tests if another field is equal to this field. |
Object |
executeGetterMethod(String methodString)
|
Object |
executeSetterMethod(String methodString,
Object value)
|
Operation |
getAssociationOperation()
Gets the data Operation of this Field's FieldDescriptor. |
Object |
getAttribute(Object key)
Get an attribute about the Field for the given key. |
Object |
getAutoUpdateValue(ExecutingContext executingContext)
Get the field's auto update value as a String. |
int |
getColumnSpan(boolean isDetails)
Get the number of columns this field should take up. |
Object |
getConfigProperty(String key,
ExecutingContext executingContext)
Get a config property for the given row. |
abstract Object |
getCopiedValue()
Gets an independent copy of this field's value. |
String |
getCSVField()
Returns the String value of the Object, that will be written to the CSV file. |
Object |
getCurrentValue(ExecutingContext ec)
Returns a value that may be retrieved from a database, current time, calculation or other source that that is dynamic. |
String |
getCurrentValueAsString(ExecutingContext ec)
Returns the value of this field as a String. |
Operation |
getDataSQLOperation()
Deprecated. replaced with getAssociationOperation() |
Date |
getDate(String[] fields)
Returns a Date that represents the Date of the 3 values passed in as a String[]. |
abstract String |
getDefaultDatabaseValue()
Subclass must override this method and return a default value to be placed in the database when this field is Non-nullable and not required. |
static String |
getDefaultExternalName(String pClassName)
Returns an the default external name to use, or null if none is specified. |
static Integer |
getDefaultUsageId(String pClassName)
Returns an the default usage id as an Integer or null Creation date: (6/26/2002 3:25:15 PM) |
Object |
getDefaultValue(ExecutingContext pContext)
Get the field's default value as a String. |
int |
getDisplayHeight()
Gets the Field's display height. |
int |
getDisplayLength()
Deprecated. replaced with getDisplayWidth() to keep consistent with what a user sees when they view the field (e.g. width and height of a field) |
int |
getDisplayOrder()
Returns the display order This information is stored in the FieldDescriptor Creation date: (6/5/2002 2:39:33 PM) |
String |
getDisplayValue()
Returns the display value of this Field as a String |
int |
getDisplayWidth()
Gets the Field's display width. |
String |
getExternalName()
|
String |
getExternalValidationKey()
Get the key that may be used to uniquely identify Field subclasses for external validation. |
StringBuffer |
getFDFData(StringBuffer pFDFData)
This returns a StringBuffer containing all necessary FDF data for this object. |
static Class |
getFieldClassForDataClass(Class pDataClass)
Gets the type of Field that is registered to hold a type of data |
FieldDescriptorRow |
getFieldDescriptor()
Returns the FieldDescriptorRow associated with this field. |
String |
getFieldDescriptorSource()
Gets the field descriptor source location of this field. |
IFieldIncrementor |
getFieldIncrementor()
By default, Fields will use the same incrementor for their values. |
int |
getIndex()
Returns the index of this Field within the Row the Field belongs to. |
Library |
getLibrary()
Returns the Library of the Table this Field belongs to. |
String |
getLibraryName()
Returns the name of the library this Field's table belongs to. |
int |
getMaxLength()
Returns the max length of this field. |
int |
getMaxLength(FileDescriptor fled)
Returns the max length of this field. |
String |
getMetaDataSystemAlias()
Gets the alias of the system this Field's Table's Library's DBSystem uses for retrieving its meta data. |
String |
getName()
|
Object |
getOldValue()
Returns the previous value the Field use to have. |
String |
getOldValueAsString()
Returns the Field's old value as a String (or the field's current value as a String if it doesn't have an old value). |
RowCollection |
getPossibleValues()
Returns a RowCollection containing the possible values for the Field. |
RowCollection |
getPossibleValues(Field fld)
Returns a RowCollection containing the possible values for the Field. |
int |
getPreferredDisplayLength()
Gets the column's preferred display size. |
static Class |
getPreferredJavaDataType(int pSQLType)
Gets the preferred Java class for the SQL type. |
Row |
getRow()
Returns the Row this Field belongs to. |
int |
getSecuredTypeId()
Gets the id of the secured type. |
String |
getSecuredTypeName()
Gets the secured type name for this Field. |
int |
getSecurityType()
Gets the security type of this Field. |
String |
getSQLColumnDefinition()
This method should return all of the necessary information to create this field within a CREATE TABLE SQL statement. |
static String |
getSQLColumnDefinition(FieldDescriptorRow pFieldDescriptor,
DBSystem targetSystem)
This method should return all of the necessary information to create this field within a CREATE TABLE SQL statement. |
String |
getSQLNameAndDefaultValue()
Gets the Field's name and value in SQL format: "-NAME- = -VALUE-" where -NAME- is the name of this field and -VALUE- is this field's default value getDefaultDatabaseValue(). |
String |
getSQLNameAndValue()
Gets the Field's name and value in SQL format: "-NAME- = -VALUE-" where -NAME- is the name of this field and -VALUE- is this field's value. |
String |
getSQLNameAndValue(boolean pUseOriginalValue)
Gets the Field's name and value in SQL format: "-NAME- = -VALUE-" where -NAME- is the name of this field and -VALUE- is this field's value. |
Object |
getSQLObject()
Gets this field's value as an Object in SQL format. |
int |
getSQLType()
Gets the SQL type of the described fields. |
static int |
getSQLType(String sqlTypeName)
|
String |
getSQLTypeName()
getSQLTypeName method comment. |
static String |
getSQLTypeName(int sqlType)
|
String |
getSQLValue()
Returns the Field's value in SQL format. |
abstract String |
getSQLValue(boolean pUseOriginalValue)
Returns the Field's value in SQL format. |
String |
getSQLValue(boolean useOriginalValue,
boolean includeQuotes)
This method is a temporary solution to getting the field's value without appending single quote marks at the beginning and end of the field's value if it normally would have quotes. |
Object |
getStaticAttribute(Object key)
|
String |
getStyleClass(ExecutingContext ec)
Get a Field's style. |
String |
getStyleClass(String value,
String displayValue,
ExecutingContext ec)
Get a Field's style. |
DBSystem |
getSystem()
Returns the DBSystem this Fields Table belongs to (its Table gets its DBSystem from its Library). |
String |
getSystemAlias()
Returns the system alias for the Field's Table. |
String |
getSystemURL()
Returns the system url this Fields Table's DBSystem has (its Table gets the system url from the Library which gets it from the DBSystem). |
Table |
getTable()
Returns the Table to which this Field belongs. |
String |
getTableName()
Returns the name of the Table this Field belongs to. |
ValidationExceptionCollection |
getValidationExceptions()
This is lazy inited so if you want to see if this field has any ValidationException, you must check the size() of this List Creation date: (4/5/2002 2:01:13 PM) |
String |
getValidationInvalidLengthString()
This method will return the long description of why this field's length is invalid and possible actions or examples we could put in this field. |
String |
getValidationInvalidMinLengthString()
This method will return the long description of why this field's minimum length is invalid and possible actions or examples we could put in this field. |
String |
getValidationInvalidValueString()
This method will return the long description of why this field's value is invalid and possible actions or examples we could put in this field. |
String |
getValidationInvalidValueString(String givenValue)
This method will return the long description of why this field's value is invalid and possible actions or examples we could put in this field. |
String |
getValidationRequiredString()
This method will return the long description of why this field is required and possible actions or examples we could put in this field. |
String |
getValidValuesString()
This method should be overriden by subclasses that want to display possible or valid values to a user Example PhoneNumber would return "Examples: (123) 456-7890, 1234567890, 123-456-78890" Creation date: (4/5/2002 2:52:46 PM) |
Object |
getValue()
Returns the Field's current value. |
abstract boolean |
getValueAsBoolean()
Subclasses must override this to determine what their boolean value is. |
byte |
getValueAsByte()
Returns a primitive that represents the value in the specified field. |
Date |
getValueAsDate()
Returns a Date 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. |
String |
getValueAsFullLengthString()
Returns the Field's value as a String. |
int |
getValueAsInt()
Returns a primitive that represents the value in the specified field. |
long |
getValueAsLong()
Returns a primitive that represents the value in the specified field. |
Number |
getValueAsNumber()
Returns a Number that represents the value in the specified field. |
short |
getValueAsShort()
Returns a primitive that represents the value in the specified field. |
String |
getValueAsString()
Returns the Field's value as a String. |
StringBuffer |
getXMLData(StringBuffer pXMLData)
This returns a StringBuffer containing all necessary XML data for this object. |
String |
getXMLTag()
This returns a String representing the XML tag for this field Creation date: (1/21/2002 8:16:25 PM) |
static short |
guessFieldClassProbability(FieldDescriptorRow pFDRow,
RowCollection pSampleData)
Subclasses will override to take an educated guess at what the Field Class will be for this FD Row. |
void |
handlePossibleValueOperation(ExecutingContext ec)
Creation date: (4/23/2003 6:56:22 AM) |
boolean |
hasMultipleStyleClasses(ExecutingContext ec)
Check if the given Field possibly has more than one style class. |
boolean |
hasOldValue()
Returns wheter or not this Field has an old value. |
boolean |
hasPossibleValuesKeyClassOrOp()
This method simply tells whether or not there is a value in the PV_LV_ID column. |
boolean |
hasPossibleValuesSQLOperation()
Checks to see if the field has an associated PossibleValues Op Creation date: (4/28/2003 2:43:11 PM) |
boolean |
hasPossibleValuesSQLOperation(ExecutingContext ec)
Checks to see if the field has an associated PossibleValues Op Creation date: (4/28/2003 2:43:11 PM) |
boolean |
hasValue()
Returns wheter or not this Field's has a value. |
boolean |
isApplicable(ExecutingContext ec)
Tests if this field is applicable base on the current executing context |
boolean |
isAuthorizedForEdit(ExecutingContext pEc)
Tests if user can edit this field. |
boolean |
isAuthorizedForRead(ExecutingContext pEc)
Tests if user can read this field. |
boolean |
isAutoUpdateValue()
Returns whether or not this field's value is provided dynamically on update and therefore must have special consideration for updates. |
boolean |
isBoolean()
Subclasses should override to change the value |
boolean |
isChanged()
Returns wheter or not this Field's value has changed. |
boolean |
isContainsValue()
Tests if this field has a value other than null or an empty string |
boolean |
isCurrentValueField()
Returns whether or not this field's value is dynamic. |
static boolean |
isCurrentValueString(String value)
Return true is this string is the same as the ICurrentValueField.CURRENT_VALUE. |
boolean |
isDate()
Subclasses should override to change the value |
boolean |
isDecimalSQLType()
Returns true if the SQLType is a decimal according to Types |
static boolean |
isDecimalSQLType(int pSQLType)
Returns true if the SQL Type is a decimal according to Types Creation date: (6/20/2002 1:41:00 PM) |
boolean |
isDefaultValue()
Returns whether or not this field's value is provided dynamically on insert and therefore must have special consideration for inserts. |
boolean |
isDerived()
Returns whether or not this Field is a derived field. |
boolean |
isDisplayable(ExecutingContext ec)
Check to see if this Field is displayable. |
boolean |
isFieldContentDisplayable()
Tests if the contents of the field should be displayed |
boolean |
isFieldValueDatabaseDefault()
Returns true if the value of this field is the same as we default this field to in the database. |
boolean |
isFieldValueNotBlank()
Return a boolean indicating if the value is not blank. |
boolean |
isFieldValueNull()
Return a boolean indicating if the value of this Field is Null |
boolean |
isFileUpload()
|
boolean |
isGuarded()
Check whether this Field is protected (secured) |
boolean |
isHelpTextPresent()
Tests if this field has help text |
boolean |
isInitialized()
Returns wheter or not this Field's initial value has been set. |
boolean |
isNumeric()
Returns true if this class is a subclass of Number Creation date: (4/9/2002 2:33:50 PM) |
boolean |
isNumericSQLType()
Returns true if the SQL type is a numeric value in Types |
static boolean |
isNumericSQLType(int pSQLType)
Returns true if the SQL Type is numeric according to Types Creation date: (6/20/2002 1:41:00 PM) |
boolean |
isPassword()
Subclasses should override to change the value. |
boolean |
isPhysical()
Tests if a field could be physically present in the database. |
boolean |
isPossibleValuesSearch()
Insert the method's description here. |
boolean |
isReadOnly()
Tests if this field can be updated |
boolean |
isReadOnly(ExecutingContext pContext)
Tests whether or not this field is read only. |
boolean |
isRequired()
Tests whether or not this field is required. |
boolean |
isRequired(ExecutingContext pContext)
Tests whether or not this field is required. |
boolean |
isRequiredOnSearch(ExecutingContext ec)
Tests whether or not this field is required. |
boolean |
isSkeleton()
Tests if this field is a skeleton field. |
boolean |
isString()
Subclasses should override to change the value |
boolean |
isStringSQLType()
Returns true if the SQL Type is a character according to Types |
static boolean |
isStringSQLType(int pSQLType)
Returns true if the SQL Type is a character according to Types Creation date: (6/20/2002 1:41:00 PM) |
boolean |
isTime()
Subclasses should override to change the value |
boolean |
isUpdateable()
Tests if this field can be updated by the user. |
boolean |
isValidationRequiredForAutoPopulate(ExecutingContext pEC)
Insert the method's description here. |
boolean |
isValidLength()
Deprecated. (7/21/2003 11:45:58 AM) replaced with isValidLength(ExecutingContext) |
boolean |
isValidLength(ExecutingContext ec)
Validate this Field based on its max length attribute. |
boolean |
isValidMinLength(ExecutingContext ec)
Validate this Field based on its minLength attribute that is set as a FieldClass parameter. |
boolean |
isValidRequired()
Deprecated. (7/21/2003 11:45:58 AM) replaced with isValidRequired(ExecutingContext) |
boolean |
isValidRequired(ExecutingContext ec)
Validate this Field based on its required attribute. |
boolean |
isValidValue()
Deprecated. (7/21/2003 11:45:58 AM) replaced with isValidValue(ExecutingContext) |
boolean |
isValidValue(ExecutingContext ec)
Validate this Field value. |
abstract boolean |
isValueEqual(Object obj)
Return a boolean indicating if the passed in Object is equal to this Fields value. |
boolean |
isValueEqualToString(String stringValue)
Creates the proper Object for this Field from the given String and checks to see if it is equal to this Field's value. |
abstract boolean |
isValueGreaterThan(Object obj)
Returns a boolean indicating if this field is greater than the supplied object. |
abstract boolean |
isValueLessThan(Object obj)
Returns a boolean indicating if this field is less then the supplied object. |
boolean |
lessThan(Object obj)
Deprecated. Use the isValueLessThan() method instead |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener that was added via the addPropertyChangeListener() method. |
Field |
rollbackChanges()
Undo any changes that have been made to this Field since it was read from or written to the database. |
void |
setAttribute(Object key,
Object value)
Set the given attribute about this Field for the given key. |
void |
setChanged(boolean isChanged)
Set whether or not this Field has changed. |
void |
setClonedValues(Object pValue,
Object pOldValue)
This method should only be called when cloning a Field. |
void |
setDate(String[] fields,
Object value)
Sets the values of three fields for the year, month, and day of a Date that resulted from a derived field. |
void |
setFieldContentDisplayable(boolean newFieldContentDisplayable)
Insert the method's description here. |
void |
setFieldDescriptor(FieldDescriptorRow pFD)
Sets the FieldDescriptorRow associated with this field. |
void |
setInitialValue(Object value)
!!DA WK (7/14/2003 9:53:04 AM) |
void |
setInitialValueAsString(String value)
Create an object for the Field's SQL type. |
void |
setMaxLength(int length)
Sets the maximum length of this field's contents. |
void |
setName(String pName)
Sets this Field's name. |
void |
setRow(Row pRow)
Sets the Row this Field belongs to. |
void |
setSavepoint()
Sets the current value as the save point for this Field. |
void |
setSQLType(int pSQLType)
Sets the SQL type of the described fields. |
void |
setSQLTypeName(String pSQLTypeName)
setSQLTypeName method comment. |
void |
setStaticAttribute(Object key,
Object value)
|
void |
setTable(Table pTable)
Sets this Fields Table to which this Field belongs. |
void |
setValue(double pDouble)
Sets the current value of the Field to the specified value, and also sets the old value to the previous value. |
void |
setValue(long pLong)
Sets the current value of the Field to the specified value, and also sets the old value to the previous value. |
void |
setValue(Object pValue)
Sets the current value of the Field to the specified value, and also sets the old value to the previous value. |
void |
setValueAsString(String pStringValue)
Create an object for the Field's SQL type. |
void |
setValueToDefault(ExecutingContext ec)
Sets the fields value back to the default value Creation date: Jun 24, 2004 - 3:14:48 PM |
String |
toString()
Returns the String representation of this Field. |
String |
toUpperCase()
This method will UPPERCASE this fields value if it is stored in the databse as a Char or it is a StringField. |
boolean |
validate(ExecutingContext ec)
Validate this Field based on it's configuration and value. |
boolean |
validate(ExecutingContext ec,
Principal pUser)
Deprecated. by WK on (8/9/2003 9:30:03 AM) because the ExecutingContext contains the user. Replaced with validate(ExecutingContext). This method will no longer be supported as of WOW 7.0. |
boolean |
validate(int pOperation,
Principal pUser)
Deprecated. Use the validate() method which takes in an ExecutingContext |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Field()
Method Detail |
public static void addFieldClassForDataClass(Class pDataClass, Class pFieldClass) throws CMException
getFieldClassForDataClass()
method with the data class as the
argument will return the field class. The default data types (String, Timestamp, and numbers) are already
mapped, so this method only needs to be invoked to add special subclasses of Field to the mapping.
pDataClass
- The type of data the specified type of field should holdpFieldClass
- The type of field that should hold the specified type of data. This must be a
subclass of Field.
CMException
public void addPropertyChangeListener(PropertyChangeListener listener)
public static StringBuffer appendSQLColumnDefinition(FieldDescriptorRow pFieldDescriptor, DBSystem targetSystem, StringBuffer sb) throws DataEngineException
DataEngineException
public StringBuffer appendSQLNameAndValue(boolean pUseOriginalValue, String pOperator, StringBuffer sb) throws CMException
pUseOriginalValue
-
CMException
public StringBuffer appendSQLNameAndValue(boolean pUseOriginalValue, StringBuffer sb) throws CMException
pUseOriginalValue
-
CMException
public void clearValidationExceptions()
public Field cloneField() throws CMException
CMException
public void commitValue()
public String concat(String[] parts) throws CMException
CMException
public static Field create(String pName, int pSQLType) throws CMException
pName
- The name of the fieldpSQLType
- The type of data the field will hold. This should be a value from the java.sql.Types class.
CMException
public static Field create(String pName, Class pFieldType) throws CMException
pName
- The name of the fieldpFieldType
- The type of field to create
CMException
public static Field createFromDataType(String pName, Class pDataType) throws CMException
skeleton
fields.
pName
- The name of the field
CMException
public abstract Object createObject(String pStringValue) throws CMException
pStringValue
- String
CMException
public Double divide(String[] fieldNames) throws CMException
fieldNames
- names of two fields to divide
CMException
public boolean equals(Object otherField)
equals
in class Object
public Object executeGetterMethod(String methodString)
public Object executeSetterMethod(String methodString, Object value)
public Operation getAssociationOperation() throws CMException
CMException
public Object getAttribute(Object key)
public Object getAutoUpdateValue(ExecutingContext executingContext) throws CMException
CMException
public int getColumnSpan(boolean isDetails)
isDetails
- whether or not its details or results table
being generatedpublic final Object getConfigProperty(String key, ExecutingContext executingContext)
public abstract Object getCopiedValue()
public String getCSVField()
In a CMException was thrown, or there were problems, then [Invalid Field] will be returned Creation date: (12/6/2001 2:31:28 AM)
getCSVField
in interface ICSVField
public Object getCurrentValue(ExecutingContext ec) throws CMException
CMException
public String getCurrentValueAsString(ExecutingContext ec) throws CMException
CMException
public Operation getDataSQLOperation() throws CMException
CMException
public Date getDate(String[] fields) throws DataEngineException
DataEngineException
public abstract 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: (4/9/2002 4:09:11 PM)
CMException
public static String getDefaultExternalName(String pClassName)
public static Integer getDefaultUsageId(String pClassName)
public Object getDefaultValue(ExecutingContext pContext) throws CMException
CMException
public int getDisplayHeight() throws CMException
CMException
public int getDisplayLength() throws CMException
CMException
public int getDisplayOrder()
public String getDisplayValue() throws CMException
CMException
public int getDisplayWidth() throws CMException
CMException
public String getExternalName() throws CMException
getExternalName
in interface IExternallyNamed
CMException
public String getExternalValidationKey()
public StringBuffer getFDFData(StringBuffer pFDFData)
getFDFData
in interface IFDFObject
public static Class getFieldClassForDataClass(Class pDataClass)
pDataClass
- The type of data the field should hold
public FieldDescriptorRow getFieldDescriptor() throws CMException
CMException
public String getFieldDescriptorSource()
public IFieldIncrementor getFieldIncrementor()
public int getIndex()
public Library getLibrary()
public String getLibraryName()
public int getMaxLength() throws CMException
CMException
public int getMaxLength(FileDescriptor fled) throws CMException
CMException
public String getMetaDataSystemAlias()
public String getName()
getName
in interface INamed
public Object getOldValue()
public String getOldValueAsString()
public RowCollection getPossibleValues() throws CMException
CMException
public RowCollection getPossibleValues(Field fld) throws CMException
fld
- Field
CMException
public int getPreferredDisplayLength() throws CMException
CMException
public static Class getPreferredJavaDataType(int pSQLType) throws CMException
CMException
public Row getRow()
public int getSecuredTypeId()
getSecuredTypeId
in interface IGuarded
public String getSecuredTypeName()
getSecuredTypeName
in interface IGuarded
public int getSecurityType()
getSecurityType
in interface IGuarded
public String getSQLColumnDefinition() throws CMException
CMException
public static String getSQLColumnDefinition(FieldDescriptorRow pFieldDescriptor, DBSystem targetSystem) throws DataEngineException
DataEngineException
public String getSQLNameAndDefaultValue() throws CMException
CMException
public String getSQLNameAndValue() throws CMException
CMException
public String getSQLNameAndValue(boolean pUseOriginalValue) throws CMException
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 getSQLObject() throws CMException
CMException
public int getSQLType() throws CMException
java.sql.Types
CMException
public static int getSQLType(String sqlTypeName)
public String getSQLTypeName() throws CMException
CMException
public static String getSQLTypeName(int sqlType)
public String getSQLValue() throws CMException
CMException
public abstract String getSQLValue(boolean pUseOriginalValue) throws CMException
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 String getSQLValue(boolean useOriginalValue, boolean includeQuotes) throws CMException
CMException
public Object getStaticAttribute(Object key)
public String getStyleClass(String value, String displayValue, ExecutingContext ec)
ec
- current context in which code is executing
public String getStyleClass(ExecutingContext ec) throws CMException
ec
- current context in which code is executing
CMException
public DBSystem getSystem()
public String getSystemAlias()
public String getSystemURL()
public Table getTable()
public String getTableName()
public ValidationExceptionCollection getValidationExceptions()
public String getValidationInvalidLengthString() throws CMException
CMException
public String getValidationInvalidMinLengthString() throws CMException
CMException
public String getValidationInvalidValueString() throws CMException
CMException
public String getValidationInvalidValueString(String givenValue) throws CMException
CMException
public String getValidationRequiredString() throws CMException
CMException
public String getValidValuesString() throws CMException
CMException
public Object getValue()
getValue
in interface INamed
public abstract boolean getValueAsBoolean()
public byte getValueAsByte()
public Date getValueAsDate()
public double getValueAsDouble()
public float getValueAsFloat()
public String getValueAsFullLengthString() throws CMException
CMException
public int getValueAsInt()
public long getValueAsLong()
public Number getValueAsNumber()
public short getValueAsShort()
public String getValueAsString()
public StringBuffer getXMLData(StringBuffer pXMLData)
getXMLData
in interface IXMLObject
public String getXMLTag()
public static short guessFieldClassProbability(FieldDescriptorRow pFDRow, RowCollection pSampleData)
public void handlePossibleValueOperation(ExecutingContext ec) throws CMException
ec
- planetj.dataengine.ExecutingContext
CMException
public boolean hasMultipleStyleClasses(ExecutingContext ec)
ec
- current context in which code is executing
public boolean hasOldValue()
public boolean hasPossibleValuesKeyClassOrOp()
public boolean hasPossibleValuesSQLOperation()
public boolean hasPossibleValuesSQLOperation(ExecutingContext ec)
public boolean hasValue()
public boolean isApplicable(ExecutingContext ec) throws CMException
CMException
public boolean isAuthorizedForEdit(ExecutingContext pEc) throws CMException
CMException
public boolean isAuthorizedForRead(ExecutingContext pEc) throws CMException
CMException
public boolean isAutoUpdateValue()
public boolean isBoolean()
public boolean isChanged()
public boolean isContainsValue()
public boolean isCurrentValueField()
public static boolean isCurrentValueString(String value)
public boolean isDate()
public final boolean isDecimalSQLType()
public static final boolean isDecimalSQLType(int pSQLType)
public boolean isDefaultValue()
public boolean isDerived() throws CMException
CMException
public boolean isDisplayable(ExecutingContext ec) throws CMException
ec
- context in which code is running.
CMException
public boolean isFieldContentDisplayable()
public boolean isFieldValueDatabaseDefault() throws CMException
CMException
public boolean isFieldValueNotBlank()
public boolean isFieldValueNull()
public boolean isFileUpload()
public boolean isGuarded()
isGuarded
in interface IGuarded
public boolean isHelpTextPresent()
public boolean isInitialized()
public boolean isNumeric()
public final boolean isNumericSQLType()
public static final boolean isNumericSQLType(int pSQLType)
public boolean isPassword()
public boolean isPhysical() throws CMException
CMException
public boolean isPossibleValuesSearch() throws CMException
CMException
public boolean isReadOnly() throws CMException
CMException
public boolean isReadOnly(ExecutingContext pContext)
pContext
- The current executing context, which may be nullpublic boolean isRequired()
public boolean isRequired(ExecutingContext pContext)
pContext
- The current executing context, which may be nullpublic boolean isRequiredOnSearch(ExecutingContext ec)
ec
- The current executing context, which may be nullpublic boolean isSkeleton()
Row.setFieldValue()
method is inovked, and no field with the
specified name exists.
public boolean isString()
public final boolean isStringSQLType()
public static final boolean isStringSQLType(int pSQLType)
public boolean isTime()
public boolean isUpdateable()
public boolean isValidationRequiredForAutoPopulate(ExecutingContext pEC)
pEC
- planetj.dataengine.ExecutingContext
public final boolean isValidLength()
public boolean isValidLength(ExecutingContext ec)
ec
- The current executing context, which may be null
public boolean isValidMinLength(ExecutingContext ec) throws CMException
ec
- The current executing context, which may be null
CMException
- if FieldDescriptor cannot be obtainedpublic final boolean isValidRequired()
public boolean isValidRequired(ExecutingContext ec)
ec
- The current executing context, which may be null
public final boolean isValidValue() throws CMException
CMException
public boolean isValidValue(ExecutingContext ec) throws CMException
ec
- The executing context, which may be null
CMException
public abstract boolean isValueEqual(Object obj)
public boolean isValueEqualToString(String stringValue) throws CMException
CMException
public abstract boolean isValueGreaterThan(Object obj)
public abstract boolean isValueLessThan(Object obj)
public boolean lessThan(Object obj)
public void removePropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener()
method.
public Field rollbackChanges() throws CMException
CMException
public void setAttribute(Object key, Object value)
key
- used to identify the object in the Map.value
- Object to be stored as an attribute.public void setChanged(boolean isChanged)
public void setClonedValues(Object pValue, Object pOldValue)
public void setDate(String[] fields, Object value) throws CMException
value
- Object
CMException
public void setFieldContentDisplayable(boolean newFieldContentDisplayable)
newFieldContentDisplayable
- booleanpublic void setFieldDescriptor(FieldDescriptorRow pFD) throws CMException
pFD
- FieldDescriptorRow
CMException
public void setInitialValue(Object value) throws CMException
CMException
public void setInitialValueAsString(String value) throws CMException
CMException
public void setMaxLength(int length)
public void setName(String pName)
pName
- Stringpublic void setRow(Row pRow) throws DataEngineException
DataEngineException
public void setSavepoint()
public void setSQLType(int pSQLType) throws CMException
java.sql.Types
CMException
public void setSQLTypeName(String pSQLTypeName) throws CMException
CMException
public void setStaticAttribute(Object key, Object value)
public void setTable(Table pTable)
pTable
- Tablepublic void setValue(double pDouble) throws CMException
CMException
public void setValue(long pLong) throws CMException
CMException
public void setValue(Object pValue) throws CMException
CMException
public void setValueAsString(String pStringValue) throws CMException
pStringValue
- String
CMException
public String toString()
toString
in class Object
public String toUpperCase() throws CMException
CMException
public boolean validate(int pOperation, Principal pUser) throws CMException
CMException
public void setValueToDefault(ExecutingContext ec) throws CMException
CMException
public boolean validate(ExecutingContext ec) throws CMException
ec
- current context in which application is executing
CMException
public boolean validate(ExecutingContext ec, Principal pUser) throws CMException
CMException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |