public class CmsSetupDBWrapper
extends java.lang.Object
构造器和说明 |
---|
CmsSetupDBWrapper(java.sql.Connection con)
Constructor, creates a new CmsSetupDBWrapper.
|
限定符和类型 | 方法和说明 |
---|---|
void |
close()
Closes result set, and statement.
|
void |
createPreparedStatement(java.lang.String query,
java.util.List<java.lang.Object> params)
Creates a new SQL Statement on the connection of this DB wrapper.
|
void |
createStatement()
Creates a new SQL Statement on the connection of this DB wrapper.
|
void |
excecutePreparedQuery()
Executes a query on the connection and prepared statement of this db wrapper.
|
void |
excecuteQuery(java.lang.String query)
Executes a query on the connection and statement of this db wrapper.
|
java.sql.ResultSet |
getResultSet()
Returns the res.
|
public CmsSetupDBWrapper(java.sql.Connection con)
con
- the connection to use in this db wrapper.public void close()
public void createStatement() throws java.sql.SQLException
java.sql.SQLException
- if statement cannot be createdpublic void createPreparedStatement(java.lang.String query, java.util.List<java.lang.Object> params) throws java.sql.SQLException
query
- the DB query to useparams
- List of additional parametersjava.sql.SQLException
- if statement cannot be createdpublic void excecuteQuery(java.lang.String query) throws java.sql.SQLException
query
- the query to executejava.sql.SQLException
- if statement cannot be createdpublic void excecutePreparedQuery() throws java.sql.SQLException
java.sql.SQLException
- if statement cannot be createdpublic java.sql.ResultSet getResultSet()