public class QueryWrapper extends Object implements AutoCloseable
AutoCloseable.close() method
is delegated to the wrapped object's Query.closeAll() method.
This way the users of the wrapper can use try-with-resources without exception handling.| Constructor and Description |
|---|
QueryWrapper(javax.jdo.Query query) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Delegates the method to
Query.closeAll(), so no exception is thrown. |
void |
declareParameters(String parameters) |
long |
deletePersistentAll(Map parameters) |
long |
deletePersistentAll(Object... parameters) |
Object |
execute() |
Object |
execute(Object p1) |
Object |
execute(Object p1,
Object p2) |
Object |
execute(Object p1,
Object p2,
Object p3) |
Object |
executeWithArray(Object... parameters) |
Object |
executeWithMap(Map parameters) |
javax.jdo.Query |
getInnerQuery() |
void |
setClass(Class cls) |
void |
setFilter(String filter) |
void |
setOrdering(String ordering) |
void |
setRange(long fromIncl,
long toExcl) |
void |
setResult(String data) |
void |
setResultClass(Class cls) |
void |
setUnique(boolean unique) |
public void close()
Query.closeAll(), so no exception is thrown.close in interface AutoCloseablepublic void setClass(Class cls)
public void setFilter(String filter)
public void declareParameters(String parameters)
public void setOrdering(String ordering)
public Object execute()
public void setUnique(boolean unique)
public void setResult(String data)
public void setResultClass(Class cls)
public void setRange(long fromIncl,
long toExcl)
public long deletePersistentAll(Object... parameters)
public long deletePersistentAll(Map parameters)
public javax.jdo.Query getInnerQuery()
Copyright © 2024 The Apache Software Foundation. All rights reserved.