Class PinnedPartitioningPolicy

  • All Implemented Interfaces:
    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 Detail

      • connectionPool

        protected String connectionPool
    • Constructor Detail

      • PinnedPartitioningPolicy

        public PinnedPartitioningPolicy()
      • PinnedPartitioningPolicy

        public PinnedPartitioningPolicy​(String pool)
    • Method Detail

      • getConnectionPool

        public String getConnectionPool()
        PUBLIC: Return the connection pool to pin queries to.
      • setConnectionPool

        public void setConnectionPool​(String connectionPool)
        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 class PartitioningPolicy