-
- Type Parameters:
R- The record type
- All Superinterfaces:
Named,QueryPart,Serializable
- All Known Implementing Classes:
UDTImpl
public interface UDT<R extends UDTRecord<R>> extends Named
UDT definition.Instances of this type cannot be created directly. They are available from generated code.
- Author:
- Lukas Eder
-
-
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(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(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.RowfieldsRow()Get this UDT's fields as aRow.Stream<Field<?>>fieldStream()Get this table's fields as aStream.CataloggetCatalog()Get the UDT catalog.DataType<R>getDataType()The UDT's data type as known to the database.PackagegetPackage()Get the UDT package.Class<R>getRecordType()SchemagetSchema()Get the UDT schema.intindexOf(String fieldName)Get a field's index from this udt.intindexOf(Field<?> field)Get a field's index from this udt.intindexOf(Name fieldName)Get a field's index from this udt.booleanisSQLUsable()Whether this data type can be used from SQL statements.booleanisSynthetic()Whether this data type is a synthetic, structural UDT type.RnewRecord()Create a newRecordof this UDT's type.-
Methods inherited from interface org.jooq.Named
getComment, getName, getQualifiedName, getUnqualifiedName
-
-
-
-
Method Detail
-
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.
nullotherwise.
- See Also:
Row.field(Field)
-
field
Field<?> field(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(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
-1if the field is not contained in this udt.
-
indexOf
int indexOf(String fieldName)
Get a field's index from this udt.- Parameters:
fieldName- The field name to look for- Returns:
- The field's index or
-1if 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
-1if the field is not contained in this udt
-
getCatalog
Catalog getCatalog()
Get the UDT catalog.
-
getSchema
Schema getSchema()
Get the UDT schema.
-
newRecord
R newRecord()
Create a newRecordof 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
truefor example:- For Oracle
TAB%ROWTYPEreferences, which are synthetic PL/SQL RECORD types in PL/SQL.
- For Oracle
-
-