|
||||||||||
| 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 |
inputValue
A dynamic input value. |
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 SqlType |
type
Dynamic input value type. |
| Constructor Summary | |
|---|---|
SqlInputValue(java.lang.Object inputValue,
SqlInputValue.Case caseConversion,
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 |
setLike(java.lang.String likeChar,
java.lang.Integer minLikeLength)
Sets a special treatment of dynamic input value |
(package private) void |
setQueryParam(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
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
| Constructor Detail |
|---|
SqlInputValue(java.lang.Object inputValue,
SqlInputValue.Case caseConversion,
SqlType type)
inputValue - a dynamic input valuecaseConversion - which conversion should be done on inputValuetype - a type of dynamic input value| Method Detail |
|---|
void setQueryParam(org.hibernate.SQLQuery query,
java.lang.String paramName)
query - the object-oriented representation of a Hibernate queryparamName - the name of the parameter
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 | |||||||||