- java.lang.Object
-
- org.jooq.meta.AbstractDefinition
-
- org.jooq.meta.AbstractElementContainerDefinition<AttributeDefinition>
-
- org.jooq.meta.AbstractUDTDefinition
-
- All Implemented Interfaces:
Definition,PackageDefinition,UDTDefinition
- Direct Known Subclasses:
PostgresUDTDefinition
public abstract class AbstractUDTDefinition extends AbstractElementContainerDefinition<AttributeDefinition> implements UDTDefinition
Abstract base implementation forUDTDefinition's- Author:
- Lukas Eder
-
-
Field Summary
-
Fields inherited from class org.jooq.meta.AbstractElementContainerDefinition
PRECISION_SCALE
-
-
Constructor Summary
Constructors Constructor Description AbstractUDTDefinition(SchemaDefinition schema, String name, String comment)AbstractUDTDefinition(SchemaDefinition schema, PackageDefinition pkg, String name, boolean synthetic, String comment)AbstractUDTDefinition(SchemaDefinition schema, PackageDefinition pkg, String name, String comment)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description AttributeDefinitiongetAttribute(int attributeIndex)Get an attribute in this UDT by its index (starting at 0)AttributeDefinitiongetAttribute(String attributeName)Get an attribute in this UDT by its nameList<AttributeDefinition>getAttributes()All attributes in the UDTList<AttributeDefinition>getConstants()Fetch all constants from the package.List<RoutineDefinition>getRoutines()All routines in the UDTprotected abstract List<RoutineDefinition>getRoutines0()List<UDTDefinition>getUDTs()Fetch all UDTs from the package.booleanisSynthetic()Whether this UDT is a synthetic type.-
Methods inherited from class org.jooq.meta.AbstractElementContainerDefinition
getElement, getElement, getElement, getElements, getElements0, parseNotNull, parsePrecision, parseScale, parseTypeName
-
Methods inherited from class org.jooq.meta.AbstractDefinition
create, create, equals, getCatalog, getComment, getConnection, getDatabase, getDefinitionPath, getDialect, getInputName, getName, getOutputName, getOverload, getPackage, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSource, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jooq.meta.Definition
getCatalog, getComment, getDatabase, getDefinitionPath, getInputName, getName, getOutputName, getOverload, getPackage, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSource
-
-
-
-
Constructor Detail
-
AbstractUDTDefinition
public AbstractUDTDefinition(SchemaDefinition schema, String name, String comment)
-
AbstractUDTDefinition
public AbstractUDTDefinition(SchemaDefinition schema, PackageDefinition pkg, String name, String comment)
-
AbstractUDTDefinition
public AbstractUDTDefinition(SchemaDefinition schema, PackageDefinition pkg, String name, boolean synthetic, String comment)
-
-
Method Detail
-
getAttributes
public final List<AttributeDefinition> getAttributes()
Description copied from interface:UDTDefinitionAll attributes in the UDT- Specified by:
getAttributesin interfaceUDTDefinition
-
getAttribute
public final AttributeDefinition getAttribute(String attributeName)
Description copied from interface:UDTDefinitionGet an attribute in this UDT by its name- Specified by:
getAttributein interfaceUDTDefinition
-
getAttribute
public final AttributeDefinition getAttribute(int attributeIndex)
Description copied from interface:UDTDefinitionGet an attribute in this UDT by its index (starting at 0)- Specified by:
getAttributein interfaceUDTDefinition
-
getRoutines
public final List<RoutineDefinition> getRoutines()
Description copied from interface:UDTDefinitionAll routines in the UDT- Specified by:
getRoutinesin interfacePackageDefinition- Specified by:
getRoutinesin interfaceUDTDefinition
-
getUDTs
public List<UDTDefinition> getUDTs()
Description copied from interface:PackageDefinitionFetch all UDTs from the package.- Specified by:
getUDTsin interfacePackageDefinition
-
getRoutines0
protected abstract List<RoutineDefinition> getRoutines0()
-
getConstants
public List<AttributeDefinition> getConstants()
Description copied from interface:PackageDefinitionFetch all constants from the package.- Specified by:
getConstantsin interfacePackageDefinition
-
isSynthetic
public boolean isSynthetic()
Description copied from interface:UDTDefinitionWhether this UDT is a synthetic type.- Specified by:
isSyntheticin interfaceUDTDefinition
-
-