|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spago.cms.pool.CMSPoolImpl
public class CMSPoolImpl
Implements methods useful to create a repository connection pool, to get a connection and to close a connection
Constructor Summary | |
---|---|
CMSPoolImpl(IRepositoryProvider repo,
SourceBean confPoolSB,
java.lang.String name,
java.lang.String user,
java.lang.String pass,
java.lang.String work,
java.lang.String pSys,
java.lang.String pUsr)
Creates the connection pool and the initial connection istances |
Method Summary | |
---|---|
void |
closeConnection(CMSConnection con)
Closes a connecion of the repository |
CMSConnection |
getConnection()
Gets a connection from the pool |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CMSPoolImpl(IRepositoryProvider repo, SourceBean confPoolSB, java.lang.String name, java.lang.String user, java.lang.String pass, java.lang.String work, java.lang.String pSys, java.lang.String pUsr) throws EMFInternalError
repo,
- jsr 170 repositoryconfPoolSB,
- configuration of the poolname,
- name of the repositoryuser
- default user used for open a jcr sessionspass,
- default password used for open a jcr sessionwork,
- default workspace used for open a jcr sessionpSys,
- namespace prefix used for system propertiespUsr,
- namespace prefix used for user properties
EMFInternalError
- Thrown if an error occurs during the creation of the poolMethod Detail |
---|
public CMSConnection getConnection() throws EMFInternalError
getConnection
in interface CMSPool
EMFInternalError
- if an error occurs during the connection retrivingpublic void closeConnection(CMSConnection con) throws EMFInternalError
closeConnection
in interface CMSPool
connection
- to close
EMFInternalError
- if an error occurs during the connection closing
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |