Package org.opencms.db
Class CmsPreparedStatementStringParameter
- java.lang.Object
-
- org.opencms.db.CmsPreparedStatementStringParameter
-
- All Implemented Interfaces:
I_CmsPreparedStatementParameter
public class CmsPreparedStatementStringParameter extends java.lang.Object implements I_CmsPreparedStatementParameter
A prepared statement parameter of type 'string'.- Since:
- 8.0.0
-
-
Constructor Summary
Constructors Constructor Description CmsPreparedStatementStringParameter(java.lang.String param)
Constructs a new prepared statement parameter with a value of type 'string'.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
insertIntoStatement(java.sql.PreparedStatement stmt, int index)
Implementations of this interface should set the index-th parameter of the prepared statement.
-
-
-
Constructor Detail
-
CmsPreparedStatementStringParameter
public CmsPreparedStatementStringParameter(java.lang.String param)
Constructs a new prepared statement parameter with a value of type 'string'.- Parameters:
param
- the string value
-
-
Method Detail
-
insertIntoStatement
public void insertIntoStatement(java.sql.PreparedStatement stmt, int index) throws java.sql.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 interfaceI_CmsPreparedStatementParameter
- Parameters:
stmt
- the prepared statement in which to set the value of a bind variableindex
- the index of a bind variable- Throws:
java.sql.SQLException
- if something goes wrong- See Also:
I_CmsPreparedStatementParameter.insertIntoStatement(java.sql.PreparedStatement, int)
-
-