Class RangePartition
- java.lang.Object
-
- org.eclipse.persistence.descriptors.partitioning.RangePartition
-
public class RangePartition extends java.lang.ObjectPUBLIC: Represent a specific range partition. Values >= startValue and <= endValue will be routed to the connection pool.- Author:
- James Sutherland
- Since:
- EclipseLink 2.2
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringconnectionPoolprotected java.lang.ComparableendValueprotected java.lang.StringendValueNameprotected java.lang.ClasspartitionValueTypeprotected java.lang.StringpartitionValueTypeNameprotected java.lang.ComparablestartValueprotected java.lang.StringstartValueName
-
Constructor Summary
Constructors Constructor Description RangePartition()RangePartition(java.lang.String connectionPool, java.lang.Comparable startValue, java.lang.Comparable endValue)PUBLIC: Create the partition for the connectionPool and start/end values.RangePartition(java.lang.String connectionPool, java.lang.String partitionValueTypeName, java.lang.String startValueName, java.lang.String endValueName)INTERNAL: COnstructor used from metadata processing to avoid classloader dependencies.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconvertClassNamesToClasses(java.lang.ClassLoader classLoader)INTERNAL: Convert all the class-name-based settings to actual class-based settings.java.lang.StringgetConnectionPool()PUBLIC: Return the connection pool to use for this partition.java.lang.ComparablegetEndValue()PUBLIC: Return the range end value.java.lang.ComparablegetStartValue()PUBLIC: Return the range start value.protected java.lang.ObjectinitObject(java.lang.Class type, java.lang.String value)INTERNAL: TODO: clean up the exception handling.booleanisInRange(java.lang.Object value)INTERNAL: Return if the value is in the partitions range.voidsetConnectionPool(java.lang.String connectionPool)PUBLIC: Return the connection pool to use for this partition.voidsetEndValue(java.lang.Comparable endValue)PUBLIC: Set the range end value.voidsetStartValue(java.lang.Comparable startValue)PUBLIC: Set the range start value.
-
-
-
Field Detail
-
endValueName
protected java.lang.String endValueName
-
startValueName
protected java.lang.String startValueName
-
partitionValueTypeName
protected java.lang.String partitionValueTypeName
-
connectionPool
protected java.lang.String connectionPool
-
partitionValueType
protected java.lang.Class partitionValueType
-
startValue
protected java.lang.Comparable startValue
-
endValue
protected java.lang.Comparable endValue
-
-
Constructor Detail
-
RangePartition
public RangePartition()
-
RangePartition
public RangePartition(java.lang.String connectionPool, java.lang.String partitionValueTypeName, java.lang.String startValueName, java.lang.String endValueName)INTERNAL: COnstructor used from metadata processing to avoid classloader dependencies. Class names are converted/initialized in the convertClassNamesToClasses method.
-
RangePartition
public RangePartition(java.lang.String connectionPool, java.lang.Comparable startValue, java.lang.Comparable endValue)PUBLIC: Create the partition for the connectionPool and start/end values.
-
-
Method Detail
-
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.
-
getStartValue
public java.lang.Comparable getStartValue()
PUBLIC: Return the range start value. Values greater or equal to this value are part of this partition.
-
initObject
protected java.lang.Object initObject(java.lang.Class type, java.lang.String value)INTERNAL: TODO: clean up the exception handling.
-
setStartValue
public void setStartValue(java.lang.Comparable startValue)
PUBLIC: Set the range start value. Values greater or equal to this value are part of this partition.
-
getEndValue
public java.lang.Comparable getEndValue()
PUBLIC: Return the range end value. Values less than or equal this value are part of this partition.
-
setEndValue
public void setEndValue(java.lang.Comparable endValue)
PUBLIC: Set the range end value. Values less than or equal this value are part of this partition.
-
getConnectionPool
public java.lang.String getConnectionPool()
PUBLIC: Return the connection pool to use for this partition.
-
setConnectionPool
public void setConnectionPool(java.lang.String connectionPool)
PUBLIC: Return the connection pool to use for this partition.
-
isInRange
public boolean isInRange(java.lang.Object value)
INTERNAL: Return if the value is in the partitions range.
-
-