ServerPlatformBase
| Modifier and Type | Method and Description |
|---|---|
| public void | clearStatementCache(Connection connection)
INTERNAL: Clears statement cache of the wrapper connection. |
| public void | disableJTA()
INTERNAL: disableJTA(): Configure the receiver such that my external transaction controller class will be ignored, and will NOT be used to populate DatabaseSession's external transaction controller class at runtime. |
| public void | disableRuntimeServices()
INTERNAL: disableRuntimeServices(): Configure the receiver such that no JMX/MBean will be registered to provide runtime services for my DatabaseSession at runtime. |
| public DatabaseSession | Returns: DatabaseSessionINTERNAL: getDatabaseSession(): Answer the instance of DatabaseSession the receiver is helping. |
| public Class | Returns: Class externalTransactionControllerClassINTERNAL: getExternalTransactionControllerClass(): Answer the class of external transaction controller to use For this server platform. |
| public int | |
| public String | Returns: String moduleNameINTERNAL: getModuleName(): Answer the name of the module (jar name) that my session is associated with. |
| public JPAClassLoaderHolder | Returns: ClassLoaderHolder - a composite object containing the classLoader and the flag that is true if the classLoader returned is temporary- the persistence unit info puInfo)INTERNAL: JIRA EJBTHREE-572 requires that we use the real classLoader in place of the getNewTempClassLoader(). |
| public String | |
| public SessionLog | Returns: org.eclipse.persistence.logging.SessionLogINTERNAL: getServerLog(): Return the ServerLog for this platform Return the default ServerLog in the base |
| public String | Returns: String serverNameAndVersionPUBLIC: getServerNameAndVersion(): Talk to the relevant server class library, and get the server name and version |
| public int | |
| public void | initializeExternalTransactionController()
INTERNAL: initializeExternalTransactionController(): Populate the DatabaseSession's external transaction controller with an instance of my transaction controller class. |
| public boolean | Returns: boolean isJTAEnabledINTERNAL: isJTAEnabled(): Answer true if the DatabaseSession's external transaction controller class will be populated with my transaction controller class at runtime. |
| public boolean | Returns: boolean isRuntimeServicesEnabledINTERNAL: isRuntimeServicesEnabled(): Answer true if the JMX/MBean providing runtime services for the receiver's DatabaseSession will be deployed at runtime. |
| public boolean | isRuntimeServicesEnabledDefault()
INTERNAL: isRuntimeServicesEnabledDefault(): Answer true if the JMX/MBean providing runtime services for the receiver's DatabaseSession will be deployed at runtime. |
| public void | launchContainerRunnable(Runnable
the instance of runnable to be "started" runnable)INTERNAL: launchContainerRunnable(Runnable runnable): Use the container library to start the provided Runnable. |
| public void | registerMBean()
INTERNAL: registerMBean(): Create and deploy the JMX MBean to provide runtime services for my databaseSession. |
| public void | setExternalTransactionControllerClass(Class<? extends ExternalTransactionController> newClass)
INTERNAL: setExternalTransactionControllerClass(Class newClass): Set the class of external transaction controller to use in the DatabaseSession. |
| public void | |
| public boolean | Returns: booleanINTERNAL: shouldUseDriverManager(): Indicates whether DriverManager should be used while connecting DefaultConnector. |
| public void | |
| public void | unregisterMBean()
INTERNAL: unregisterMBean(): Unregister the JMX MBean that was providing runtime services for my databaseSession. |
| public Connection | unwrapConnection(Connection connection)
INTERNAL: This method is used to unwrap the oracle connection wrapped by the application server. |
| public boolean | Returns: true if server supports partitions, false otherwiseINTERNAL: Some servers may support partitioning |
| public boolean | wasFailureCommunicationBased(SQLException exception, Accessor connection, AbstractSession sessionForProfile)
INTERNAL: A call to this method will perform a platform based check on the connection and exception error code to determine if the connection is still valid or if a communication error has occurred. |
| clearStatementCache | back to summary |
|---|---|
| public void clearStatementCache(Connection connection) INTERNAL: Clears statement cache of the wrapper connection. Required by Oracle proxy authentication: currently connection statement cache becomes invalid on switching to/from proxy session. This method is called by OracleJDBC_10_1_0_2ProxyConnectionCustomizer before opening proxy session and before closing it. | |
| disableJTA | back to summary |
|---|---|
| public void disableJTA() INTERNAL: disableJTA(): Configure the receiver such that my external transaction controller class will be ignored, and will NOT be used to populate DatabaseSession's external transaction controller class at runtime. | |
| disableRuntimeServices | back to summary |
|---|---|
| public void disableRuntimeServices() INTERNAL: disableRuntimeServices(): Configure the receiver such that no JMX/MBean will be registered to provide runtime services for my DatabaseSession at runtime.
| |
| getDatabaseSession | back to summary |
|---|---|
| public DatabaseSession getDatabaseSession() INTERNAL: getDatabaseSession(): Answer the instance of DatabaseSession the receiver is helping.
| |
| getExternalTransactionControllerClass | back to summary |
|---|---|
| public Class INTERNAL: getExternalTransactionControllerClass(): Answer the class of external transaction controller to use For this server platform. This is read-only. If the subclasses of the ServerPlatformBase do not provide the Class desired, then a new subclass should be created to return the desired class.
| |
| getJNDIConnectorLookupType | back to summary |
|---|---|
| public int getJNDIConnectorLookupType() INTERNAL: Get JNDIConnector lookupType value for this platform. | |
| getModuleName | back to summary |
|---|---|
| public String getModuleName() INTERNAL: getModuleName(): Answer the name of the module (jar name) that my session is associated with. Answer "unknown" if there is no module name available.
| |
| getNewTempClassLoader | back to summary |
|---|---|
| public JPAClassLoaderHolder getNewTempClassLoader(PersistenceUnitInfo puInfo) INTERNAL: JIRA EJBTHREE-572 requires that we use the real classLoader in place of the getNewTempClassLoader(). The override code should stay in place until the UCL3 loader does not throw a NPE on loadClass()
| |
| getPartitionID | back to summary |
|---|---|
| public String getPartitionID() INTERNAL: Get Partition ID.
| |
| getServerLog | back to summary |
|---|---|
| public SessionLog getServerLog() INTERNAL: getServerLog(): Return the ServerLog for this platform Return the default ServerLog in the base
| |
| getServerNameAndVersion | back to summary |
|---|---|
| public String getServerNameAndVersion() PUBLIC: getServerNameAndVersion(): Talk to the relevant server class library, and get the server name and version
| |
| getThreadPoolSize | back to summary |
|---|---|
| public int getThreadPoolSize() Return the thread pool size. | |
| initializeExternalTransactionController | back to summary |
|---|---|
| public void initializeExternalTransactionController() INTERNAL: initializeExternalTransactionController(): Populate the DatabaseSession's external transaction controller with an instance of my transaction controller class. To change the external transaction controller class, we recommend creating a subclass of ServerPlatformBase, and overriding getExternalTransactionControllerClass()
| |
| isJTAEnabled | back to summary |
|---|---|
| public boolean isJTAEnabled() INTERNAL: isJTAEnabled(): Answer true if the DatabaseSession's external transaction controller class will be populated with my transaction controller class at runtime. If the transaction controller class is overridden in the DatabaseSession, my transaction controller class will be ignored.
| |
| isRuntimeServicesEnabled | back to summary |
|---|---|
| public boolean isRuntimeServicesEnabled() INTERNAL: isRuntimeServicesEnabled(): Answer true if the JMX/MBean providing runtime services for the receiver's DatabaseSession will be deployed at runtime.
| |
| isRuntimeServicesEnabledDefault | back to summary |
|---|---|
| public boolean isRuntimeServicesEnabledDefault() INTERNAL:
isRuntimeServicesEnabledDefault(): Answer true if the JMX/MBean providing runtime services for
the receiver's DatabaseSession will be deployed at runtime.
Provide the default value for | |
| launchContainerRunnable | back to summary |
|---|---|
| public void launchContainerRunnable(Runnable runnable) INTERNAL: launchContainerRunnable(Runnable runnable): Use the container library to start the provided Runnable. Default behavior is to use Thread(runnable).start()
| |
| registerMBean | back to summary |
|---|---|
| public void registerMBean() INTERNAL: registerMBean(): Create and deploy the JMX MBean to provide runtime services for my databaseSession. | |
| setExternalTransactionControllerClass | back to summary |
|---|---|
| public void setExternalTransactionControllerClass(Class<? extends ExternalTransactionController> newClass) INTERNAL: setExternalTransactionControllerClass(Class newClass): Set the class of external transaction controller to use in the DatabaseSession. This is defined by the user via the sessions.xml. | |
| setThreadPoolSize | back to summary |
|---|---|
| public void setThreadPoolSize(int threadPoolSize) Set the thread pool size. | |
| shouldUseDriverManager | back to summary |
|---|---|
| public boolean shouldUseDriverManager() INTERNAL: shouldUseDriverManager(): Indicates whether DriverManager should be used while connecting DefaultConnector.
| |
| shutdown | back to summary |
|---|---|
| public void shutdown() INTERNAL: perform any require shutdown tasks. | |
| unregisterMBean | back to summary |
|---|---|
| public void unregisterMBean() INTERNAL: unregisterMBean(): Unregister the JMX MBean that was providing runtime services for my databaseSession. | |
| unwrapConnection | back to summary |
|---|---|
| public Connection unwrapConnection(Connection connection) INTERNAL: This method is used to unwrap the oracle connection wrapped by the application server. TopLink needs this unwrapped connection for certain database vendor specific support. This is added as a workaround for bug 4460996 | |
| usesPartitions | back to summary |
|---|---|
| public boolean usesPartitions() INTERNAL: Some servers may support partitioning
| |
| wasFailureCommunicationBased | back to summary |
|---|---|
| public boolean wasFailureCommunicationBased(SQLException exception, Accessor connection, AbstractSession sessionForProfile) INTERNAL: A call to this method will perform a platform based check on the connection and exception error code to determine if the connection is still valid or if a communication error has occurred. In the case of the server platform the connection pool itself may be tested. If a communication error has occurred then the query may be retried. If this platform is unable to determine if the error was communication based it will return false forcing the error to be thrown to the user. | |