|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectorg.seasar.extension.jdbc.where.ComposableWhere
org.seasar.extension.jdbc.where.SingleValueOperator
org.seasar.extension.jdbc.where.LikeOperator
public class LikeOperator
LIKE
演算子です。
フィールドの概要 | |
---|---|
protected String |
escapeChar
エスケープ文字です。 |
protected boolean |
needEscape
パラメータの値をエスケープする必要がある場合は true です。 |
protected static char |
WILDCARD_ESCAPE_CHAR
LIKE述語で指定される検索条件中のワイルドカード文字をエスケープするための文字 |
protected static Pattern |
WILDCARD_PATTERN
LIKE 述語で指定される検索条件中のワイルドカードをエスケープするためのパターン |
クラス org.seasar.extension.jdbc.where.SingleValueOperator から継承されたフィールド |
---|
conditionType, excludesWhitespace, propertyName, value |
クラス org.seasar.extension.jdbc.where.ComposableWhere から継承されたフィールド |
---|
children, context |
コンストラクタの概要 | |
---|---|
LikeOperator(ConditionType conditionType,
CharSequence propertyName,
Object value)
インスタンスを構築します。 |
|
LikeOperator(ConditionType conditionType,
CharSequence propertyName,
Object value,
boolean needEscape)
インスタンスを構築します。 |
|
LikeOperator(ConditionType conditionType,
CharSequence propertyName,
Object value,
String escapeChar)
インスタンスを構築します。 |
メソッドの概要 | |
---|---|
protected String |
escapeWildcard(String likeCondition)
LIKE述語で使用される検索条件のワイルドカードを '$' でエスケープします. |
protected Object |
normalize(Object value)
#ignoreWhitespace() が呼び出された場合でパラメータ値が空文字列または空白のみの文字列なら
null を、 それ以外なら元の値をそのまま返します。 |
クラス org.seasar.extension.jdbc.where.SingleValueOperator から継承されたメソッド |
---|
excludesWhitespace, visit |
クラス org.seasar.extension.jdbc.where.ComposableWhere から継承されたメソッド |
---|
addChildren, getCriteria, getParams, getPropertyNames |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
フィールドの詳細 |
---|
protected static final Pattern WILDCARD_PATTERN
protected static final char WILDCARD_ESCAPE_CHAR
protected String escapeChar
protected boolean needEscape
true
です。
コンストラクタの詳細 |
---|
public LikeOperator(ConditionType conditionType, CharSequence propertyName, Object value)
conditionType
- 条件タイプpropertyName
- パラメータのプロパティ名value
- パラメータの値public LikeOperator(ConditionType conditionType, CharSequence propertyName, Object value, String escapeChar)
conditionType
- 条件タイプpropertyName
- パラメータのプロパティ名value
- パラメータの値escapeChar
- エスケープ文字public LikeOperator(ConditionType conditionType, CharSequence propertyName, Object value, boolean needEscape)
conditionType
- 条件タイプpropertyName
- パラメータのプロパティ名value
- パラメータの値needEscape
- パラメータの値をエスケープする必要がある場合はtrue
メソッドの詳細 |
---|
protected Object normalize(Object value)
#ignoreWhitespace()
が呼び出された場合でパラメータ値が空文字列または空白のみの文字列なら
null
を、 それ以外なら元の値をそのまま返します。
SingleValueOperator
内の normalize
value
- パラメータ値
#ignoreWhitespace()
が呼び出された場合でパラメータ値が空文字列または空白のみの文字列なら
null
、 それ以外なら元の値protected String escapeWildcard(String likeCondition)
'$'
でエスケープします.
likeCondition
- LIKE述語で使用される検索条件の文字列
'$'
でエスケープした文字列
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |