Interface RDBJDBCTools.PreparedStatementComponent
-
- Enclosing class:
- RDBJDBCTools
public static interface RDBJDBCTools.PreparedStatementComponent
Provides a component for aPreparedStatement
and a method for setting the parameters within this component
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull java.lang.String
getStatementComponent()
int
setParameters(java.sql.PreparedStatement stmt, int startIndex)
Set the parameters need by the statement component returned bygetStatementComponent()
-
-
-
Method Detail
-
getStatementComponent
@NotNull @NotNull java.lang.String getStatementComponent()
- Returns:
- a string suitable for inclusion into a
PreparedStatement
-
setParameters
int setParameters(java.sql.PreparedStatement stmt, int startIndex) throws java.sql.SQLException
Set the parameters need by the statement component returned bygetStatementComponent()
- Parameters:
stmt
- the statementstartIndex
- of first parameter to set- Returns:
- index of next parameter to set
- Throws:
java.sql.SQLException
-
-