public class RangePartitioningPolicy extends FieldPartitioningPolicy
Modifier and Type | Field and Description |
---|---|
protected java.util.List<RangePartition> |
partitions |
partitionField, unionUnpartitionableQueries
name
Constructor and Description |
---|
RangePartitioningPolicy() |
RangePartitioningPolicy(java.lang.String partitionField) |
RangePartitioningPolicy(java.lang.String partitionField,
boolean unionUnpartitionableQueries) |
RangePartitioningPolicy(java.lang.String partitionField,
RangePartition... partitions) |
Modifier and Type | Method and Description |
---|---|
void |
addPartition(RangePartition partition)
PUBLIC:
Add the range partition.
|
void |
addPartition(java.lang.String connectionPool,
java.lang.Comparable startValue,
java.lang.Comparable endValue)
PUBLIC:
Add the range partition.
|
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:
Get a connection from one of the pools in a round robin rotation fashion.
|
java.util.List<RangePartition> |
getPartitions()
PUBLIC:
Return the range partitions.
|
void |
partitionPersist(org.eclipse.persistence.internal.sessions.AbstractSession session,
java.lang.Object object,
ClassDescriptor descriptor)
INTERNAL:
Allow for the persist call to assign the partition.
|
void |
setPartitions(java.util.List<RangePartition> partitions)
PUBLIC:
Set the range partitions.
|
extractPartitionValueForPersist, getPartitionField, getPartitionFieldName, getUnionUnpartitionableQueries, setPartitionField, setPartitionField, setUnionUnpartitionableQueries
acquireAccessor, getAccessor, getName, initialize, setName
protected java.util.List<RangePartition> partitions
public RangePartitioningPolicy()
public RangePartitioningPolicy(java.lang.String partitionField)
public RangePartitioningPolicy(java.lang.String partitionField, boolean unionUnpartitionableQueries)
public RangePartitioningPolicy(java.lang.String partitionField, RangePartition... partitions)
public void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
convertClassNamesToClasses
in class PartitioningPolicy
public java.util.List<RangePartition> getPartitions()
public void setPartitions(java.util.List<RangePartition> partitions)
public void addPartition(java.lang.String connectionPool, java.lang.Comparable startValue, java.lang.Comparable endValue)
public void addPartition(RangePartition partition)
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)
getConnectionsForQuery
in class PartitioningPolicy
public void partitionPersist(org.eclipse.persistence.internal.sessions.AbstractSession session, java.lang.Object object, ClassDescriptor descriptor)
partitionPersist
in class PartitioningPolicy