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) boolean
getBoolean
(int oneBasedPosition) boolean
getBoolean
(String fieldName) byte[]
getBytes
(int oneBasedPosition) byte[]
double
getDouble
(int oneBasedPosition) double
float
getFloat
(int oneBasedPosition) float
int
getInt
(int oneBasedPosition) int
long
getLong
(int oneBasedPosition) long
getObject
(int oneBasedPosition) static int
getOneBasedPosition
(String columnName, RelationalStruct relationalStruct) Utility for figuring out one-based-position of a column when passed columnName.default String
getString
(int oneBasedPosition) getStruct
(int oneBasedPosition) getUUID
(int oneBasedPosition) default boolean
isWrapperFor
(Class<?> iface) default <T> T
boolean
wasNull()
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:
getSQLTypeName
in interfaceStruct
- Throws:
SQLException
-
getAttributes
- Specified by:
getAttributes
in interfaceStruct
- Throws:
SQLException
-
getAttributes
- Specified by:
getAttributes
in interfaceStruct
- Throws:
SQLException
-
unwrap
- Specified by:
unwrap
in interfaceWrapper
- Throws:
SQLException
-
isWrapperFor
- Specified by:
isWrapperFor
in 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.
-