public final class CacheLoadDataSource extends ReadOnlyDataSource
rootDS
Constructor and Description |
---|
CacheLoadDataSource(DataSource ds)
Creates a read only data source from another data source
|
CacheLoadDataSource(Login login)
A valid login is required to create a ReadOnlyDataSource
All database requests will be limited by the ACLs associated
with Login's access group.
|
CacheLoadDataSource(Session session)
Create a read only data source for a session
|
Modifier and Type | Method and Description |
---|---|
DBObject |
findRow(long rowId,
DBClassConcrete def,
Hint hint)
Finds a DBObject by it's rowId.
|
boolean |
getForce()
is the force objects to be locked into memory turned on ?
|
boolean |
getLock()
Is the data source set to lock objects in memory
|
void |
setForce(boolean force)
set on/off the force objects to be locked option
|
void |
setLock(boolean lock)
turn on/off locking of objects in memory
|
clear, create, create, create, dispose, findDBClass, findDBClass, findDBClassAbstract, findDBClassAbstract, findKey, findKey, findKey, findKey, getAttribute, getCacheObject, getCurrentDataSource, getDataBase, getDataBaseReadOnly, getGlobalObject, getInwardLinkage, getLogin, getQueryHandler, getRealLogin, getSession, getTimeZone, getUser, hasChild, hasExcludedGroups, isDisposed, isExcludeFromGroup, makeQuery, nextNumber, nextNumber, resetReadChecks, setCacheObject, setTimeZone, toString
public CacheLoadDataSource(@Nonnull Login login)
login
- The user's login.public CacheLoadDataSource(@Nonnull Session session)
session
- The session to usepublic CacheLoadDataSource(@Nonnull DataSource ds)
ds
- The data source to use@CheckReturnValue @Nonnull public DBObject findRow(long rowId, DBClassConcrete def, Hint hint) throws NotFoundException
findRow
in interface DataSource
findRow
in class ReadOnlyDataSource
hint
- The hint of other rows to be fetchedrowId
- The row iddef
- The DBClassNotFoundException
- The row wasn't foundpublic void setLock(boolean lock)
lock
- TRUE to turn on@CheckReturnValue public boolean getLock()
public void setForce(boolean force)
force
- true to turn on@CheckReturnValue public boolean getForce()
stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.