public class CmsSqlManager extends CmsSqlManager
m_cachedQueries, m_driverType, m_poolUrl, m_queries, QUERY_PROJECT_SEARCH_PATTERN
构造器和说明 |
---|
CmsSqlManager() |
限定符和类型 | 方法和说明 |
---|---|
static void |
closeAllInTransaction(CmsSqlManager sqlManager,
CmsDbContext dbc,
java.sql.Connection con,
java.sql.PreparedStatement stmnt,
java.sql.ResultSet res,
java.sql.PreparedStatement commit,
boolean wasInTransaction)
Attempts to close the connection, statement and result set after a statement has been executed.
|
byte[] |
getBytes(java.sql.ResultSet res,
java.lang.String attributeName)
Retrieves the value of the designated column in the current row of this ResultSet object as
a byte array in the Java programming language.
|
closeAll, getConnection, getInstance, getPreparedStatement, getPreparedStatement, getPreparedStatement, getPreparedStatementForSql, init, loadQueryProperties, readQuery, readQuery, readQuery, replaceProjectPattern, replaceQuerySearchPatterns, setBytes, validateEmpty
getActiveConnections, getConnection, getConnectionByUrl, getDbPoolUrls, getDefaultDbPoolName, getIdleConnections
public static void closeAllInTransaction(CmsSqlManager sqlManager, CmsDbContext dbc, java.sql.Connection con, java.sql.PreparedStatement stmnt, java.sql.ResultSet res, java.sql.PreparedStatement commit, boolean wasInTransaction)
sqlManager
- the sql manager to usedbc
- the current database contextcon
- the JDBC connectionstmnt
- the statementres
- the result setcommit
- the additional statement for the 'commit' commandwasInTransaction
- if using transactionspublic byte[] getBytes(java.sql.ResultSet res, java.lang.String attributeName) throws java.sql.SQLException
CmsSqlManager
The bytes represent the raw values returned by the driver. Overwrite this method if another database server requires a different handling of byte attributes in tables.
getBytes
在类中 CmsSqlManager
res
- the result setattributeName
- the name of the table attributejava.sql.SQLException
- if a database access error occursCmsSqlManager.getBytes(java.sql.ResultSet, java.lang.String)