|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.importer.base.converter.rules.AbstractDateDoubleColumnConversionRule
public abstract class AbstractDateDoubleColumnConversionRule
Date conversion rule for two columns: one date column and one time column.
Field Summary | |
---|---|
protected int |
dateColumnIndex
The index of the column holding the connection date. |
protected int |
timeColumnIndex
The index of the column holding the connection time. |
Constructor Summary | |
---|---|
AbstractDateDoubleColumnConversionRule()
The default constructor. |
Method Summary | |
---|---|
void |
clear()
Clears the conversion rule's configuration. |
void |
clearDateColumnIndex()
Clears the date column index. |
void |
clearTimeColumnIndex()
Clears the time column index. |
protected void |
copyFields(AbstractDateDoubleColumnConversionRule copy)
Copies all required fields of AbstractDateDoubleColumnConversionRule to the given instance of conversion
rule. |
protected Date |
getDate(DataRow row)
Retrieves the date value for a specified data row. |
int |
getDateColumnIndex()
|
String |
getFormat()
Retrieves the domain field format. |
int |
getTimeColumnIndex()
|
boolean |
isComplete()
Checks whether current conversion rule is fully configured - all necessary parameters are present and the the conversion process can be performed. |
void |
setDateColumnIndex(int dateColumnIndex)
|
void |
setFormat(String format)
Sets the domain field format. |
void |
setTimeColumnIndex(int timeColumnIndex)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface pl.edu.agh.cast.importer.base.converter.rules.IConversionRule |
---|
createCopy |
Field Detail |
---|
protected int dateColumnIndex
protected int timeColumnIndex
Constructor Detail |
---|
public AbstractDateDoubleColumnConversionRule()
Method Detail |
---|
protected Date getDate(DataRow row) throws ConversionRuleException, IllegalArgumentException
row
- the data row, from which to retrieve the date
ConversionRuleException
IllegalArgumentException
public void clear()
clear
in interface IConversionRule
IConversionRule.clear()
public boolean isComplete()
isComplete
in interface IConversionRule
IConversionRule.isComplete()
protected void copyFields(AbstractDateDoubleColumnConversionRule copy)
AbstractDateDoubleColumnConversionRule
to the given instance of conversion
rule.
copy
- a conversion rule instance which is to be copy of this rulepublic void clearDateColumnIndex()
public void clearTimeColumnIndex()
public void setFormat(String format)
setFormat
in interface IConversionRule
format
- the field formatIConversionRule.setFormat(java.lang.String)
public String getFormat()
getFormat
in interface IConversionRule
pl.edu.agh.cast.importer.base.converter.rules.IConversionRule#getFormats()
public int getDateColumnIndex()
public void setDateColumnIndex(int dateColumnIndex)
public void setTimeColumnIndex(int timeColumnIndex)
public int getTimeColumnIndex()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |