Class CustomPartitioningPolicy

  • All Implemented Interfaces:
    java.io.Serializable

    public class CustomPartitioningPolicy
    extends PartitioningPolicy
    PUBLIC: Defines a user defined partitioning policy. Used by metadata to defer class loading to init.
    See Also:
    Serialized Form
    Author:
    James Sutherland
    Since:
    EclipseLink 2.2
    • Field Detail

      • partitioningClasName

        protected java.lang.String partitioningClasName
    • Constructor Detail

      • CustomPartitioningPolicy

        public CustomPartitioningPolicy()
    • Method Detail

      • initialize

        public void initialize​(org.eclipse.persistence.internal.sessions.AbstractSession session)
        INTERNAL: Initialize the policy.
        Overrides:
        initialize in class PartitioningPolicy
      • convertClassNamesToClasses

        public void convertClassNamesToClasses​(java.lang.ClassLoader classLoader)
        INTERNAL: Convert all the class-name-based settings to actual class-based settings. This method is used when converting a project that has been built with class names to a project with classes.
        Overrides:
        convertClassNamesToClasses in class PartitioningPolicy
      • 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: Forward to custom policy
        Specified by:
        getConnectionsForQuery in class PartitioningPolicy
      • getPartitioningClasName

        public java.lang.String getPartitioningClasName()
      • setPartitioningClasName

        public void setPartitioningClasName​(java.lang.String partitioningClasName)