org.jooq.util
Class AbstractUDTDefinition

java.lang.Object
  extended by org.jooq.util.AbstractDefinition
      extended by org.jooq.util.AbstractElementContainerDefinition<AttributeDefinition>
          extended by org.jooq.util.AbstractUDTDefinition
All Implemented Interfaces:
Definition, PackageDefinition, UDTDefinition
Direct Known Subclasses:
DB2UDTDefinition, OracleUDTDefinition, PostgresUDTDefinition

public abstract class AbstractUDTDefinition
extends AbstractElementContainerDefinition<AttributeDefinition>
implements UDTDefinition

Abstract base implementation for UDTDefinition's

Author:
Lukas Eder

Field Summary
 
Fields inherited from class org.jooq.util.AbstractElementContainerDefinition
PRECISION_SCALE
 
Constructor Summary
AbstractUDTDefinition(SchemaDefinition schema, String name, String comment)
           
 
Method Summary
 AttributeDefinition getAttribute(int attributeIndex)
          Get an attribute in this UDT by its index (starting at 0)
 AttributeDefinition getAttribute(String attributeName)
          Get an attribute in this UDT by its name
 List<AttributeDefinition> getAttributes()
          All attributes in the UDT
 List<RoutineDefinition> getRoutines()
          All routines in the UDT
protected abstract  List<RoutineDefinition> getRoutines0()
           
 
Methods inherited from class org.jooq.util.AbstractElementContainerDefinition
getDefinitionPath, getElement, getElement, getElement, getElements, getElements0, parseNotNull, parsePrecision, parseScale
 
Methods inherited from class org.jooq.util.AbstractDefinition
create, equals, getComment, getConnection, getDatabase, getDialect, getInputName, getName, getOutputName, getOverload, getQualifiedInputName, getQualifiedName, getQualifiedOutputName, getSchema, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jooq.util.Definition
getComment, getDatabase, getDefinitionPath, getInputName, getName, getOutputName, getOverload, getQualifiedInputName, getQualifiedName, getQualifiedOutputName, getSchema
 

Constructor Detail

AbstractUDTDefinition

public AbstractUDTDefinition(SchemaDefinition schema,
                             String name,
                             String comment)
Method Detail

getAttributes

public final List<AttributeDefinition> getAttributes()
Description copied from interface: UDTDefinition
All attributes in the UDT

Specified by:
getAttributes in interface UDTDefinition

getAttribute

public final AttributeDefinition getAttribute(String attributeName)
Description copied from interface: UDTDefinition
Get an attribute in this UDT by its name

Specified by:
getAttribute in interface UDTDefinition

getAttribute

public final AttributeDefinition getAttribute(int attributeIndex)
Description copied from interface: UDTDefinition
Get an attribute in this UDT by its index (starting at 0)

Specified by:
getAttribute in interface UDTDefinition

getRoutines

public final List<RoutineDefinition> getRoutines()
Description copied from interface: UDTDefinition
All routines in the UDT

Specified by:
getRoutines in interface PackageDefinition
Specified by:
getRoutines in interface UDTDefinition

getRoutines0

protected abstract List<RoutineDefinition> getRoutines0()


Copyright © 2012. All Rights Reserved.