Class PdoRemoteSessionAdapter
java.lang.Object
org.tentackle.dbms.RemoteSessionAdapter
org.tentackle.persist.PdoRemoteSessionAdapter
- All Implemented Interfaces:
PdoRemoteSession, RemoteSession
Extended remote session adapter providing PDO-related services.
- Author:
- harald
-
Constructor Summary
ConstructorsConstructorDescriptionCreates the remote session adapter. -
Method Summary
Modifier and TypeMethodDescription<T extends DomainContextDependable>
TgetExtension(DomainContext context, Class<T> extIf) Gets an extension object.
Extensions are used to provide additional services.Methods inherited from class RemoteSessionAdapter
getClientSessionInfo, getRemoteDbSession, log, log, logStatisticsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RemoteSession
getClientSessionInfo, log, log, logStatistics
-
Constructor Details
-
PdoRemoteSessionAdapter
Creates the remote session adapter.- Parameters:
rs- the remote session object
-
-
Method Details
-
getExtension
Gets an extension object.
Extensions are used to provide additional services. The given interface is checked against execution permission within the requested domain context. If refused, a SecurityException is thrown.Checks the execute permission for the extension interface, creates the extension via the
ServiceFactoryand sets its domain context.- Specified by:
getExtensionin interfacePdoRemoteSession- Type Parameters:
T- the extension type- Parameters:
context- the domain contextextIf- the extension interface- Returns:
- the extension
- Throws:
SecurityException- if the user has no execute permissionPersistenceException- if the extension could not be created
-