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.SQLExceptionint executeUpdate()
throws java.sql.SQLException
java.sql.SQLExceptionvoid 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.SQLExceptionvoid setString(int paramIndex,
java.lang.String o)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setBoolean(int paramIndex,
boolean o)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setInt(int paramIndex,
int o)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setShort(int paramIndex,
short o)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setLong(int paramIndex,
long o)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setDouble(int paramIndex,
double o)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setFloat(int paramIndex,
float o)
throws java.sql.SQLException
java.sql.SQLExceptionvoid setNull(int paramIndex,
int type)
throws java.sql.SQLException
java.sql.SQLExceptionCopyright 2004-2015 Wandora Team