Package overit.geocall.sql
Record Class DBStatementTools
java.lang.Object
java.lang.Record
overit.geocall.sql.DBStatementTools
- Record Components:
dataAttributes-List<DataAttribute> about theEDMconfigured data attributes defined for the provided company.company-Companyabout the current company.rows-AtomicIntegerabout the result set processed rows count (atomic integer is required to make this value mutable).dbFieldMap-DBFieldMapuseful to manage the mapping between the fields of the table in memory and the corresponding fields of the table in the application database.dbObjectMap-DBObjectMapuseful to map the java objects to the correspondingJDBCtypes.pooledConnection-PooledConnectionabout the pooled connection currently used.skipRows- number of rows to skip.maxRows- max number of rows to elaborate.dbObjectMapByColumn-Function<String> useful to get theDBObjectMapcorresponding to a providedcolumn.
- 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 Summary
ConstructorsConstructorDescriptionDBStatementTools(List<DataAttribute> dataAttributes, Company company, AtomicInteger rows, DBFieldMap dbFieldMap, DBObjectMap dbObjectMap, PooledConnection pooledConnection, int skipRows, int maxRows, Function<String, DBObjectMap> dbObjectMapByColumn) Creates an instance of aDBStatementToolsrecord class.DBStatementTools(List<DataAttribute> dataAttributes, Company company, DBFieldMap dbFieldMap, DBObjectMap dbObjectMap, PooledConnection pooledConnection, int skipRows, int maxRows, Function<String, DBObjectMap> dbObjectMapByColumn) -
Method Summary
Modifier and TypeMethodDescriptioncompany()Returns the value of thecompanyrecord component.Returns the value of thedataAttributesrecord component.Returns the value of thedbFieldMaprecord component.Returns the value of thedbObjectMaprecord component.Returns the value of thedbObjectMapByColumnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmaxRows()Returns the value of themaxRowsrecord component.Returns the value of thepooledConnectionrecord component.rows()Returns the value of therowsrecord component.voidsetDataAttributes(List<DataAttribute> dataAttributes) Sets the provideddataAttributes.intskipRows()Returns the value of theskipRowsrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface overit.geocall.edm.model.DataAttributesHolder
getEntities
-
Constructor Details
-
DBStatementTools
public DBStatementTools(List<DataAttribute> dataAttributes, Company company, DBFieldMap dbFieldMap, DBObjectMap dbObjectMap, PooledConnection pooledConnection, int skipRows, int maxRows, Function<String, DBObjectMap> dbObjectMapByColumn) -
DBStatementTools
public DBStatementTools(List<DataAttribute> dataAttributes, Company company, AtomicInteger rows, DBFieldMap dbFieldMap, DBObjectMap dbObjectMap, PooledConnection pooledConnection, int skipRows, int maxRows, Function<String, DBObjectMap> dbObjectMapByColumn) Creates an instance of aDBStatementToolsrecord class.- Parameters:
dataAttributes- the value for thedataAttributesrecord componentcompany- the value for thecompanyrecord componentrows- the value for therowsrecord componentdbFieldMap- the value for thedbFieldMaprecord componentdbObjectMap- the value for thedbObjectMaprecord componentpooledConnection- the value for thepooledConnectionrecord componentskipRows- the value for theskipRowsrecord componentmaxRows- the value for themaxRowsrecord componentdbObjectMapByColumn- the value for thedbObjectMapByColumnrecord component
-
-
Method Details
-
getDataAttributes
Description copied from interface:DataAttributesHolder- Specified by:
getDataAttributesin interfaceDataAttributesHolder- Returns:
- a
List<DataAttribute> about theEDMdata attributes.
-
setDataAttributes
Description copied from interface:DataAttributesHolderSets the provideddataAttributes.- Specified by:
setDataAttributesin interfaceDataAttributesHolder- Parameters:
dataAttributes-List<DataAttribute> about theEDMdata attributes to be set.
-
dataAttributes
Returns the value of thedataAttributesrecord component.- Returns:
- the value of the
dataAttributesrecord component
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
company
Returns the value of thecompanyrecord component.- Returns:
- the value of the
companyrecord component
-
rows
Returns the value of therowsrecord component.- Returns:
- the value of the
rowsrecord component
-
dbFieldMap
Returns the value of thedbFieldMaprecord component.- Returns:
- the value of the
dbFieldMaprecord component
-
dbObjectMap
Returns the value of thedbObjectMaprecord component.- Returns:
- the value of the
dbObjectMaprecord component
-
pooledConnection
Returns the value of thepooledConnectionrecord component.- Returns:
- the value of the
pooledConnectionrecord component
-
skipRows
public int skipRows()Returns the value of theskipRowsrecord component.- Returns:
- the value of the
skipRowsrecord component
-
maxRows
public int maxRows()Returns the value of themaxRowsrecord component.- Returns:
- the value of the
maxRowsrecord component
-
dbObjectMapByColumn
Returns the value of thedbObjectMapByColumnrecord component.- Returns:
- the value of the
dbObjectMapByColumnrecord component
-