Record Class DBStatementTools

java.lang.Object
java.lang.Record
overit.geocall.sql.DBStatementTools
Record Components:
dataAttributes - List<DataAttribute> about the EDM configured data attributes defined for the provided company.
company - Company about the current company.
rows - AtomicInteger about the result set processed rows count (atomic integer is required to make this value mutable).
dbFieldMap - DBFieldMap useful to manage the mapping between the fields of the table in memory and the corresponding fields of the table in the application database.
dbObjectMap - DBObjectMap useful to map the java objects to the corresponding JDBC types.
pooledConnection - PooledConnection about the pooled connection currently used.
skipRows - number of rows to skip.
maxRows - max number of rows to elaborate.
dbObjectMapByColumn - Function<String> useful to get the DBObjectMap corresponding to a provided column.
All Implemented Interfaces:
DataAttributesHolder

public record DBStatementTools(List<DataAttribute> dataAttributes, Company company, AtomicInteger rows, DBFieldMap dbFieldMap, DBObjectMap dbObjectMap, PooledConnection pooledConnection, int skipRows, int maxRows, Function<String,DBObjectMap> dbObjectMapByColumn) extends Record implements DataAttributesHolder
DBStatement tools useful during the ResultSet iteration.
  • Constructor Details

  • Method Details

    • getDataAttributes

      public List<DataAttribute> getDataAttributes()
      Description copied from interface: DataAttributesHolder
      Returns a List<DataAttribute> about the EDM data attributes.
      Specified by:
      getDataAttributes in interface DataAttributesHolder
      Returns:
      a List<DataAttribute> about the EDM data attributes.
    • setDataAttributes

      public void setDataAttributes(List<DataAttribute> dataAttributes)
      Description copied from interface: DataAttributesHolder
      Sets the provided dataAttributes.
      Specified by:
      setDataAttributes in interface DataAttributesHolder
      Parameters:
      dataAttributes - List<DataAttribute> about the EDM data attributes to be set.
    • dataAttributes

      public List<DataAttribute> dataAttributes()
      Returns the value of the dataAttributes record component.
      Returns:
      the value of the dataAttributes record component
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • company

      public Company company()
      Returns the value of the company record component.
      Returns:
      the value of the company record component
    • rows

      public AtomicInteger rows()
      Returns the value of the rows record component.
      Returns:
      the value of the rows record component
    • dbFieldMap

      public DBFieldMap dbFieldMap()
      Returns the value of the dbFieldMap record component.
      Returns:
      the value of the dbFieldMap record component
    • dbObjectMap

      public DBObjectMap dbObjectMap()
      Returns the value of the dbObjectMap record component.
      Returns:
      the value of the dbObjectMap record component
    • pooledConnection

      public PooledConnection pooledConnection()
      Returns the value of the pooledConnection record component.
      Returns:
      the value of the pooledConnection record component
    • skipRows

      public int skipRows()
      Returns the value of the skipRows record component.
      Returns:
      the value of the skipRows record component
    • maxRows

      public int maxRows()
      Returns the value of the maxRows record component.
      Returns:
      the value of the maxRows record component
    • dbObjectMapByColumn

      public Function<String,DBObjectMap> dbObjectMapByColumn()
      Returns the value of the dbObjectMapByColumn record component.
      Returns:
      the value of the dbObjectMapByColumn record component