| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getColumns(Class<? extends Persistable> persistableClass)
Gets all the columns that are defined within the supplied
persistableClass (or one of its super classes).
|
static CompareField[] |
getCompareFields(Class<? extends Persistable> persistableClass)
Gets all the possible fields that can be compared upon in the supplied
persistableClass (or one of its super classes).
|
static void |
setParameters(javax.persistence.Query query,
List<Object> parameters)
Sets the supplied parameters on the supplied query.
|
static void |
setParameters(javax.persistence.Query query,
Map<String,Object> parameterNamesToValues)
Sets the supplied parameterNamesToValues on the supplied query.
|
public static List<String> getColumns(Class<? extends Persistable> persistableClass)
persistableClass - The persistable class to get the columns from.public static CompareField[] getCompareFields(Class<? extends Persistable> persistableClass)
persistableClass - The persistable class to get the fields from.public static void setParameters(javax.persistence.Query query,
List<Object> parameters)
query - The query.parameters - The parameters to set on the supplied query.
IllegalArgumentException - When the number of parameters does not
match or when the type of the parameter does not match.NullPointerException - When the supplied query is null.public static void setParameters(javax.persistence.Query query,
Map<String,Object> parameterNamesToValues)
query - The query.parameterNamesToValues - The parameter name/parameter value pairs
to set on the supplied query.
NullPointerException - When the supplied query or parameters
is null.Copyright © 2008–2017. All rights reserved.