public class AccessBase extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected IConnectionPool |
ConnectionPool
The Connection pool.
|
static String |
ERROR_DATABASE
The Constant ERROR_DATABASE.
|
ArrayList<String> |
m_SQLs
The m SQ ls.
|
| 构造器和说明 |
|---|
AccessBase(IConnectionPool pool)
Instantiates a new access base.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addSQL(String sql)
Adds the SQL.
|
void |
alearSQL()
Alear SQL.
|
javax.servlet.jsp.jstl.sql.Result |
execute(String sql)
Execute.
|
int[] |
executeBatch()
Execute batch.
|
int |
findCount(String src,
char match)
Find count.
|
IConnectionPool |
getConnectionPool()
Gets the connection pool.
|
void |
log(String info)
Log.
|
String |
objectToString(Object o)
Object to string.
|
String |
resultToString(javax.servlet.jsp.jstl.sql.Result rs)
Result to string.
|
void |
setConnectionPool(IConnectionPool pool)
Sets the connection pool.
|
String |
stringFromClob(Clob clob)
String from clob.
|
protected IConnectionPool ConnectionPool
public AccessBase(IConnectionPool pool)
pool - the poolpublic IConnectionPool getConnectionPool()
public void setConnectionPool(IConnectionPool pool)
pool - the new connection poolpublic javax.servlet.jsp.jstl.sql.Result execute(String sql) throws SQLException
sql - the sqlSQLException - the SQL exceptionpublic int findCount(String src, char match)
src - the srcmatch - the matchpublic void log(String info)
info - the infopublic String stringFromClob(Clob clob) throws SQLException
clob - the clobSQLException - the SQL exceptionpublic void addSQL(String sql)
sql - the sqlpublic int[] executeBatch()
throws SQLException
SQLException - the SQL exceptionpublic void alearSQL()
public String resultToString(javax.servlet.jsp.jstl.sql.Result rs)
rs - the rsCopyright © 2018. All rights reserved.