org.eclipse.persistence.descriptors.partitioning
Class CustomPartitioningPolicy
java.lang.Object
org.eclipse.persistence.descriptors.partitioning.PartitioningPolicy
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
partitioningClasName
protected java.lang.String partitioningClasName
policy
protected PartitioningPolicy policy
CustomPartitioningPolicy
public CustomPartitioningPolicy()
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)