|
||||||||||
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 |
Constructor Summary | |
DataCrowObject()
|
Method Summary | |
boolean |
checkIntegrity(boolean update)
Checks if the values are unique and if all the required fields have been filled |
java.lang.String |
getFieldName(int columnIndex)
|
java.lang.String[] |
getFieldNames()
Returns all the database field names |
java.lang.String |
getLabel(int columnIndex)
|
java.lang.String[] |
getLabels()
|
int |
getMaxFieldLength(int columnIndex)
|
int[] |
getMaxFieldLengths()
|
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 |
boolean |
isUnique(DataCrowObject o,
boolean bUpdateQuery)
Checks to see whether the record already exists or not |
void |
load(QueryOptions options,
RequestorCollection oRequestor)
Loads records. |
void |
saveNew(RequestorCollection requestors)
Inserts a new record. |
void |
saveUpdate(RequestorCollection requestors)
Updates a record. |
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 |
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
Constructor Detail |
public DataCrowObject()
Method Detail |
public void setValue(int iField, java.lang.Object value)
iField
- field indicatorpublic 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[] 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 load(QueryOptions options, RequestorCollection oRequestor)
oRequestor
- collection of requests, can be nulloptions
- 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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |