org.jooq.util
Class AbstractElementContainerDefinition<E extends TypedElementDefinition<?>>

java.lang.Object
  extended by org.jooq.util.AbstractDefinition
      extended by org.jooq.util.AbstractElementContainerDefinition<E>
All Implemented Interfaces:
Definition
Direct Known Subclasses:
AbstractTableDefinition, AbstractUDTDefinition

public abstract class AbstractElementContainerDefinition<E extends TypedElementDefinition<?>>
extends AbstractDefinition

A base implementation for element container definitions

Author:
Lukas Eder

Field Summary
protected static Pattern PRECISION_SCALE
          Precision and scale for those dialects that don't formally provide that information in a separate field
 
Constructor Summary
AbstractElementContainerDefinition(SchemaDefinition schema, String name, String comment)
           
 
Method Summary
 List<Definition> getDefinitionPath()
           
protected  E getElement(int index)
           
protected  E getElement(String name)
           
protected  E getElement(String name, boolean ignoreCase)
           
protected  List<E> getElements()
           
protected abstract  List<E> getElements0()
           
protected  boolean parseNotNull(String typeName)
           
protected  Number parsePrecision(String typeName)
           
protected  Number parseScale(String typeName)
           
 
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
 

Field Detail

PRECISION_SCALE

protected static final Pattern PRECISION_SCALE
Precision and scale for those dialects that don't formally provide that information in a separate field

Constructor Detail

AbstractElementContainerDefinition

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

getDefinitionPath

public final List<Definition> getDefinitionPath()
Returns:
A path of definitions for this definition, e.g. [schema].[package].[routine].[parameter]

getElements

protected final List<E> getElements()

getElement

protected final E getElement(String name)

getElement

protected final E getElement(String name,
                             boolean ignoreCase)

getElement

protected final E getElement(int index)

getElements0

protected abstract List<E> getElements0()
                                                                   throws SQLException
Throws:
SQLException

parsePrecision

protected Number parsePrecision(String typeName)

parseScale

protected Number parseScale(String typeName)

parseNotNull

protected boolean parseNotNull(String typeName)


Copyright © 2012. All Rights Reserved.