public interface BOLoaderI extends GrooqlBOLoaderI, BLOBLoaderI, BOQueryLoaderI
Transaction,
BackendConnectionManagerBOQueryLoaderI.InternalHelper| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
$0 |
static java.lang.InheritableThreadLocal |
rootPaneToLockOnConnectionInterrupt
The value of the ThreadLocal is set whenever a request to the server will be triggered.
|
| Modifier and Type | Method and Description |
|---|---|
void |
drain()
If this BOLoader has a cache, we request it to empty it.
|
void |
execute(BatchedBackendRequestI[] srs) |
boolean |
exists(java.lang.Long id)
wrapper for exists(id, null).
|
boolean |
exists(java.lang.Long id,
java.lang.Class<? extends BOI> classtip)
Returns true if a BO with the given id exists.
|
default BO[] |
frapBOArrayFromCache(BO[] arr) |
default BOI[] |
frapBOIArrayFromCache(BOI[] arr) |
default java.util.Collection<? extends BOI> |
frapBOsFromCache(java.util.Collection<? extends BOI> c) |
BO |
frapFromCache(BO bo)
Put a BO instance to further use in this BOLoader, cloning it in case it's unknown,
giving back a cached instance in case it's cached,
in any way returning an instance without making further reloads (which would make
the effort of caching it useless).
|
default BOI |
frapFromCache(BOI bo)
Put a BOI instance to further use in this BOLoader, cloning it in case it's unknown,
giving back a cached instance in case it's cached,
in any way returning an instance without making further reloads (which would make
the effort of caching it useless).
|
BO |
getBO(java.lang.Long id)
wrapper for getBO(id, null).
|
BO |
getBO(java.lang.Long id,
java.lang.Class<? extends BOI> classtip)
Returns the BO with the given id.
|
BO[] |
getBOs(long[] ids)
wrapper for getBOs(ids, null)
|
BO[] |
getBOs(java.lang.Long[] ids)
wrapper for getBOs(ids, null)
|
BO[] |
getBOs(long[] ids,
java.lang.Class<? extends BOI> classtip)
returns the BOs with the given ids.
|
BO[] |
getBOs(java.lang.Long[] ids,
java.lang.Class<? extends BOI> classtip)
returns the BOs with the given ids.
|
BOT |
getBOT(java.lang.Class<? extends BOI> clazz) |
BO |
getBOUncached(java.lang.Long id) |
BO |
getBOUncached(java.lang.Long id,
java.lang.Class<? extends BOI> classtip)
Loads and returns the BO with this Id with a non caching BOLoader.
|
CryptoHandlerI |
getCryptoHandler()
get a reference to the CryptoHandler used.
|
default java.util.Locale |
getDefaultLocale() |
DBManEventProviderI |
getEventProvider()
Returns the DBManEventProviderI of this BOLoader, if any.
|
FeatureManagerI |
getFeatureManager() |
FileVaultI |
getFileVault() |
java.lang.Long |
getNextId()
get a unique Long id from the backend.
|
default BOLoaderI |
getNonCachingLoader()
If this loader is not caching, simply returns this instance.
|
BOLoaderI |
getParentLoader()
returns the BOLoader which this BOLoader uses to load its objects.
|
BO[] |
getRelationBOs(java.lang.Long id,
java.lang.Class<? extends BOI> classtip,
java.lang.String attributeName)
this method is used by the lazy loading map/list implementation to load related
objects when needed.
|
BOLoaderI |
getRootLoader()
Returns the root BOLoader of this BOLoader or this if there is no more parent loader.
|
SchemaI |
getSchema()
gets a reference to the schema which is used by this BOLoader.
|
static boolean |
isAncestorOf(BOLoaderI ancestor,
BOLoaderI descendant)
Checks if one BOLoaderI is an ancestor of another.
|
boolean |
isCaching()
If true, then this BOLoaderI uses an internal cache, holding all BOs hat were loaded or frapped into it.
|
java.lang.Boolean |
isLoggedIn(Benutzer user)
Tells if the given Benutzer is currently logged in.
|
boolean |
isLoggedInNN(Benutzer user)
Tells if the given Benutzer is currently logged in.
|
boolean |
isRecording()
Returns true if this BOLoaderI records changes.
|
default boolean |
isRootLoader()
Returns true if this is a root BOLoader
|
default boolean |
isServerSide()
Returns true if this BOLoaderI or any loader in its loader-chain is
a BackendBOLoaderI and thus this BOLoaderI is located on server-side.
|
default boolean |
isTesting()
Returns true if this BOLoaderI is for testing only, i.e. used in JUnit testing environments only.
|
default BatchedBackendRequestI |
prepareQuery(BOQuery boq) |
default BatchedBackendRequestI |
prepareQuery(java.lang.String s) |
default BatchedBackendRequestI |
prepareQuery(java.lang.String s,
java.lang.Object[] o) |
BatchedBackendRequestI |
prepareQuery(java.lang.String s,
java.lang.Object[] o,
java.lang.String language) |
de.ipcon.db.core.QueryResultsI |
query(BOQuery q)
query objects in an iterative way to hide backend processing time.
|
default de.ipcon.db.core.QueryResultsI |
query(java.lang.String t)
wrapper for query(t, Object[0], null)
|
default de.ipcon.db.core.QueryResultsI |
query(java.lang.String t,
java.lang.Object[] pvals)
wrapper for query(t, pvals, null)
|
de.ipcon.db.core.QueryResultsI |
query(java.lang.String t,
java.lang.Object[] pvals,
java.lang.String language)
query objects in an iterative way to hide backend processing time.
|
java.util.List |
queryBO(BOQuery q)
query objects and block until all objects are transferred, returns Objects as a List.
|
java.util.List |
queryBO(java.lang.String t)
wrapper for queryBO(String, Object[0])
|
java.util.List |
queryBO(java.lang.String t,
java.lang.Object[] pvals)
query objects and block until all objects are transferred, returns Objects as a List.
|
de.ipcon.db.core.QueryResultsI |
queryRelation(long id,
java.lang.Class<? extends BOI> classtip,
java.lang.String attributeName)
does the same as @see #getRelationBOs, but returns a QueryResultsI like @see #query.
|
java.lang.Long |
testAuth(Anmeldung a)
Tests whether given credentials can be verified.
|
boolean |
testAuth(de.ipcon.db.core.PasswortUeberpruefung a)
Tests whether given credentials can be verified.
|
getBLOB, getBLOB, getBLOB, getBLOB, getBLOB, getBLOB, getBLOB, getBLOB, getBLOBInfo, getBLOBInfo, hasBLOB, hasBLOB, haveBLOB, haveBLOB, haveBLOBgetBOByAttr, getBOByAttr, getBOByAttr, getBOByAttrs, getBOByAttrs, getBOByAttrs, getBOsByAttrs, getBOsByAttrs, getBOsByAttrs, getBOsByAttrs, getOneBOByAttr, getUniqueBOByAttrstatic final java.lang.String $0
static final java.lang.InheritableThreadLocal rootPaneToLockOnConnectionInterrupt
static boolean isAncestorOf(BOLoaderI ancestor, BOLoaderI descendant)
ancestor - The BOLoaderI to check if it's an ancestor.descendant - The BOLoaderI to check if it's a descendant.true if ancestor is an ancestor of descendant,
false otherwise.SchemaI getSchema()
getSchema in interface SchemaProviderIdefault java.util.Locale getDefaultLocale()
CryptoHandlerI getCryptoHandler()
FileVaultI getFileVault()
FeatureManagerI getFeatureManager()
boolean exists(java.lang.Long id,
java.lang.Class<? extends BOI> classtip)
id - the id of the BOclasstip - a guess which class the object has. May be null.boolean exists(java.lang.Long id)
exists(Long, Class)BO getBO(java.lang.Long id, java.lang.Class<? extends BOI> classtip)
id - the id of the BOclasstip - a guess which class the object has. May be null.BO getBO(java.lang.Long id)
getBO(Long, Class)BO getBOUncached(java.lang.Long id, java.lang.Class<? extends BOI> classtip)
isCaching() BOLoaderI instances.BO getBOUncached(java.lang.Long id)
BO[] getBOs(java.lang.Long[] ids, java.lang.Class<? extends BOI> classtip)
ids - array of Longs with ids for the requested BOs.classtip - guess for classes which the BOs belong to, may be null.TransactionBO[] getBOs(java.lang.Long[] ids)
getBOs(Long[],Class)BO[] getBOs(long[] ids, java.lang.Class<? extends BOI> classtip)
ids - array of longs with ids for the requested BOs.classtip - guess for classes which the BOs belong to, may be null.TransactionBO[] getBOs(long[] ids)
getBOs(long[],Class)BO[] getRelationBOs(java.lang.Long id, java.lang.Class<? extends BOI> classtip, java.lang.String attributeName)
id - id of the BO which the requested BOs has a relation toclasstip - common superclass of the requested bosattributeName - name of the relation from the BO to the requested onesde.ipcon.db.core.QueryResultsI queryRelation(long id,
java.lang.Class<? extends BOI> classtip,
java.lang.String attributeName)
default de.ipcon.db.core.QueryResultsI query(java.lang.String t)
query in interface BOQueryLoaderIquery(String, Object[], String)default de.ipcon.db.core.QueryResultsI query(java.lang.String t,
java.lang.Object[] pvals)
query in interface BOQueryLoaderIquery in interface GrooqlBOLoaderIt - the query to fetch, written in OQLpvals - an object array corresponding with $n entries, $1 is pvals[0] and so forth. Must not be null.query(String, Object[], String)de.ipcon.db.core.QueryResultsI query(java.lang.String t,
java.lang.Object[] pvals,
java.lang.String language)
This sample shows how to query bla BOs though this method
do
it = bol.query("bla from pack.bo bla where not Ldel limit 2")
loop while it.hasNext()
bo = BO it.getCurrentObject() -- hopefully this IS a BO, depends on the query.
-- do whatever you have to do with the bo
finally
it.close()
end
The finally clause is very important to free up database and backend resources,
so please don't forget this step!t - the query to fetch, written in OQLpvals - an object array corresponding with $n entries, $1 is pvals[0] and so forth. Must not be null.language - the strict 2-letter language code to use for our standard hstore keys for L10nString-sde.ipcon.db.core.QueryResultsI query(BOQuery q)
q - the query to fetch, written in OQLjava.util.List queryBO(java.lang.String t,
java.lang.Object[] pvals)
queryBO in interface BOQueryLoaderIqueryBO in interface GrooqlBOLoaderIt - the query to fetch, written in OQLpvals - an object array corresponding with $n entries, $1 is pvals[0] and so forth. Must not be null.query(String, Object[])java.util.List queryBO(java.lang.String t)
queryBO in interface BOQueryLoaderIqueryBO(String, Object[])java.util.List queryBO(BOQuery q)
q - the query to fetch, written in OQLjava.lang.Long getNextId()
java.lang.Long testAuth(Anmeldung a)
boolean testAuth(de.ipcon.db.core.PasswortUeberpruefung a)
default BatchedBackendRequestI prepareQuery(BOQuery boq)
default BatchedBackendRequestI prepareQuery(java.lang.String s)
default BatchedBackendRequestI prepareQuery(java.lang.String s, java.lang.Object[] o)
BatchedBackendRequestI prepareQuery(java.lang.String s, java.lang.Object[] o, java.lang.String language)
void execute(BatchedBackendRequestI[] srs)
java.lang.Boolean isLoggedIn(Benutzer user)
user - the Benutzer for which the logged in state should be checkedboolean isLoggedInNN(Benutzer user)
user - the Benutzer for which the logged in state should be checkedvoid drain()
isCaching() returns false, this is a nop.boolean isCaching()
default BOLoaderI getNonCachingLoader()
isCaching() = false;
null if no such loader is foundboolean isRecording()
BO frapFromCache(BO bo)
default BOI frapFromCache(BOI bo)
default java.util.Collection<? extends BOI> frapBOsFromCache(java.util.Collection<? extends BOI> c)
BOLoaderI getParentLoader()
BOLoaderI getRootLoader()
default boolean isRootLoader()
default boolean isServerSide()
DBManEventProviderI getEventProvider()
default boolean isTesting()
Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.