Class JdbcFieldIndex
java.lang.Object
com.northconcepts.datapipeline.foundations.core.Bean
com.northconcepts.datapipeline.foundations.jdbc.JdbcFieldIndex
- All Implemented Interfaces:
DataExceptionContributor,JsonSerializable,RecordSerializable,XmlSerializable,Serializable
One column of a
JdbcIndex: its name, position in the index and sort direction.- See Also:
-
Field Summary
Fields inherited from interface com.northconcepts.datapipeline.core.RecordSerializable
SERIALIZED_CLASS_NAME, TYPEFields inherited from interface com.northconcepts.datapipeline.core.XmlSerializable
XML_SERIALIZED_CLASS_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromRecord(Record source) Loads this instance's state from a record and returnsthis(for fluid API call chaining).intReturns the column's 1-based position within the index.booleanIndicates if the column is sorted ascending; false for descending or when the database reports no sort order.voidsetAscending(boolean ascending) Indicates if the column is sorted ascending; false for descending or when the database reports no sort order.voidsetColumnName(String columnName) voidsetOrdinalPosition(int ordinalPosition) Sets the column's 1-based position within the index.toRecord()Converts this object's state to a record thatRecordSerializable.fromRecord(Record)can load.Methods inherited from class com.northconcepts.datapipeline.foundations.core.Bean
addExceptionProperties, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.northconcepts.datapipeline.core.DataExceptionContributor
addExceptionProperties, exception, exception, exceptionMethods inherited from interface com.northconcepts.datapipeline.core.RecordSerializable
fromJson, fromJson, toJson, toJson, toJsonMethods inherited from interface com.northconcepts.datapipeline.core.XmlSerializable
fromXml, fromXml, fromXmlElement, toXml, toXml, toXml, toXml, toXml, toXmlElement
-
Constructor Details
-
JdbcFieldIndex
public JdbcFieldIndex() -
JdbcFieldIndex
-
-
Method Details
-
getColumnName
-
setColumnName
-
getOrdinalPosition
public int getOrdinalPosition()Returns the column's 1-based position within the index. -
setOrdinalPosition
public void setOrdinalPosition(int ordinalPosition) Sets the column's 1-based position within the index. -
isAscending
public boolean isAscending()Indicates if the column is sorted ascending; false for descending or when the database reports no sort order. -
setAscending
public void setAscending(boolean ascending) Indicates if the column is sorted ascending; false for descending or when the database reports no sort order. -
toRecord
Description copied from interface:RecordSerializableConverts this object's state to a record thatRecordSerializable.fromRecord(Record)can load.- Specified by:
toRecordin interfaceRecordSerializable- Overrides:
toRecordin classBean
-
fromRecord
Description copied from interface:RecordSerializableLoads this instance's state from a record and returnsthis(for fluid API call chaining). For fluid API call chaining, the overridden method should change the declared return type to its class.- Specified by:
fromRecordin interfaceRecordSerializable- Overrides:
fromRecordin classBean- Parameters:
source-- Returns:
- this instance.
-