|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjp.sf.amateras.mirage.session.DBCPSessionImpl
public class DBCPSessionImpl
The implementation of Session which gets the connection from the DBCP connection pool.
To enable DBCP, you have to make jdbc.properties as follows:
session.class=jp.sf.amateras.mirage.session.DBCPSessionImpl jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost/test jdbc.user=root jdbc.password= dbcp.max_active=100 dbcp.min_idle=10 dbcp.max_wait=5000
| Constructor Summary | |
|---|---|
DBCPSessionImpl(Properties properties)
The constructor. |
|
| Method Summary | |
|---|---|
void |
begin()
Begins the transaction. |
void |
commit()
Commits the transaction. |
SqlManager |
getSqlManager()
Returns the instance of SqlManager. |
boolean |
isRollbackOnly()
Returns whether the current transaction has been marked as rollback-only or not marked. |
void |
release()
Releases this session. |
void |
rollback()
Roolbacks the transaction. |
void |
setRollbackOnly()
Marks the current transation as rollback-only. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DBCPSessionImpl(Properties properties)
properties - the Properties object which has a following properties:
| Method Detail |
|---|
public void begin()
Session
begin in interface Sessionpublic void commit()
Session
commit in interface Sessionpublic void rollback()
Session
rollback in interface Sessionpublic void release()
Session
release in interface Sessionpublic SqlManager getSqlManager()
SessionSqlManager.
getSqlManager in interface Sessionpublic void setRollbackOnly()
Session
setRollbackOnly in interface Sessionpublic boolean isRollbackOnly()
Session
isRollbackOnly in interface Session
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||