Class AbstractColumnHandler

  • java.lang.Object
  • All Implemented Interfaces:

    public abstract class AbstractColumnHandler
    extends java.lang.Object
    implements ColumnHandler
    This is an abstract class to implement the ColumnHandler interface. All implementation classes of ColumnHandler should extend this class. If the subclass overwrite any method, it should call the super first in case this class implements some default logic.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void close()
      It does nothing.
      void init()
      It does nothing.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractColumnHandler

        public AbstractColumnHandler()
    • Method Detail

      • init

        public void init()
                  throws DataLoadException
        It does nothing. The subclass can overwrite this method to do some initialization, such as creating some prepared statements to access the database.
        Specified by:
        init in interface ColumnHandler
        DataLoadException - if there are some errors.
      • close

        public void close()
        It does nothing. The subclass can overwrite this method to release any resources it used, such as JDBC prepared statements.
        Specified by:
        close in interface ColumnHandler