org.opencms.db.jpa.utils
Interface I_CmsQueryParameter

All Known Implementing Classes:
CmsQueryIntParameter, CmsQueryLongParameter, CmsQueryStringParameter

public interface I_CmsQueryParameter

An interface which represents a parameter value which is going to be used in an SQL prepared statement.

Since:
8.0.0

Method Summary
 void insertIntoQuery(javax.persistence.Query q, int index)
          Implementations of this interface should set the index-th parameter of the prepared statement.
 

Method Detail

insertIntoQuery

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

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