org.opencms.db
Class CmsPreparedStatementLongParameter

java.lang.Object
  extended by org.opencms.db.CmsPreparedStatementLongParameter
All Implemented Interfaces:
I_CmsPreparedStatementParameter

public class CmsPreparedStatementLongParameter
extends Object
implements I_CmsPreparedStatementParameter

A prepared statement of type 'long'.

Since:
8.0.0

Constructor Summary
CmsPreparedStatementLongParameter(long param)
          Constructs a new prepared statement parameter with a 'long' value.
 
Method Summary
 void insertIntoStatement(PreparedStatement stmt, 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

CmsPreparedStatementLongParameter

public CmsPreparedStatementLongParameter(long param)
Constructs a new prepared statement parameter with a 'long' value.

Parameters:
param - a value of type 'long'
Method Detail

insertIntoStatement

public void insertIntoStatement(PreparedStatement stmt,
                                int index)
                         throws SQLException
Description copied from interface: I_CmsPreparedStatementParameter
Implementations of this interface should set the index-th parameter of the prepared statement.

Specified by:
insertIntoStatement in interface I_CmsPreparedStatementParameter
Parameters:
stmt - the prepared statement in which to set the value of a bind variable
index - the index of a bind variable
Throws:
SQLException - if something goes wrong
See Also:
I_CmsPreparedStatementParameter.insertIntoStatement(java.sql.PreparedStatement, int)