-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Field<?>
field(int index)
Get a specific field from this UDT.Field<?>
field(java.lang.String name)
Get a specific field from this UDT.<T> Field<T>
field(Field<T> field)
Get a specific field from this UDT.Field<?>
field(Name name)
Get a specific field from this UDT.Field<?>[]
fields()
Get all fields from this UDT.Field<?>[]
fields(int... fieldIndexes)
Get all fields from this UDT, providing some field indexes.Field<?>[]
fields(java.lang.String... fieldNames)
Get all fields from this UDT, providing some field names.Field<?>[]
fields(Field<?>... fields)
Get all fields from this UDT, providing some fields.Field<?>[]
fields(Name... fieldNames)
Get all fields from this UDT, providing some field names.Row
fieldsRow()
Get this UDT's fields as aRow
.java.util.stream.Stream<Field<?>>
fieldStream()
Get this table's fields as aStream
.Catalog
getCatalog()
Get the UDT catalog.DataType<R>
getDataType()
The UDT's data type as known to the database.Package
getPackage()
Get the UDT package.java.lang.Class<R>
getRecordType()
Schema
getSchema()
Get the UDT schema.int
indexOf(java.lang.String fieldName)
Get a field's index from this udt.int
indexOf(Field<?> field)
Get a field's index from this udt.int
indexOf(Name fieldName)
Get a field's index from this udt.boolean
isSQLUsable()
Whether this data type can be used from SQL statements.boolean
isSynthetic()
Whether this data type is a synthetic, structural UDT type.R
newRecord()
Create a newRecord
of this UDT's type.-
Methods inherited from interface org.jooq.Named
getComment, getName, getQualifiedName, getUnqualifiedName
-
-
-
-
Method Detail
-
fieldStream
java.util.stream.Stream<Field<?>> fieldStream()
Get this table's fields as aStream
.
-
field
<T> Field<T> field(Field<T> field)
Get a specific field from this UDT.This will return:
- A field that is the same as the argument field (by identity comparison).
- A field that is equal to the argument field (exact matching fully qualified name).
- A field that is equal to the argument field (partially matching qualified name).
- A field whose name is equal to the name of the argument field.
null
otherwise.
- See Also:
Row.field(Field)
-
field
Field<?> field(java.lang.String name)
Get a specific field from this UDT.- See Also:
Row.field(String)
-
field
Field<?> field(Name name)
Get a specific field from this UDT.- See Also:
Row.field(Name)
-
field
Field<?> field(int index)
Get a specific field from this UDT.- See Also:
Row.field(int)
-
fields
Field<?>[] fields()
Get all fields from this UDT.- See Also:
Row.fields()
-
fields
Field<?>[] fields(Field<?>... fields)
Get all fields from this UDT, providing some fields.- Returns:
- All available fields
- See Also:
Row.fields(Field...)
-
fields
Field<?>[] fields(java.lang.String... fieldNames)
Get all fields from this UDT, providing some field names.- Returns:
- All available fields
- See Also:
Row.fields(String...)
-
fields
Field<?>[] fields(Name... fieldNames)
Get all fields from this UDT, providing some field names.- Returns:
- All available fields
- See Also:
Row.fields(Name...)
-
fields
Field<?>[] fields(int... fieldIndexes)
Get all fields from this UDT, providing some field indexes.- Returns:
- All available fields
- See Also:
Row.fields(int...)
-
indexOf
int indexOf(Field<?> field)
Get a field's index from this udt.- Parameters:
field
- The field to look for- Returns:
- The field's index or
-1
if the field is not contained in this udt.
-
indexOf
int indexOf(java.lang.String fieldName)
Get a field's index from this udt.- Parameters:
fieldName
- The field name to look for- Returns:
- The field's index or
-1
if the field is not contained in this udt.
-
indexOf
int indexOf(Name fieldName)
Get a field's index from this udt.- Parameters:
fieldName
- The field name to look for- Returns:
- The field's index or
-1
if the field is not contained in this udt
-
getCatalog
Catalog getCatalog()
Get the UDT catalog.
-
getSchema
Schema getSchema()
Get the UDT schema.
-
getRecordType
java.lang.Class<R> getRecordType()
- Returns:
- The record type produced by this table.
-
newRecord
R newRecord()
Create a newRecord
of this UDT's type.- See Also:
DSLContext.newRecord(UDT)
-
isSQLUsable
boolean isSQLUsable()
Whether this data type can be used from SQL statements.
-
isSynthetic
boolean isSynthetic()
Whether this data type is a synthetic, structural UDT type.This is
true
for example:- For Oracle
TAB%ROWTYPE
references, which are synthetic PL/SQL RECORD types in PL/SQL.
- For Oracle
-
-