pl.edu.agh.cast.importer.base.general
Class DateDoubleColumnConversionRule

java.lang.Object
  extended by pl.edu.agh.cast.importer.base.converter.rules.AbstractDateDoubleColumnConversionRule
      extended by pl.edu.agh.cast.importer.base.general.DateDoubleColumnConversionRule
All Implemented Interfaces:
IConversionRule, IDateConversionRule

public class DateDoubleColumnConversionRule
extends AbstractDateDoubleColumnConversionRule
implements IDateConversionRule

Date conversion rule for two columns: one date column and one time column.

Author:
AGH CAST Team

Field Summary
 
Fields inherited from class pl.edu.agh.cast.importer.base.converter.rules.AbstractDateDoubleColumnConversionRule
dateColumnIndex, timeColumnIndex
 
Constructor Summary
DateDoubleColumnConversionRule()
           
 
Method Summary
 IConversionRule createCopy()
          Creates a copy of the current conversion rule.
 Date getDate(DataRow row)
          Retrieves the date value for a specified data row.
 
Methods inherited from class pl.edu.agh.cast.importer.base.converter.rules.AbstractDateDoubleColumnConversionRule
clear, clearDateColumnIndex, clearTimeColumnIndex, copyFields, getDateColumnIndex, getFormat, getTimeColumnIndex, isComplete, setDateColumnIndex, setFormat, setTimeColumnIndex
 
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
clear, getFormat, isComplete, setFormat
 

Constructor Detail

DateDoubleColumnConversionRule

public DateDoubleColumnConversionRule()
Method Detail

getDate

public Date getDate(DataRow row)
             throws ConversionRuleException,
                    IllegalArgumentException
Retrieves the date value for a specified data row.

Specified by:
getDate in interface IDateConversionRule
Overrides:
getDate in class AbstractDateDoubleColumnConversionRule
Parameters:
row - the data row, from which to retrieve the date
Returns:
date value
Throws:
ConversionRuleException
IllegalArgumentException
See Also:
#getDate(pl.edu.agh.cast.importer.base.data.DataRow)

createCopy

public IConversionRule createCopy()
Creates a copy of the current conversion rule.

Specified by:
createCopy in interface IConversionRule
Returns:
conversion rule of the same type and parameters set
See Also:
IConversionRule.createCopy()


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.