Class PinnedPartitioningPolicy
java.lang.Object
org.eclipse.persistence.descriptors.partitioning.PartitioningPolicy
org.eclipse.persistence.descriptors.partitioning.PinnedPartitioningPolicy
- All Implemented Interfaces:
Serializable
PUBLIC:
PinnedPartitionPolicy pins requests to a single connection pool.
- See Also:
- Author:
- James Sutherland
-
Field Summary
Fields inherited from class org.eclipse.persistence.descriptors.partitioning.PartitioningPolicy
name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionPUBLIC: Return the connection pool to pin queries to.List<org.eclipse.persistence.internal.databaseaccess.Accessor>
getConnectionsForQuery
(org.eclipse.persistence.internal.sessions.AbstractSession session, DatabaseQuery query, org.eclipse.persistence.internal.sessions.AbstractRecord arguments) INTERNAL: Get a connection from each pool.void
setConnectionPool
(String connectionPool) PUBLIC: Set the connection pool to pin queries to.Methods inherited from class org.eclipse.persistence.descriptors.partitioning.PartitioningPolicy
acquireAccessor, convertClassNamesToClasses, getAccessor, getName, initialize, partitionPersist, setName
-
Field Details
-
connectionPool
-
-
Constructor Details
-
PinnedPartitioningPolicy
public PinnedPartitioningPolicy() -
PinnedPartitioningPolicy
-
-
Method Details
-
getConnectionPool
PUBLIC: Return the connection pool to pin queries to. -
setConnectionPool
PUBLIC: Set the connection pool to pin queries to. -
getConnectionsForQuery
public List<org.eclipse.persistence.internal.databaseaccess.Accessor> getConnectionsForQuery(org.eclipse.persistence.internal.sessions.AbstractSession session, DatabaseQuery query, org.eclipse.persistence.internal.sessions.AbstractRecord arguments) INTERNAL: Get a connection from each pool.- Specified by:
getConnectionsForQuery
in classPartitioningPolicy
-