|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.anotheria.db.service.BasePersistenceServiceJDBCImpl
public abstract class BasePersistenceServiceJDBCImpl
Base persistence service.
| Field Summary | |
|---|---|
protected org.apache.log4j.Logger |
log
Logger. |
| Constructor Summary | |
|---|---|
protected |
BasePersistenceServiceJDBCImpl()
Default constructor. |
protected |
BasePersistenceServiceJDBCImpl(String aConfigName)
|
| Method Summary | |
|---|---|
protected void |
close(Connection conn)
Close Connection if it opened. |
protected void |
close(ResultSet rs)
Close ResultSet if it opened. |
protected void |
close(Statement st)
Close Statement if it opened. |
protected Connection |
getConnection()
Get connection from pool. |
void |
init()
Initialize data source. |
protected void |
release(Connection conn)
Close Connection if it opened. |
protected void |
release(ResultSet rs)
Close ResultSet if it opened. |
protected void |
release(Statement st)
Close Statement if it opened. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected org.apache.log4j.Logger log
| Constructor Detail |
|---|
protected BasePersistenceServiceJDBCImpl()
protected BasePersistenceServiceJDBCImpl(String aConfigName)
| Method Detail |
|---|
public void init()
protected Connection getConnection()
throws SQLException
Connection
SQLExceptionprotected void close(Connection conn)
Connection if it opened. If SQLException happen on closing it will be logged.
conn - - Connection objectprotected void close(Statement st)
Statement if it opened. If SQLException happen on closing it will be logged.
st - - Statement objectprotected void close(ResultSet rs)
ResultSet if it opened. If SQLException happen on closing it will be logged.
st - - ResultSet objectprotected void release(Connection conn)
Connection if it opened. If SQLException happen on closing it will be logged.
conn - - Connection objectprotected void release(Statement st)
Statement if it opened. If SQLException happen on closing it will be logged.
st - - Statement objectprotected void release(ResultSet rs)
ResultSet if it opened. If SQLException happen on closing it will be logged.
st - - ResultSet object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||