Interface RelationalStruct
- All Known Subinterfaces:
RelationalResultSet
A
Struct but with metadata describing the instance.-
Method Summary
Modifier and TypeMethodDescriptiongetArray(int oneBasedPosition) default Object[]default Object[]getAttributes(Map<String, Class<?>> map) booleangetBoolean(int oneBasedPosition) booleangetBoolean(String fieldName) byte[]getBytes(int oneBasedPosition) byte[]doublegetDouble(int oneBasedPosition) doublefloatgetFloat(int oneBasedPosition) floatintgetInt(int oneBasedPosition) intlonggetLong(int oneBasedPosition) longgetObject(int oneBasedPosition) static intgetOneBasedPosition(String columnName, RelationalStruct relationalStruct) Utility for figuring out one-based-position of a column when passed columnName.default StringgetString(int oneBasedPosition) getStruct(int oneBasedPosition) getUUID(int oneBasedPosition) default booleanisWrapperFor(Class<?> iface) default <T> TbooleanwasNull()Reports whether the last column read had a value of SQL NULL.
-
Method Details
-
getMetaData
- Throws:
SQLException
-
getBoolean
- Throws:
SQLException
-
getBoolean
- Throws:
SQLException
-
getInt
- Throws:
SQLException
-
getInt
- Throws:
SQLException
-
getLong
- Throws:
SQLException
-
getLong
- Throws:
SQLException
-
getFloat
- Throws:
SQLException
-
getFloat
- Throws:
SQLException
-
getDouble
- Throws:
SQLException
-
getDouble
- Throws:
SQLException
-
getBytes
- Throws:
SQLException
-
getBytes
- Throws:
SQLException
-
getString
- Throws:
SQLException
-
getString
- Throws:
SQLException
-
getObject
- Throws:
SQLException
-
getObject
- Throws:
SQLException
-
getStruct
- Throws:
SQLException
-
getStruct
- Throws:
SQLException
-
getArray
- Throws:
SQLException
-
getArray
- Throws:
SQLException
-
getUUID
- Throws:
SQLException
-
getUUID
- Throws:
SQLException
-
wasNull
Reports whether the last column read had a value of SQL NULL. SeeResultSet.wasNull()- Throws:
SQLException
-
getSQLTypeName
- Specified by:
getSQLTypeNamein interfaceStruct- Throws:
SQLException
-
getAttributes
- Specified by:
getAttributesin interfaceStruct- Throws:
SQLException
-
getAttributes
- Specified by:
getAttributesin interfaceStruct- Throws:
SQLException
-
unwrap
- Specified by:
unwrapin interfaceWrapper- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperForin interfaceWrapper- Throws:
SQLException
-
getOneBasedPosition
static int getOneBasedPosition(String columnName, RelationalStruct relationalStruct) throws SQLException Utility for figuring out one-based-position of a column when passed columnName.- Parameters:
columnName- Name to lookup.relationalStruct- Where to do the lookup.- Returns:
- One-based positional index to use accessing the column.
- Throws:
SQLException- Thrown if we can't find matching column of we have trouble getting metadata.
-