net.sf.letsparty.cfg
Class BasicPartitionedColumn

java.lang.Object
  extended bynet.sf.letsparty.cfg.BasicPartitionedColumn
All Implemented Interfaces:
PartitionedColumn

public class BasicPartitionedColumn
extends java.lang.Object
implements PartitionedColumn

A PartitionedColumn that uses its partitions to find the right list of partitions based on a condition


Field Summary
private  java.lang.String intervalsClassName
           
private  java.lang.String name
           
private  PartitionedTable partitionedTable
           
protected  java.util.List partitions
           
 
Constructor Summary
BasicPartitionedColumn()
           
 
Method Summary
 void addPartition(Partition partition)
           
 java.lang.String getIntervalsClassName()
           
 java.lang.String getName()
           
 PartitionedTable getPartitionedTable()
           
 java.util.List getPartitions()
           
 java.util.List getSuffixList()
          Returns the list of all the suffixes
 java.util.List getSuffixListEqualsTo(Value value, JdbcParsHandler jdbcParsHandler)
          A list of suffixes equal to value
 java.util.List getSuffixListGreaterEqualsTo(Value value, JdbcParsHandler jdbcParsHandler)
          A list of suffixes greater or equal to value
 java.util.List getSuffixListGreaterThan(Value value, JdbcParsHandler jdbcParsHandler)
          A list of suffixes greater than value
 java.util.List getSuffixListLike(Value value, JdbcParsHandler jdbcParsHandler)
          A list of suffixes like value
 java.util.List getSuffixListMinorEqualsTo(Value value, JdbcParsHandler jdbcParsHandler)
          A list of suffixes minor or equal to value
 java.util.List getSuffixListMinorThan(Value value, JdbcParsHandler jdbcParsHandler)
          A list of suffixes minor than value
 java.util.List getSuffixListNotEqualsTo(Value value, JdbcParsHandler jdbcParsHandler)
          A list of suffixes not equal to value
protected  java.util.List getSuffixListWithCondition(boolean greaterThan, boolean equals, boolean notEquals, boolean minorThan, Value value, JdbcParsHandler jdbcParsHandler)
          Returns a list of suffixes that match the given conditions
 void setIntervalsClassName(java.lang.String intervalsClassName)
           
 void setName(java.lang.String string)
           
 void setPartitionedTable(PartitionedTable table)
           
 void setPartitions(java.util.List list)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

partitionedTable

private PartitionedTable partitionedTable

partitions

protected java.util.List partitions

name

private java.lang.String name

intervalsClassName

private java.lang.String intervalsClassName
Constructor Detail

BasicPartitionedColumn

public BasicPartitionedColumn()
Method Detail

getSuffixListWithCondition

protected java.util.List getSuffixListWithCondition(boolean greaterThan,
                                                    boolean equals,
                                                    boolean notEquals,
                                                    boolean minorThan,
                                                    Value value,
                                                    JdbcParsHandler jdbcParsHandler)
                                             throws LetsPartyException
Returns a list of suffixes that match the given conditions

Parameters:
greaterThan -
equals -
notEquals -
minorThan -
value -
jdbcParsHandler -
Returns:
a list of suffixes (Strings)
Throws:
LetsPartyException

getSuffixListGreaterThan

public java.util.List getSuffixListGreaterThan(Value value,
                                               JdbcParsHandler jdbcParsHandler)
                                        throws LetsPartyException
Description copied from interface: PartitionedColumn
A list of suffixes greater than value

Specified by:
getSuffixListGreaterThan in interface PartitionedColumn
Parameters:
value -
jdbcParsHandler -
Returns:
a list of suffixes greater than value
Throws:
LetsPartyException

getSuffixListEqualsTo

public java.util.List getSuffixListEqualsTo(Value value,
                                            JdbcParsHandler jdbcParsHandler)
                                     throws LetsPartyException
Description copied from interface: PartitionedColumn
A list of suffixes equal to value

Specified by:
getSuffixListEqualsTo in interface PartitionedColumn
Parameters:
value -
jdbcParsHandler -
Returns:
a list of suffixes equal to value
Throws:
LetsPartyException

getSuffixListGreaterEqualsTo

public java.util.List getSuffixListGreaterEqualsTo(Value value,
                                                   JdbcParsHandler jdbcParsHandler)
                                            throws LetsPartyException
Description copied from interface: PartitionedColumn
A list of suffixes greater or equal to value

Specified by:
getSuffixListGreaterEqualsTo in interface PartitionedColumn
Parameters:
value -
jdbcParsHandler -
Returns:
a list of suffixes greater or equal to value
Throws:
LetsPartyException

getSuffixListLike

public java.util.List getSuffixListLike(Value value,
                                        JdbcParsHandler jdbcParsHandler)
                                 throws LetsPartyException
Description copied from interface: PartitionedColumn
A list of suffixes like value

Specified by:
getSuffixListLike in interface PartitionedColumn
Parameters:
value -
jdbcParsHandler -
Returns:
a list of suffixes like value
Throws:
LetsPartyException

getSuffixListMinorEqualsTo

public java.util.List getSuffixListMinorEqualsTo(Value value,
                                                 JdbcParsHandler jdbcParsHandler)
                                          throws LetsPartyException
Description copied from interface: PartitionedColumn
A list of suffixes minor or equal to value

Specified by:
getSuffixListMinorEqualsTo in interface PartitionedColumn
Parameters:
value -
jdbcParsHandler -
Returns:
a list of suffixes minor or equal to value
Throws:
LetsPartyException

getSuffixListMinorThan

public java.util.List getSuffixListMinorThan(Value value,
                                             JdbcParsHandler jdbcParsHandler)
                                      throws LetsPartyException
Description copied from interface: PartitionedColumn
A list of suffixes minor than value

Specified by:
getSuffixListMinorThan in interface PartitionedColumn
Parameters:
value -
jdbcParsHandler -
Returns:
a list of suffixes minor than value
Throws:
LetsPartyException

getSuffixListNotEqualsTo

public java.util.List getSuffixListNotEqualsTo(Value value,
                                               JdbcParsHandler jdbcParsHandler)
                                        throws LetsPartyException
Description copied from interface: PartitionedColumn
A list of suffixes not equal to value

Specified by:
getSuffixListNotEqualsTo in interface PartitionedColumn
Parameters:
value -
jdbcParsHandler -
Returns:
a list of suffixes not equal to value
Throws:
LetsPartyException

getSuffixList

public java.util.List getSuffixList()
Description copied from interface: PartitionedColumn
Returns the list of all the suffixes

Specified by:
getSuffixList in interface PartitionedColumn
Returns:
a list of suffixes of this column (as strings)

getPartitionedTable

public PartitionedTable getPartitionedTable()
Specified by:
getPartitionedTable in interface PartitionedColumn
Returns:
the table to which this partition belongs

setPartitionedTable

public void setPartitionedTable(PartitionedTable table)
Specified by:
setPartitionedTable in interface PartitionedColumn

addPartition

public void addPartition(Partition partition)
Specified by:
addPartition in interface PartitionedColumn

getPartitions

public java.util.List getPartitions()

setPartitions

public void setPartitions(java.util.List list)

getName

public java.lang.String getName()
Specified by:
getName in interface PartitionedColumn

setName

public void setName(java.lang.String string)

getIntervalsClassName

public java.lang.String getIntervalsClassName()
Specified by:
getIntervalsClassName in interface PartitionedColumn

setIntervalsClassName

public void setIntervalsClassName(java.lang.String intervalsClassName)
Specified by:
setIntervalsClassName in interface PartitionedColumn