Class BindHint

java.lang.Object
All Implemented Interfaces:
java.io.Serializable, ASTNode

public class BindHint
extends EQLHint
EQLに対して、実際にDataStoreにクエリー発行する際にバインド変数(JDBCの場合PrepareStatement)を 利用することを指定するヒント句です。
bindヒントを追加したEQL例(リテラル指定をすべてバインド変数とする場合):
select /*+ bind */ a, b from SampleEntity where c.x='hoge' and a=1 and b=15
Bindヒントを追加した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
    ASTNode accept​(ASTTransformer transformer)  
    void accept​(HintVisitor visitor)  
    boolean equals​(java.lang.Object obj)  
    int hashCode()  
    java.lang.String toString()  

    Methods inherited from class org.iplass.mtp.entity.query.hint.Hint

    externalHint

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.iplass.mtp.entity.query.ASTNode

    copy