Class EntityResultSetDataSource

  • All Implemented Interfaces:
    com.rapiddweller.common.context.ContextAware, com.rapiddweller.format.DataSource<Entity>, EntitySource, java.io.Closeable, java.lang.AutoCloseable

    public class EntityResultSetDataSource
    extends AbstractEntitySource
    Iterates a ResultSet, returning Entities.
    Since:
    0.3.04
    Author:
    Volker Bergmann
    • Field Summary

      • Fields inherited from class com.rapiddweller.format.util.AbstractDataSource

        type
    • Constructor Summary

      Constructors 
      Constructor Description
      EntityResultSetDataSource​(com.rapiddweller.format.DataSource<java.sql.ResultSet> source, ComplexTypeDescriptor entityDescriptor)
      Instantiates a new Entity result set data source.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.rapiddweller.format.DataIterator<Entity> iterator()  
      java.lang.String toString()  
      • Methods inherited from class com.rapiddweller.format.util.AbstractDataSource

        close, getType
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.rapiddweller.format.DataSource

        close, getType
    • Constructor Detail

      • EntityResultSetDataSource

        public EntityResultSetDataSource​(com.rapiddweller.format.DataSource<java.sql.ResultSet> source,
                                         ComplexTypeDescriptor entityDescriptor)
        Instantiates a new Entity result set data source.
        Parameters:
        source - the source
        entityDescriptor - the entity descriptor
    • Method Detail

      • iterator

        public com.rapiddweller.format.DataIterator<Entity> iterator()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object