public static interface DatabaseInterface.PreparedDatabaseStatement
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this prepared statement, indicating that it will not be needed
anymore and any resources related to it can be released.
|
DatabaseInterface.Rows |
executeQuery()
Executes this prepared statement as a query and returns the
query results.
|
int |
executeUpdate()
Executes this prepared statement as an update statement.
|
void |
setBoolean(int paramIndex,
boolean o) |
void |
setDouble(int paramIndex,
double o) |
void |
setFloat(int paramIndex,
float o) |
void |
setInt(int paramIndex,
int o) |
void |
setLong(int paramIndex,
long o) |
void |
setNull(int paramIndex,
int type) |
void |
setParam(int paramIndex,
java.lang.Object param,
int paramType)
Sets a parameter of the prepared statement.
|
void |
setShort(int paramIndex,
short o) |
void |
setString(int paramIndex,
java.lang.String o) |
DatabaseInterface.Rows executeQuery() throws java.sql.SQLException
java.sql.SQLException
int executeUpdate() throws java.sql.SQLException
java.sql.SQLException
void close()
void setParam(int paramIndex, java.lang.Object param, int paramType) throws java.sql.SQLException
paramIndex
- The index of the parameter to set.param
- The value of the parameter.paramType
- The type of the parameter, as set in java.sql.Types.java.sql.SQLException
void setString(int paramIndex, java.lang.String o) throws java.sql.SQLException
java.sql.SQLException
void setBoolean(int paramIndex, boolean o) throws java.sql.SQLException
java.sql.SQLException
void setInt(int paramIndex, int o) throws java.sql.SQLException
java.sql.SQLException
void setShort(int paramIndex, short o) throws java.sql.SQLException
java.sql.SQLException
void setLong(int paramIndex, long o) throws java.sql.SQLException
java.sql.SQLException
void setDouble(int paramIndex, double o) throws java.sql.SQLException
java.sql.SQLException
void setFloat(int paramIndex, float o) throws java.sql.SQLException
java.sql.SQLException
void setNull(int paramIndex, int type) throws java.sql.SQLException
java.sql.SQLException
Copyright 2004-2015 Wandora Team