public class PinnedPartitioningPolicy extends PartitioningPolicy
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
connectionPool |
name
Constructor and Description |
---|
PinnedPartitioningPolicy() |
PinnedPartitioningPolicy(java.lang.String pool) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConnectionPool()
PUBLIC:
Return the connection pool to pin queries to.
|
java.util.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(java.lang.String connectionPool)
PUBLIC:
Set the connection pool to pin queries to.
|
acquireAccessor, convertClassNamesToClasses, getAccessor, getName, initialize, partitionPersist, setName
public PinnedPartitioningPolicy()
public PinnedPartitioningPolicy(java.lang.String pool)
public java.lang.String getConnectionPool()
public void setConnectionPool(java.lang.String connectionPool)
public java.util.List<org.eclipse.persistence.internal.databaseaccess.Accessor> getConnectionsForQuery(org.eclipse.persistence.internal.sessions.AbstractSession session, DatabaseQuery query, org.eclipse.persistence.internal.sessions.AbstractRecord arguments)
getConnectionsForQuery
in class PartitioningPolicy