Module org.jooq.meta
Package org.jooq.meta
Class AbstractTypedElementDefinition<T extends Definition>
- java.lang.Object
-
- org.jooq.meta.AbstractDefinition
-
- org.jooq.meta.AbstractTypedElementDefinition<T>
-
- All Implemented Interfaces:
Definition,TypedElementDefinition<T>
- Direct Known Subclasses:
DefaultAttributeDefinition,DefaultColumnDefinition,DefaultDomainDefinition,DefaultEmbeddableColumnDefinition,DefaultIndexColumnDefinition,DefaultParameterDefinition,DefaultSequenceDefinition
public abstract class AbstractTypedElementDefinition<T extends Definition> extends AbstractDefinition implements TypedElementDefinition<T>
-
-
Constructor Summary
Constructors Constructor Description AbstractTypedElementDefinition(T container, String name, int position, DataTypeDefinition definedType, String comment)AbstractTypedElementDefinition(T container, String name, int position, DataTypeDefinition definedType, String comment, String overload)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CustomTypecustomType(Database db, ForcedType forcedType)TgetContainer()The container that contains this typed element.static DataType<?>getDataType(Database db, String t, int p, int s)DataTypeDefinitiongetDefinedType()The column / parameter type as declared in the database (prior to applying forced types).List<Definition>getDefinitionPath()DomainDefinitiongetDomain()The column / parameter / attribute domain type, ornull, if it does not reference a domain.DataTypeDefinitiongetType()The column / parameter / attribute type after applying forced types.DataTypeDefinitiongetType(JavaTypeResolver resolver)The column / parameter / attribute type after applying forced types and resolving theDataTypeDefinition.getJavaType().static DataTypeDefinitionmapDefinedType(Definition container, Definition child, DataTypeDefinition definedType, JavaTypeResolver resolver)-
Methods inherited from class org.jooq.meta.AbstractDefinition
create, create, equals, getCatalog, getComment, getConnection, getDatabase, 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, getInputName, getName, getOutputName, getOverload, getPackage, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSource
-
-
-
-
Constructor Detail
-
AbstractTypedElementDefinition
public AbstractTypedElementDefinition(T container, String name, int position, DataTypeDefinition definedType, String comment)
-
AbstractTypedElementDefinition
public AbstractTypedElementDefinition(T container, String name, int position, DataTypeDefinition definedType, String comment, String overload)
-
-
Method Detail
-
getContainer
public final T getContainer()
Description copied from interface:TypedElementDefinitionThe container that contains this typed element.- Specified by:
getContainerin interfaceTypedElementDefinition<T extends Definition>
-
getDefinitionPath
public List<Definition> getDefinitionPath()
- Specified by:
getDefinitionPathin interfaceDefinition- Overrides:
getDefinitionPathin classAbstractDefinition- Returns:
- A path of definitions for this definition, e.g.
[schema].[package].[routine].[parameter]
-
getType
public DataTypeDefinition getType()
Description copied from interface:TypedElementDefinitionThe column / parameter / attribute type after applying forced types.- Specified by:
getTypein interfaceTypedElementDefinition<T extends Definition>
-
getType
public DataTypeDefinition getType(JavaTypeResolver resolver)
Description copied from interface:TypedElementDefinitionThe column / parameter / attribute type after applying forced types and resolving theDataTypeDefinition.getJavaType().- Specified by:
getTypein interfaceTypedElementDefinition<T extends Definition>
-
getDefinedType
public DataTypeDefinition getDefinedType()
Description copied from interface:TypedElementDefinitionThe column / parameter type as declared in the database (prior to applying forced types).- Specified by:
getDefinedTypein interfaceTypedElementDefinition<T extends Definition>
-
mapDefinedType
public static final DataTypeDefinition mapDefinedType(Definition container, Definition child, DataTypeDefinition definedType, JavaTypeResolver resolver)
-
customType
public static final CustomType customType(Database db, ForcedType forcedType)
-
getDomain
public final DomainDefinition getDomain()
Description copied from interface:TypedElementDefinitionThe column / parameter / attribute domain type, ornull, if it does not reference a domain.- Specified by:
getDomainin interfaceTypedElementDefinition<T extends Definition>
-
-