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
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
partitioningClasName
protected PartitioningPolicy
policy
-
Fields inherited from class org.eclipse.persistence.descriptors.partitioning.PartitioningPolicy
name
-
-
Constructor Summary
Constructors Constructor Description CustomPartitioningPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 policyjava.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, partitionPersist, setName
-
-
-
-
Field Detail
-
partitioningClasName
protected java.lang.String partitioningClasName
-
policy
protected PartitioningPolicy policy
-
-
Method Detail
-
initialize
public void initialize(org.eclipse.persistence.internal.sessions.AbstractSession session)
INTERNAL: Initialize the policy.- Overrides:
initialize
in classPartitioningPolicy
-
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 classPartitioningPolicy
-
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 classPartitioningPolicy
-
getPartitioningClasName
public java.lang.String getPartitioningClasName()
-
setPartitioningClasName
public void setPartitioningClasName(java.lang.String partitioningClasName)
-
getPolicy
public PartitioningPolicy getPolicy()
-
setPolicy
public void setPolicy(PartitioningPolicy policy)
-
-