public class CacheCommand extends SQLCommand
CACHE [LAYER layer_name] [FIELD path [LOCK] [FORCE]] | [COMMAND command_text [LOCK] [FORCE]] | [UNLOCK [FIELD path] [DATA root_class [FILTER clause [MONITOR]]] [LIST list_class] [SECONDARY] ] | [LIST class_name [LOCK] [FORCE]] | [DATA class_name [FILTER clause [FROM from_class,linked_field]] [LOCK [MONITOR]] [FORCE] ]| [HINT class_name [FILTER clause [FROM from_class,linked_field]]] | [ALL class_name [LOCK] [FORCE]] | [LOAD code] | [MODULE module_name, class_name [parameters [,...]]Usage
/* Will load the default cache commands */ CACHE LOAD "YES"; /* Would load the value to row cache for this field */ CACHE FIELD MarketCap:companyCode; /* Would load all the data for every screen component */ CACHE DATA SDBComponent; /* * Will load the data cache for all person records that have * a user id. */ CACHE DATA Person FILTER "userId not null"; /* Will load the field and data cache for the ACLs */ CACHE ALL AccessControl; /* will execute a task */ CACHE MODULE PUSHDOWN com.abc.startup.cache.PushDown; /* Will load the full list of row ids for a class */ CACHE LIST person; /* Will load the global hints for a class */ CACHE HINT Person /* Cache data and monitor for new records */ CACHE DATA Person LOCK MONITOR /* Unlock lock data and monitor for new matching records */ CACHE UNLOCK DATA Person FILTER name='Bob' MONITORTHREAD MODE: SINGLE THREADED command
CURSOR_SIZE
Constructor and Description |
---|
CacheCommand(Connection connection,
Pattern pattern)
std.
|
Modifier and Type | Method and Description |
---|---|
protected void |
execute(Parser p)
execute the command.
|
java.lang.String |
getColumnName(int col)
implements getColumnName of interface CommandBuildResultsPlugin.
|
java.lang.String |
getColumnType(int col)
Gets the column type for the given column index, starting at one
|
java.lang.String |
getRecordID(int row)
the record ID
|
java.lang.Object |
getValue(int row,
int col)
the value for this row, column
|
appendResult, appendResult, getCursorName, getRecordKey, isExecuteOnly
execute, extMakeThreadName, getConnection, getPattern, getRawTitle, getTitle, makeThreadName, recordCall, setTitle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRawTitle
public CacheCommand(Connection connection, Pattern pattern)
connection
- the connectionpattern
- the patternprotected void execute(@Nonnull Parser p) throws java.lang.Exception
public java.lang.String getColumnName(int col)
col
- the column number to namepublic java.lang.String getColumnType(int col)
col
- the column indexpublic java.lang.String getRecordID(int row)
row
- the row indexpublic java.lang.Object getValue(int row, int col)
row
- the row indexcol
- the columnstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.