|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rjw.dc.core.objects.DataCrowObject
Base class for all Data Crow objects. Here the fields, values and required fields are stored. Checks are done to garantee uniqueness and validity of the records. Objects which extend this class need to override the save and load methods
Field Summary | |
static int |
_ID
The record ID |
Method Summary | |
boolean |
checkIntegrity(boolean update)
Checks if the values are unique and if all the required fields have been filled |
void |
clearValues()
|
void |
delete(RequestorCollection requestors)
|
int[] |
getFieldIndices()
|
java.lang.String |
getFieldName(int columnIndex)
|
java.lang.String[] |
getFieldNames()
Returns all the database field names |
int |
getFieldType(int index)
|
int[] |
getFieldTypes()
Returns all the database field names |
int[] |
getHiddenFields()
|
java.lang.String |
getLabel(int columnIndex)
|
java.lang.String[] |
getLabels()
|
int |
getMaxFieldLength(int columnIndex)
|
int[] |
getMaxFieldLengths()
|
java.lang.String |
getModuleName()
|
int[] |
getRequiredFields()
Returns the required field names |
boolean |
getSilence()
Indicates if queries should display output return (boolean) show output y/n |
java.lang.String |
getTableName()
Returns the tablename |
java.lang.String |
getUnfilledRequiredFields()
Checks to see whether al required fields have been filled |
java.lang.Object |
getValue(int iField)
Returns the value of a field |
java.lang.Object[] |
getValues()
Returns all values |
int[] |
getVisibleFields()
|
java.lang.Object[] |
getVisibleValues()
|
boolean |
isAmazonUpdateAllowed()
|
boolean |
isHidden(int field)
|
boolean |
isImdbUpdateAllowed()
|
boolean |
isRequired(int field)
|
boolean |
isUnique(DataCrowObject o,
boolean bUpdateQuery)
Checks to see whether the record already exists or not |
void |
load(QueryOptions options,
RequestorCollection requestors)
Loads records. |
void |
saveNew(RequestorCollection requestors)
Inserts a new record. |
void |
saveUpdate(RequestorCollection requestors)
Updates a record. |
static void |
setAlwaysGenerateID(boolean alwaysGenerateID)
|
void |
setSilence(boolean silence)
Disables the output of this query to the log and log screen |
void |
setUIRowNumber(int row)
|
void |
setValidation(boolean validate)
Specifies if values should be validated |
void |
setValue(int iField,
java.lang.Object value)
Sets a value for the given field |
abstract void |
setValues(java.lang.Object[] row)
|
QueryCondition |
toQueryCondition(boolean select)
Creates a query condition for select statements by using the field names and their values |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int _ID
Method Detail |
public boolean isHidden(int field)
public boolean isRequired(int field)
public int[] getHiddenFields()
public int[] getVisibleFields()
public java.lang.Object[] getVisibleValues()
public boolean isAmazonUpdateAllowed()
public boolean isImdbUpdateAllowed()
public static void setAlwaysGenerateID(boolean alwaysGenerateID)
public abstract void setValues(java.lang.Object[] row)
public void setValue(int iField, java.lang.Object value)
iField
- field indicatorpublic void clearValues()
public java.lang.String[] getLabels()
public java.lang.String getLabel(int columnIndex)
public int[] getMaxFieldLengths()
public int getMaxFieldLength(int columnIndex)
public java.lang.Object getValue(int iField)
iField
- field indicator
public java.lang.Object[] getValues()
public void setUIRowNumber(int row)
public java.lang.String getModuleName()
public int[] getFieldTypes()
public int getFieldType(int index)
public java.lang.String[] getFieldNames()
public java.lang.String getFieldName(int columnIndex)
public int[] getRequiredFields()
public java.lang.String getTableName()
public void saveNew(RequestorCollection requestors)
public void saveUpdate(RequestorCollection requestors)
public void delete(RequestorCollection requestors)
public void load(QueryOptions options, RequestorCollection requestors)
options
- query options, can be nullpublic void setSilence(boolean silence)
silence
- show output y/npublic boolean getSilence()
public void setValidation(boolean validate)
validate
- valdate values indicatorpublic QueryCondition toQueryCondition(boolean select)
public boolean checkIntegrity(boolean update)
update
- indicates if the values are new or existing
public boolean isUnique(DataCrowObject o, boolean bUpdateQuery)
o
- object to be checkedbUpdateQuery
- indicates whether the object is to be updated or
if it is a new objectpublic java.lang.String getUnfilledRequiredFields()
public int[] getFieldIndices()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |