The master
function is established to store the data from a master table into memory. Its return is an instance of the Record class. The first call to a master table loads it into memory, and subsequent calls retrieve records from memory.
var record1 = db.master("user").sort("years", "asc");
var record2 = db.master("user", true);
Calling |
Returning |
db. master ( masterId ) |
Record |
db. master ( masterId, reload ) |
Record |
db. master ( masterId, jdbcResourceName ) |
Record |
db. master ( masterId, reload, jdbcResourceName ) |
Record |
Parameter |
Type |
Description |
masterId |
String |
The name of a master table. |
reload |
Boolean |
The flag to reload the master table, even if it has already been loaded. |
jdbcResourceName |
String |
To execute SQL in another database resource, not the default. |