public class BOLoaderExtensions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static org.apache.log4j.Logger |
log |
| Constructor and Description |
|---|
BOLoaderExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static <V extends BO> |
frapBOFromCache(BOLoaderI bol,
V bo)
Import a sub graph connected to the bo into this BOLoaderI, deep cloning the objects if necessary.
|
static BatchedBackendRequestI |
prepareQuery(BOLoaderI bol,
groovy.lang.GString query)
Enables the use of GString to prepare queries,
queryBO(BOLoaderI,GString) |
static de.ipcon.db.core.QueryResultsI |
query(BOLoaderI bol,
groovy.lang.GString query)
Enables the use of GString as query strings,
queryBO(BOLoaderI,GString) |
static <V extends BO> |
queryBO(BOLoaderI bol,
java.lang.Class<V> entityClass,
groovy.lang.GString query) |
static java.util.List |
queryBO(BOLoaderI bol,
groovy.lang.GString query)
Enables the use of GString as query strings using parameters behind the scene, e.g.
|
public static <V extends BO> V frapBOFromCache(BOLoaderI bol, V bo)
public static java.util.List queryBO(BOLoaderI bol, groovy.lang.GString query)
def name="Admin"
tx.queryBO("Benutzer a WHERE Name=${->name}")
will execute the query "Benutzer a WHERE Name=$1" with parameterlist ['Admin'].
Please mind that the parameters need to be written in closure syntax, which is
either ${->name} or ${sw->sw.append('bla')}public static <V extends BO> java.util.List<V> queryBO(BOLoaderI bol, java.lang.Class<V> entityClass, groovy.lang.GString query)
public static de.ipcon.db.core.QueryResultsI query(BOLoaderI bol, groovy.lang.GString query)
queryBO(BOLoaderI,GString)public static BatchedBackendRequestI prepareQuery(BOLoaderI bol, groovy.lang.GString query)
queryBO(BOLoaderI,GString)Copyright © 2000-2025 OAshi S.à r.l. All Rights Reserved.