Module org.eclipse.persistence.core
Class CustomPartitioningPolicy
java.lang.Object
org.eclipse.persistence.descriptors.partitioning.PartitioningPolicy
org.eclipse.persistence.descriptors.partitioning.CustomPartitioningPolicy
- All Implemented Interfaces:
Serializable
PUBLIC:
Defines a user defined partitioning policy.
Used by metadata to defer class loading to init.
- Since:
- EclipseLink 2.2
- See Also:
-
Field Summary
Fields inherited from class org.eclipse.persistence.descriptors.partitioning.PartitioningPolicy
name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
convertClassNamesToClasses
(ClassLoader classLoader) INTERNAL: Convert all the class-name-based settings to actual class-based settings.getConnectionsForQuery
(AbstractSession session, DatabaseQuery query, AbstractRecord arguments) INTERNAL: Forward to custom policyvoid
initialize
(AbstractSession session) INTERNAL: Initialize the policy.void
setPartitioningClasName
(String partitioningClasName) void
setPolicy
(PartitioningPolicy policy) Methods inherited from class org.eclipse.persistence.descriptors.partitioning.PartitioningPolicy
acquireAccessor, getAccessor, getName, partitionPersist, setName
-
Field Details
-
partitioningClasName
-
policy
-
-
Constructor Details
-
CustomPartitioningPolicy
public CustomPartitioningPolicy()
-
-
Method Details
-
initialize
INTERNAL: Initialize the policy.- Overrides:
initialize
in classPartitioningPolicy
-
convertClassNamesToClasses
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 List<Accessor> getConnectionsForQuery(AbstractSession session, DatabaseQuery query, AbstractRecord arguments) INTERNAL: Forward to custom policy- Specified by:
getConnectionsForQuery
in classPartitioningPolicy
-
getPartitioningClasName
-
setPartitioningClasName
-
getPolicy
-
setPolicy
-