|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--rjw.dc.db.Query
Creates a query String by using the
Field Summary | |
static int |
_CREATE
Create statement |
static int |
_DELETE
Delete query |
static int |
_INSERT
Insert query |
static int |
_SELECT
Select query |
static int |
_UNDEFINED
Undifined query |
static int |
_UPDATE
Update query |
Constructor Summary | |
Query(QueryWhat what,
QueryCondition conditions,
QueryOptions options,
int iQueryType,
RequestorCollection requestors,
java.lang.String sID)
Creates a new Query object. |
|
Query(QueryWhat what,
QueryCondition conditions,
QueryOptions options,
int iQueryType,
RequestorCollection requestors,
java.lang.String sID,
int iRowNumber)
Creates a new Query object. |
Method Summary | |
java.lang.String |
getQueryString()
Returns the query string. |
int |
getQueryType()
Returns the query type |
java.lang.String |
getRecordID()
Returns the unique record ID |
RequestorCollection |
getRequestors()
Returns the requestors |
boolean |
getSilence()
Specifies whether the query should report events to the log and the UI |
void |
setQueryString(java.lang.String sQuery)
Sets the query string |
void |
setSilence(boolean silence)
Sets the query to silent. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int _UNDEFINED
public static final int _UPDATE
public static final int _CREATE
public static final int _INSERT
public static final int _SELECT
public static final int _DELETE
Constructor Detail |
public Query(QueryWhat what, QueryCondition conditions, QueryOptions options, int iQueryType, RequestorCollection requestors, java.lang.String sID)
public Query(QueryWhat what, QueryCondition conditions, QueryOptions options, int iQueryType, RequestorCollection requestors, java.lang.String sID, int iRowNumber)
The public query types are not all there is to it, depending on the query options, a subtype is set (only in case of select queries)
From these values a query string is created
what
- specifies the columns and tablenameconditions
- the fields with their values which form the condition
(can be null)options
- options for the query (can be null)iQueryType
- the query type (insert/update/..)requestors
- actions which are past on to the requestors (can be null)sID
- unique ID of the recordiRowNumber
- rowNumber from table on screenMethod Detail |
public java.lang.String getRecordID()
public void setQueryString(java.lang.String sQuery)
sQuery
- query stringpublic int getQueryType()
public boolean getSilence()
public void setSilence(boolean silence)
silence
- specifies if the query should run silentlypublic RequestorCollection getRequestors()
public java.lang.String getQueryString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |