public class RangePartition
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
connectionPool |
protected java.lang.Comparable |
endValue |
protected java.lang.String |
endValueName |
protected java.lang.Class |
partitionValueType |
protected java.lang.String |
partitionValueTypeName |
protected java.lang.Comparable |
startValue |
protected java.lang.String |
startValueName |
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
void |
convertClassNamesToClasses(java.lang.ClassLoader classLoader)
INTERNAL:
Convert all the class-name-based settings to actual class-based settings.
|
java.lang.String |
getConnectionPool()
PUBLIC:
Return the connection pool to use for this partition.
|
java.lang.Comparable |
getEndValue()
PUBLIC:
Return the range end value.
|
java.lang.Comparable |
getStartValue()
PUBLIC:
Return the range start value.
|
protected java.lang.Object |
initObject(java.lang.Class type,
java.lang.String value)
INTERNAL:
TODO: clean up the exception handling.
|
boolean |
isInRange(java.lang.Object value)
INTERNAL:
Return if the value is in the partitions range.
|
void |
setConnectionPool(java.lang.String connectionPool)
PUBLIC:
Return the connection pool to use for this partition.
|
void |
setEndValue(java.lang.Comparable endValue)
PUBLIC:
Set the range end value.
|
void |
setStartValue(java.lang.Comparable startValue)
PUBLIC:
Set the range start value.
|
protected java.lang.String endValueName
protected java.lang.String startValueName
protected java.lang.String partitionValueTypeName
protected java.lang.String connectionPool
protected java.lang.Class partitionValueType
protected java.lang.Comparable startValue
protected java.lang.Comparable endValue
public RangePartition()
public RangePartition(java.lang.String connectionPool, java.lang.String partitionValueTypeName, java.lang.String startValueName, java.lang.String endValueName)
public RangePartition(java.lang.String connectionPool, java.lang.Comparable startValue, java.lang.Comparable endValue)
public void convertClassNamesToClasses(java.lang.ClassLoader classLoader)
public java.lang.Comparable getStartValue()
protected java.lang.Object initObject(java.lang.Class type, java.lang.String value)
public void setStartValue(java.lang.Comparable startValue)
public java.lang.Comparable getEndValue()
public void setEndValue(java.lang.Comparable endValue)
public java.lang.String getConnectionPool()
public void setConnectionPool(java.lang.String connectionPool)
public boolean isInRange(java.lang.Object value)