|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlproc.engine.impl.SqlInputValue
class SqlInputValue
The entity for a dynamic input value.
| Nested Class Summary | |
|---|---|
(package private) static class |
SqlInputValue.Case
Enumeration for no/upper/lower case conversion. |
| Field Summary | |
|---|---|
private SqlInputValue.Case |
caseConversion
Which conversion should be done on inputValue. |
private java.lang.Object |
identity
A calculated identity. |
private java.lang.Object |
inputValue
A dynamic input value. |
(package private) java.lang.Class<?> |
inputValueType
An input value type. |
private java.lang.String |
likeChar
A wildcard character for SQL statement like. |
(package private) org.slf4j.Logger |
logger
The internal slf4j logger. |
private int |
minLikeLength
The minimum length of inputValue to enable likeChar special treatment. |
private java.lang.String |
sequence
A database sequence for an identity column. |
private SqlType |
type
A dynamic input value type. |
| Constructor Summary | |
|---|---|
SqlInputValue(java.lang.Object inputValue,
java.lang.Class<?> inputValueType,
SqlInputValue.Case caseConversion,
SqlType type)
Creates a new instance of this entity. |
|
SqlInputValue(java.lang.Object inputValue,
java.lang.Class<?> inputValueType,
java.lang.String sequence,
SqlType type)
Creates a new instance of this entity. |
|
| Method Summary | |
|---|---|
private java.lang.String |
processLike(java.lang.Object val)
A special treatment of dynamic input value for SQL statement like. |
(package private) void |
setIdentity(java.lang.String paramName)
Sets the generated identity value to an input value attribute. |
(package private) void |
setLike(java.lang.String likeChar,
java.lang.Integer minLikeLength)
Sets a special treatment of dynamic input value |
(package private) void |
setQueryParam(org.hibernate.Session session,
org.hibernate.SQLQuery query,
java.lang.String paramName)
Bind a dynamic input value to a named query parameter. |
java.lang.String |
toString()
For debug purposes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
final org.slf4j.Logger logger
private SqlInputValue.Case caseConversion
private java.lang.Object inputValue
java.lang.Class<?> inputValueType
private java.lang.String likeChar
like. It can be added to inputValue as a prefix and/or as a
suffix.
private int minLikeLength
private SqlType type
private java.lang.String sequence
private java.lang.Object identity
| Constructor Detail |
|---|
SqlInputValue(java.lang.Object inputValue,
java.lang.Class<?> inputValueType,
SqlInputValue.Case caseConversion,
SqlType type)
inputValue - a dynamic input valueinputValueType - a dynamic input value typecaseConversion - which conversion should be done on inputValuetype - a META type of a dynamic input value
SqlInputValue(java.lang.Object inputValue,
java.lang.Class<?> inputValueType,
java.lang.String sequence,
SqlType type)
inputValue - a dynamic input valueinputValueType - a dynamic input value typesequence - a sequence used to generate an identity valuetype - a META type of a dynamic input value| Method Detail |
|---|
void setQueryParam(org.hibernate.Session session,
org.hibernate.SQLQuery query,
java.lang.String paramName)
session - Hibernate session, first level cache and the SQL query execution contextquery - the object-oriented representation of a Hibernate queryparamName - the name of the parameter (= the attribute name)void setIdentity(java.lang.String paramName)
paramName - the name of the parameter (= the attribute name)
void setLike(java.lang.String likeChar,
java.lang.Integer minLikeLength)
likeChar - a wildcard characterminLikeLength - the minimum length of inputValue to enable likeChar special treatmentprivate java.lang.String processLike(java.lang.Object val)
like.
val - the dynamic input value
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||