public interface TopiaJpaSupport
| Modifier and Type | Method and Description |
|---|---|
int |
execute(String jpaql,
Map<String,Object> parameters)
Execute JPA-QL operation on data (Update, Delete).
|
int |
execute(String jpaql,
Object... propertyNamesAndValues)
Deprecated.
prefer using
execute(String, java.util.Map) |
<T> List<T> |
find(String jpaql,
int startIndex,
int endIndex,
Map<String,Object> parameters)
Allow to do some JPA-QL query using the given bounds.
|
<T> List<T> |
find(String jpaql,
int startIndex,
int endIndex,
Object... propertyNamesAndValues)
Deprecated.
prefer using
find(String, int, int, java.util.Map) |
<T> List<T> |
findAll(String jpaql,
Map<String,Object> parameters)
Allow to do some JPA-QL query
WARNING : Depending on the registered service, this method may not
support something else than queries on TopiaEntity
|
<T> List<T> |
findAll(String jpaql,
Object... propertyNamesAndValues)
Deprecated.
prefer using
findAll(String, java.util.Map) |
<T> T |
findUnique(String jpaql,
Map<String,Object> parameters)
Allow to do some JPA-QL query and return an unique result.
|
<T> T |
findUnique(String jpaql,
Object... propertyNamesAndValues)
Deprecated.
prefer using
findUnique(String, java.util.Map) |
void |
setUseFlushMode(boolean useFlushMode)
Tells to the context if it has to use a flush mode before each query.
|
<T> List<T> findAll(String jpaql, Map<String,Object> parameters)
jpaql - the JPA-QL queryparameters - a map which keys are the attribute names and values are the attributes expected values@Deprecated <T> List<T> findAll(String jpaql, Object... propertyNamesAndValues)
findAll(String, java.util.Map)jpaql - the JPA-QL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]<T> List<T> find(String jpaql, int startIndex, int endIndex, Map<String,Object> parameters)
startIndex = 0.endIndex = -1.
WARNING : Depending on the registered service, this method may not
support something else than queries on TopiaEntityjpaql - the JPA-QL querystartIndex - first index of entity to returnendIndex - last index of entity to returnparameters - a map which keys are the attribute names and values are the attributes expected values@Deprecated <T> List<T> find(String jpaql, int startIndex, int endIndex, Object... propertyNamesAndValues)
find(String, int, int, java.util.Map)startIndex = 0.endIndex = -1.
WARNING : Depending on the registered service, this method may not
support something else than queries on TopiaEntityjpaql - the JPA-QL querystartIndex - first index of entity to returnendIndex - last index of entity to returnpropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]<T> T findUnique(String jpaql, Map<String,Object> parameters)
jpaql - the JPA-QL queryparameters - a map which keys are the attribute names and values are the attributes expected values@Deprecated <T> T findUnique(String jpaql, Object... propertyNamesAndValues)
findUnique(String, java.util.Map)jpaql - the JPA-QL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]int execute(String jpaql, Map<String,Object> parameters)
jpaql - the JPA-QL queryparameters - a map which keys are the attribute names and values are the attributes expected values@Deprecated int execute(String jpaql, Object... propertyNamesAndValues)
execute(String, java.util.Map)jpaql - the JPA-QL querypropertyNamesAndValues - the query parameters. Arguments are key-value paired :
[propertyName;value;propertyName;value;...]void setUseFlushMode(boolean useFlushMode)
false.useFlushMode - the new value to setCopyright © 2004–2013 CodeLutin. All rights reserved.