Constructor and description |
---|
SqlQueryImpl(org.hibernate.Session session, java.lang.String sql) |
Type Params | Return Type | Name and description |
---|---|---|
|
SqlQuery |
bind(java.lang.Object bean) |
|
void |
executeUpdate() |
|
java.util.Map<java.lang.String, java.lang.Object> |
findRow()
|
<T> |
T |
findRow(java.lang.Class<T> type) |
|
java.util.List<java.util.Map<java.lang.String, java.lang.Object>> |
findRows()
|
<T> |
java.util.List<T> |
findRows(java.lang.Class<T> type) |
<T extends Serializable> |
T |
findScalar(java.lang.Class<T> resultType) |
<T extends Serializable> |
java.util.List<T> |
findScalarList(java.lang.Class<T> type) |
<T> |
java.util.List<T> |
findValueList(java.lang.Class<T> type) |
<T> |
protected static T |
mapToBean(java.lang.Class<T> type, java.util.Map<java.lang.String, java.lang.Object> row) Creates an instance of T filled with the data from a database query. |
|
SqlQueryImpl |
param(java.lang.String name, java.lang.Object value) |
|
SqlQueryImpl |
params(java.lang.Object[] positionalParams) |
|
SqlQueryImpl |
params(java.util.Map<java.lang.String, java.lang.Object> namedParameters) |
|
SqlQuery |
setFirstRow(int firstRow) |
|
SqlQuery |
setMaxRows(int maxRows) |
|
static java.lang.String |
toCamelCase(java.lang.String str) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Creates an instance of T filled with the data from a database query.
type
- The Bean typerow
- Data retrieved from the database
Converts a snake_case String to camelCase. If there is a camel case pattern anywhere in the input string, the input string is returned as is.
At the very least, the input string is converted to lower case.
str
- The input string.