com.gisgraphy.hibernate.criterion
Class FulltextRestriction
java.lang.Object
com.gisgraphy.hibernate.criterion.FulltextRestriction
- All Implemented Interfaces:
- java.io.Serializable, org.hibernate.criterion.Criterion
public class FulltextRestriction
- extends java.lang.Object
- implements org.hibernate.criterion.Criterion
An implementation of the Criterion
interface that implements
'ts_query @@ ts_vector' restriction
- Author:
- David Masclet
- See Also:
- Serialized Form
Constructor Summary |
FulltextRestriction(java.lang.String ts_vectorColumnName,
java.lang.String searchedText)
|
Method Summary |
org.hibernate.engine.TypedValue[] |
getTypedValues(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery)
|
java.lang.String |
toSqlString(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FulltextRestriction
public FulltextRestriction(java.lang.String ts_vectorColumnName,
java.lang.String searchedText)
- Parameters:
ts_vectorColumnName
- The name of the ts_vector columnsearchedText
- the text to search
getTypedValues
public org.hibernate.engine.TypedValue[] getTypedValues(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery)
throws org.hibernate.HibernateException
- Specified by:
getTypedValues
in interface org.hibernate.criterion.Criterion
- Throws:
org.hibernate.HibernateException
toSqlString
public java.lang.String toSqlString(org.hibernate.Criteria criteria,
org.hibernate.criterion.CriteriaQuery criteriaQuery)
throws org.hibernate.HibernateException
- Specified by:
toSqlString
in interface org.hibernate.criterion.Criterion
- Throws:
org.hibernate.HibernateException
Copyright © 2010. All Rights Reserved.