EclipseLink 2.2.0, build 'v20110202-r8913' API Reference

org.eclipse.persistence.descriptors.partitioning
Class CustomPartitioningPolicy

java.lang.Object
  extended by org.eclipse.persistence.descriptors.partitioning.PartitioningPolicy
      extended by org.eclipse.persistence.descriptors.partitioning.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 Summary
protected  java.lang.String partitioningClasName
           
protected  PartitioningPolicy policy
           
 
Fields inherited from class org.eclipse.persistence.descriptors.partitioning.PartitioningPolicy
name
 
Constructor Summary
CustomPartitioningPolicy()
           
 
Method Summary
 void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
          INTERNAL: Convert all the class-name-based settings to actual class-based settings.
 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
 java.lang.String getPartitioningClasName()
           
 PartitioningPolicy getPolicy()
           
 void initialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
          INTERNAL: Initialize the policy.
 void setPartitioningClasName(java.lang.String partitioningClasName)
           
 void setPolicy(PartitioningPolicy policy)
           
 
Methods inherited from class org.eclipse.persistence.descriptors.partitioning.PartitioningPolicy
acquireAccessor, getAccessor, getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

partitioningClasName

protected java.lang.String partitioningClasName

policy

protected PartitioningPolicy policy
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)

getPolicy

public PartitioningPolicy getPolicy()

setPolicy

public void setPolicy(PartitioningPolicy policy)

EclipseLink 2.2.0, build 'v20110202-r8913' API Reference