EclipseLink 2.3.2, build 'v20111125-r10461' API Reference

org.eclipse.persistence.descriptors.partitioning
Class PinnedPartitioningPolicy

java.lang.Object
  extended by org.eclipse.persistence.descriptors.partitioning.PartitioningPolicy
      extended by org.eclipse.persistence.descriptors.partitioning.PinnedPartitioningPolicy
All Implemented Interfaces:
java.io.Serializable

public class PinnedPartitioningPolicy
extends PartitioningPolicy

PUBLIC: PinnedPartitionPolicy pins requests to a single connection pool.

See Also:
Serialized Form
Author:
James Sutherland
Since:
EclipseLink 2.2

Field Summary
protected  java.lang.String connectionPool
           
 
Fields inherited from class org.eclipse.persistence.descriptors.partitioning.PartitioningPolicy
name
 
Constructor Summary
PinnedPartitioningPolicy()
           
PinnedPartitioningPolicy(java.lang.String pool)
           
 
Method Summary
 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.
 
Methods inherited from class org.eclipse.persistence.descriptors.partitioning.PartitioningPolicy
acquireAccessor, convertClassNamesToClasses, getAccessor, getName, initialize, partitionPersist, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

connectionPool

protected java.lang.String connectionPool
Constructor Detail

PinnedPartitioningPolicy

public PinnedPartitioningPolicy()

PinnedPartitioningPolicy

public PinnedPartitioningPolicy(java.lang.String pool)
Method Detail

getConnectionPool

public java.lang.String getConnectionPool()
PUBLIC: Return the connection pool to pin queries to.


setConnectionPool

public void setConnectionPool(java.lang.String connectionPool)
PUBLIC: Set the connection pool to pin queries to.


getConnectionsForQuery

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)
INTERNAL: Get a connection from each pool.

Specified by:
getConnectionsForQuery in class PartitioningPolicy

EclipseLink 2.3.2, build 'v20111125-r10461' API Reference