Package org.iplass.mtp.entity.query.hint
Class BindHint
java.lang.Object
org.iplass.mtp.entity.query.hint.Hint
org.iplass.mtp.entity.query.hint.EQLHint
org.iplass.mtp.entity.query.hint.BindHint
- All Implemented Interfaces:
java.io.Serializable,ASTNode
public class BindHint extends EQLHint
EQLに対して、実際にDataStoreにクエリー発行する際にバインド変数(JDBCの場合PrepareStatement)を
利用することを指定するヒント句です。
※上記例だと、'hoge'と15がバインド変数として実行されます。
bindヒントを追加したEQL例(リテラル指定をすべてバインド変数とする場合):
select /*+ bind */ a, b from SampleEntity where c.x='hoge' and a=1 and b=15Bindヒントを追加したEQL例(バインド変数とするリテラルを選択する場合。バインドしないリテラルの前に/*+no_bind*/を付与):
select /*+ bind */ a, b from SampleEntity where c.x=/*+no_bind*/'hoge' and a=1 and b=15※上記例だと、'hoge'と15がバインド変数として実行されます。
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description BindHint() -
Method Summary
Modifier and Type Method Description ASTNodeaccept(ASTTransformer transformer)voidaccept(HintVisitor visitor)booleanequals(java.lang.Object obj)inthashCode()java.lang.StringtoString()