Package com.hazelcast.sql
Class SqlRowMetadata
java.lang.Object
com.hazelcast.sql.SqlRowMetadata
SQL row metadata.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConstant indicating that the column is not found. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintfindColumn(String columnName) Find index of the column with the given name.getColumn(int index) Gets column metadata.intGets the number of columns in the row.Gets columns metadata.inthashCode()toString()
-
Field Details
-
COLUMN_NOT_FOUND
public static final int COLUMN_NOT_FOUNDConstant indicating that the column is not found.- See Also:
-
-
Constructor Details
-
SqlRowMetadata
-
-
Method Details
-
getColumnCount
public int getColumnCount()Gets the number of columns in the row.- Returns:
- the number of columns in the row
-
getColumn
Gets column metadata.- Parameters:
index- column index, zero-based- Returns:
- column metadata
- Throws:
IndexOutOfBoundsException- If the column index is out of bounds
-
getColumns
Gets columns metadata.- Returns:
- columns metadata
-
findColumn
Find index of the column with the given name. Returned index can be used to get column value fromSqlRow.- Parameters:
columnName- column name (case sensitive)- Returns:
- column index or
COLUMN_NOT_FOUNDif a column with the given name is not found - Throws:
NullPointerException- if column name is null- See Also:
-
equals
-
hashCode
public int hashCode() -
toString
-