|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.cle.persistence.ConnectionProvider | +--oracle.clex.persistence.ifs.LibrarySessionProvider
Provides a LibrarySession object.
Attributes can automatically be set and loaded by specifying in
a properties file where the provider
key is set to
clex.persistence.ifs.LibrarySessionProvider
. The file must
be titled: persistence_deploymentkey.properties
,
where deploymentkey
is how the ConnectionManager will reference the ConnectionProvider.
Unique requisiste properties not in parents:
<?xml version="1.0" standalone="yes"?> <!DOCTYPE cle-providers SYSTEM "http://xmlns.oracle.com/ias/mvc/cle-providers.dtd"> <cle-providers> <provider name="ifs" class="oracle.clex.persistence.ifs.LibrarySessionProvider"> <property name="servicename" value="aservicename"/> <property name="servicepassword" value="aservicepassword"/> <property name="persistencebase" value="oracle.demo.docdemo.persistence.ifs"/> <property name="failover" value=""/> </provider> </cle-providers>
public Vector aHandlerMethod(Object sessionId, <ArgumentType> aArgument) throws Exception { LibrarySession ifsSession = (LibrarySession)getConnection(sessionId); .... use the LibrarySession here ... this HOPEFULLY releases to the pool! releaseConnection(sessionId); return theResult; } // end aHandlerMethod
Field Summary | |
protected oracle.ifs.beans.LibrarySession |
librarySession
The single LibrarySession for this provider. |
protected java.lang.String |
serviceName
|
static java.lang.String |
SERVICENAME
Constant for servicename |
protected java.lang.String |
servicePassword
|
static java.lang.String |
SERVICEPASSWORD
Constant for servicepassword |
Fields inherited from class oracle.cle.persistence.ConnectionProvider |
BASE64, connection, connectionString, CONNECTIONSTRING, defaultProperties, deploymentKey, driverType, DRIVERTYPE, encryptionType, ENCRYPTIONTYPE, failover, FAILOVER, host, HOST, NO_SCOPE, NONE, password, PASSWORD, persistenceBase, PERSISTENCEBASE, port, PORT, releasedConnectionIds, REQUEST_SCOPE, scope, SCOPE, SESSION_SCOPE, sessionConnectionIds, sid, SID, USER, userName |
Constructor Summary | |
LibrarySessionProvider()
|
|
LibrarySessionProvider(java.util.Properties properties)
|
Method Summary | |
protected void |
addPropertyKeys()
Each subclass should overload or override this method to include all the properties that it will use. |
void |
connect()
Get the LibrarySession using its own provider info |
void |
disconnect()
Disconnects the LibrarySession |
java.lang.Object |
getConnection(java.lang.Object sessionId)
Returns a connection |
java.lang.Object |
getConnection(java.lang.Object sessionId,
int failover)
Does nothing... |
java.lang.String |
getServiceName()
|
java.lang.String |
getServicePassword()
|
int |
hashCode()
Override Object.hashCode() so that we can differentiate copies of this provider. |
boolean |
isConnected()
Returns the state of the connection for the Provider |
boolean |
isSame(ConnectionProvider provider)
Compares this ConnectionProvider with the specified one and returns true if their values are the same... |
void |
releaseConnection(java.lang.Object sessionId)
Empty Implementation Do nothing... |
void |
setServiceName(java.lang.String aServiceName)
|
void |
setServicePassword(java.lang.String aServicePassword)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected oracle.ifs.beans.LibrarySession librarySession
public static final java.lang.String SERVICENAME
public static final java.lang.String SERVICEPASSWORD
protected java.lang.String serviceName
protected java.lang.String servicePassword
Constructor Detail |
public LibrarySessionProvider()
public LibrarySessionProvider(java.util.Properties properties)
Method Detail |
protected void addPropertyKeys()
addPropertyKeys
in class ConnectionProvider
public int hashCode()
hashCode
in class ConnectionProvider
Object
public boolean isSame(ConnectionProvider provider)
isSame
in class ConnectionProvider
public java.lang.Object getConnection(java.lang.Object sessionId)
getConnection
in class ConnectionProvider
public java.lang.Object getConnection(java.lang.Object sessionId, int failover)
getConnection
in class ConnectionProvider
public void releaseConnection(java.lang.Object sessionId)
releaseConnection
in class ConnectionProvider
public void connect()
public void disconnect()
public boolean isConnected()
public java.lang.String getServiceName()
public void setServiceName(java.lang.String aServiceName)
public java.lang.String getServicePassword()
public void setServicePassword(java.lang.String aServicePassword)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |