Class RangePartition
java.lang.Object
org.eclipse.persistence.descriptors.partitioning.RangePartition
PUBLIC:
Represent a specific range partition.
Values >= startValue and <= endValue will be routed to the connection pool.
- Author:
- James Sutherland
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected Comparable
protected String
protected Class
protected String
protected Comparable
protected String
-
Constructor Summary
ConstructorDescriptionRangePartition
(String connectionPool, Comparable startValue, Comparable endValue) PUBLIC: Create the partition for the connectionPool and start/end values.RangePartition
(String connectionPool, String partitionValueTypeName, String startValueName, String endValueName) INTERNAL: COnstructor used from metadata processing to avoid classloader dependencies. -
Method Summary
Modifier and TypeMethodDescriptionvoid
convertClassNamesToClasses
(ClassLoader classLoader) INTERNAL: Convert all the class-name-based settings to actual class-based settings.PUBLIC: Return the connection pool to use for this partition.PUBLIC: Return the range end value.PUBLIC: Return the range start value.protected Object
initObject
(Class<?> type, String value) INTERNAL: TODO: clean up the exception handling.boolean
INTERNAL: Return if the value is in the partitions range.void
setConnectionPool
(String connectionPool) PUBLIC: Return the connection pool to use for this partition.void
setEndValue
(Comparable endValue) PUBLIC: Set the range end value.void
setStartValue
(Comparable startValue) PUBLIC: Set the range start value.
-
Field Details
-
endValueName
-
startValueName
-
partitionValueTypeName
-
connectionPool
-
partitionValueType
-
startValue
-
endValue
-
-
Constructor Details
-
RangePartition
public RangePartition() -
RangePartition
public RangePartition(String connectionPool, String partitionValueTypeName, String startValueName, String endValueName) INTERNAL: COnstructor used from metadata processing to avoid classloader dependencies. Class names are converted/initialized in the convertClassNamesToClasses method. -
RangePartition
PUBLIC: Create the partition for the connectionPool and start/end values.
-
-
Method Details
-
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. -
getStartValue
PUBLIC: Return the range start value. Values greater or equal to this value are part of this partition. -
initObject
INTERNAL: TODO: clean up the exception handling. -
setStartValue
PUBLIC: Set the range start value. Values greater or equal to this value are part of this partition. -
getEndValue
PUBLIC: Return the range end value. Values less than or equal this value are part of this partition. -
setEndValue
PUBLIC: Set the range end value. Values less than or equal this value are part of this partition. -
getConnectionPool
PUBLIC: Return the connection pool to use for this partition. -
setConnectionPool
PUBLIC: Return the connection pool to use for this partition. -
isInRange
INTERNAL: Return if the value is in the partitions range.
-