org.opencms.db.jpa.utils
Class CmsQueryLongParameter

java.lang.Object
  extended by org.opencms.db.jpa.utils.CmsQueryLongParameter
All Implemented Interfaces:
I_CmsQueryParameter

public class CmsQueryLongParameter
extends java.lang.Object
implements I_CmsQueryParameter

A query parameter of type 'long'.

Since:
8.0.0

Constructor Summary
CmsQueryLongParameter(long param)
          Creates a new parameter value.
 
Method Summary
 void insertIntoQuery(javax.persistence.Query q, int index)
          Implementations of this interface should set the index-th parameter of the prepared statement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsQueryLongParameter

public CmsQueryLongParameter(long param)
Creates a new parameter value.

Parameters:
param - the value to use for this parameter
Method Detail

insertIntoQuery

public void insertIntoQuery(javax.persistence.Query q,
                            int index)
                     throws javax.persistence.PersistenceException
Description copied from interface: I_CmsQueryParameter
Implementations of this interface should set the index-th parameter of the prepared statement.

Specified by:
insertIntoQuery in interface I_CmsQueryParameter
Parameters:
q - the query in which to set the value of a bind variable
index - the index of a bind variable
Throws:
javax.persistence.PersistenceException - if something goes wrong
See Also:
I_CmsQueryParameter.insertIntoQuery(javax.persistence.Query, int)