org.jooq.util
Class DefaultMasterDataTableDefinition

java.lang.Object
  extended by org.jooq.util.AbstractDefinition
      extended by org.jooq.util.DefaultMasterDataTableDefinition
All Implemented Interfaces:
Definition, MasterDataTableDefinition, TableDefinition

public class DefaultMasterDataTableDefinition
extends AbstractDefinition
implements MasterDataTableDefinition


Constructor Summary
DefaultMasterDataTableDefinition(TableDefinition delegate)
           
 
Method Summary
 ColumnDefinition getColumn(int columnIndex)
          Get a column in this type by its index (starting at 0)
 ColumnDefinition getColumn(String columnName)
          Get a column in this type by its name
 ColumnDefinition getColumn(String columnName, boolean ignoreCase)
          Get a column in this type by its name
 List<ColumnDefinition> getColumns()
          All columns in the type, table or view
 org.jooq.Result<org.jooq.Record> getData()
          The data contained in the master table
 List<Definition> getDefinitionPath()
           
 ColumnDefinition getDescriptionColumn()
          The column used for generating a description (Javadoc) in the generated class.
 List<ForeignKeyDefinition> getForeignKeys()
          Get the foreign keys for this table
 ColumnDefinition getIdentity()
          Get the IDENTITY column of this table, or null, if no such column exists.
 ColumnDefinition getLiteralColumn()
          The column used for generating literals in the generated class.
 UniqueKeyDefinition getMainUniqueKey()
          Get the primary key or the main unique key for this table
 ColumnDefinition getPrimaryKeyColumn()
          The primary key for this master data table.
 org.jooq.Table<org.jooq.Record> getTable()
          This TableDefinition as a Table
 List<UniqueKeyDefinition> getUniqueKeys()
          Get the unique keys for this table
 
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, getInputName, getName, getOutputName, getOverload, getQualifiedInputName, getQualifiedName, getQualifiedOutputName, getSchema
 

Constructor Detail

DefaultMasterDataTableDefinition

public DefaultMasterDataTableDefinition(TableDefinition delegate)
Method Detail

getDefinitionPath

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

getPrimaryKeyColumn

public ColumnDefinition getPrimaryKeyColumn()
Description copied from interface: MasterDataTableDefinition
The primary key for this master data table. This will not be null.

Specified by:
getPrimaryKeyColumn in interface MasterDataTableDefinition

getLiteralColumn

public ColumnDefinition getLiteralColumn()
Description copied from interface: MasterDataTableDefinition
The column used for generating literals in the generated class. This may be null.

Specified by:
getLiteralColumn in interface MasterDataTableDefinition

getDescriptionColumn

public ColumnDefinition getDescriptionColumn()
Description copied from interface: MasterDataTableDefinition
The column used for generating a description (Javadoc) in the generated class. This may be null.

Specified by:
getDescriptionColumn in interface MasterDataTableDefinition

getData

public org.jooq.Result<org.jooq.Record> getData()
Description copied from interface: MasterDataTableDefinition
The data contained in the master table

Specified by:
getData in interface MasterDataTableDefinition

getMainUniqueKey

public UniqueKeyDefinition getMainUniqueKey()
Description copied from interface: TableDefinition
Get the primary key or the main unique key for this table

Specified by:
getMainUniqueKey in interface TableDefinition

getUniqueKeys

public List<UniqueKeyDefinition> getUniqueKeys()
Description copied from interface: TableDefinition
Get the unique keys for this table

Specified by:
getUniqueKeys in interface TableDefinition

getForeignKeys

public List<ForeignKeyDefinition> getForeignKeys()
Description copied from interface: TableDefinition
Get the foreign keys for this table

Specified by:
getForeignKeys in interface TableDefinition

getIdentity

public ColumnDefinition getIdentity()
Description copied from interface: TableDefinition
Get the IDENTITY column of this table, or null, if no such column exists.

Specified by:
getIdentity in interface TableDefinition

getColumns

public List<ColumnDefinition> getColumns()
Description copied from interface: TableDefinition
All columns in the type, table or view

Specified by:
getColumns in interface TableDefinition

getColumn

public ColumnDefinition getColumn(String columnName)
Description copied from interface: TableDefinition
Get a column in this type by its name

Specified by:
getColumn in interface TableDefinition

getColumn

public ColumnDefinition getColumn(String columnName,
                                  boolean ignoreCase)
Description copied from interface: TableDefinition
Get a column in this type by its name

Specified by:
getColumn in interface TableDefinition

getColumn

public ColumnDefinition getColumn(int columnIndex)
Description copied from interface: TableDefinition
Get a column in this type by its index (starting at 0)

Specified by:
getColumn in interface TableDefinition

getTable

public org.jooq.Table<org.jooq.Record> getTable()
Description copied from interface: TableDefinition
This TableDefinition as a Table

Specified by:
getTable in interface TableDefinition


Copyright © 2012. All Rights Reserved.