org.tynamo.hibernate
Class QueryParameter

java.lang.Object
  extended by org.tynamo.hibernate.QueryParameter

public class QueryParameter
extends Object


Constructor Summary
QueryParameter(String name, Object value)
           
QueryParameter(String name, Object value, org.hibernate.type.Type type)
           
QueryParameter(org.hibernate.type.Type type)
           
 
Method Summary
 void applyNamedParameterToQuery(org.hibernate.Query queryObject)
          Apply the parameters to the given Query object.
 String getName()
           
 org.hibernate.type.Type getType()
           
 Object getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryParameter

public QueryParameter(String name,
                      Object value)
Parameters:
name - the name of the parameter
value - the value of the parameter

QueryParameter

public QueryParameter(String name,
                      Object value,
                      org.hibernate.type.Type type)
Parameters:
name - the name of the parameter
value - the value of the parameter
type - Hibernate type of the parameter (or null if none specified)

QueryParameter

public QueryParameter(org.hibernate.type.Type type)
Method Detail

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-2013. All Rights Reserved.