org.tynamo.hibernate.services
Class QueryParameter
java.lang.Object
org.tynamo.hibernate.services.QueryParameter
public class QueryParameter
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryParameter
public QueryParameter(String name,
Object value)
- Parameters:
name - the name of the parametervalue - the value of the parameter
QueryParameter
public QueryParameter(String name,
Object value,
org.hibernate.type.Type type)
- Parameters:
name - the name of the parametervalue - the value of the parametertype - Hibernate type of the parameter (or null if
none specified)
QueryParameter
public QueryParameter(org.hibernate.type.Type type)
getName
public String getName()
getValue
public Object getValue()
getType
public org.hibernate.type.Type getType()
applyNamedParameterToQuery
public void applyNamedParameterToQuery(org.hibernate.Query queryObject)
throws org.hibernate.HibernateException
- Apply the parameters to the given Query object.
- Parameters:
queryObject - the Query object
- Throws:
org.hibernate.HibernateException - if thrown by the Query object
Copyright © 2004-2012. All Rights Reserved.