|
DODS 7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface QueryCacheItem
This interface stores one query and its necessary data, for query array.
| Method Summary | |
|---|---|
void |
add(CoreDataStruct obj)
Adds DataStruct object obj to array DOs. |
void |
add(GenericDO obj)
Adds data object obj to array DOs. |
void |
addCond(Condition cond)
Adds condition to query. |
boolean |
checkConditions(CoreDataStruct obj)
Checks whether DataStruct object obj satisfies conditions of this query. |
boolean |
checkConditions(GenericDO obj)
Checks whether data object obj satisfies conditions of this query. |
void |
delete(CoreDataStruct obj)
Removes DataStruct object obj from array DOs, if present. |
void |
delete(GenericDO obj)
Removes data object obj from array DOs, if present. |
java.lang.String |
get_OriginDatabase()
Returns query database. |
java.util.ArrayList |
getConds()
Returns array of query conditions conds. |
java.util.Collection |
getOIds()
Returns OIds (Collection of object IDs which are results of the query). |
java.lang.String |
getOriginDatabase()
Deprecated. Use get_OriginDatabase() |
java.lang.String |
getQueryId()
Returns query id (String it the form: "query_database_name.String_presentation_of_query"). |
int |
getResultNum()
Returns number of cached query results. |
int |
getTime()
Returns time needed for query execution. |
boolean |
isCompleteResult()
Returns true if all query results are cached, otherwise false. |
boolean |
isModifiedQuery()
Returns true if there have been performed inserts, updates or deletes concerning results of this query, otherwise false. |
void |
setCompleteResult(boolean newCompleteRes)
Sets new boolean value about the cached query results (true if all query results are cached, otherwise false). |
void |
setConds(java.util.ArrayList conds)
Sets array of query conditions. |
void |
setModifiedQuery(boolean mod)
Sets flag coccerning information whether the query is modified. |
void |
setQueryId(java.lang.String queryId)
Sets query id (String it the form: "query_database_name.String_presentation_of_query"). |
void |
setTime(int time)
Sets time needed for query execution. |
void |
update(CoreDataStruct obj)
Inserts DataStruct object obj (or updates it if already exists) in array DOs, if it satisfies this query. |
void |
update(GenericDO obj)
Inserts data object obj (or updates it if already exists) in array DOs, if it satisfies this query. |
| Method Detail |
|---|
java.lang.String getQueryId()
void setQueryId(java.lang.String queryId)
queryId - String that unique represents query.java.util.Collection getOIds()
int getResultNum()
boolean isCompleteResult()
void setCompleteResult(boolean newCompleteRes)
newCompleteRes - true if all query results are cached, otherwise
false.boolean isModifiedQuery()
void setModifiedQuery(boolean mod)
mod - true if there have been performed inserts, updates or deletes
concerning results of this query, otherwise false.int getTime()
void setTime(int time)
time - Time needed for query execution.java.util.ArrayList getConds()
void setConds(java.util.ArrayList conds)
conds - Array of query conditions.void addCond(Condition cond)
cond - Condition that will be added to query.java.lang.String getOriginDatabase()
java.lang.String get_OriginDatabase()
boolean checkConditions(GenericDO obj)
obj - Data object for which are checked conditions of this query.
boolean checkConditions(CoreDataStruct obj)
obj - DataStruct object for which are checked conditions of this
query.
void update(GenericDO obj)
obj - Data object which may be inserted (or updated) in array DOs.void update(CoreDataStruct obj)
obj - DataStruct object which may be inserted (or updated) in array
DOs.void delete(GenericDO obj)
obj - Data object which will be removed from array DOs.void delete(CoreDataStruct obj)
obj - DataStruct object which will be removed from array DOs.void add(GenericDO obj)
obj - Data object which will be added to array DOs.void add(CoreDataStruct obj)
obj - DataStruct object which will be added to array DOs.
|
DODS 7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||