org.jooq.util
Class MasterDataTypeDefinition

java.lang.Object
  extended by org.jooq.util.MasterDataTypeDefinition
All Implemented Interfaces:
DataTypeDefinition

public class MasterDataTypeDefinition
extends Object
implements DataTypeDefinition

Author:
Lukas Eder

Constructor Summary
MasterDataTypeDefinition(TableDefinition table, DataTypeDefinition underlying)
           
 
Method Summary
 Database getDatabase()
          The underlying database
 int getLength()
          The type's length
 int getPrecision()
          The type's precision
 int getScale()
          The type's scale
 SchemaDefinition getSchema()
          The underlying schema
 String getType()
          The dialect-specific column type
 String getUserType()
          The user type, if applicable
 boolean isGenericNumberType()
          Whether this data type is a NUMBER type without precision and scale
 boolean isUDT()
          Whether this data type represents a udt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MasterDataTypeDefinition

public MasterDataTypeDefinition(TableDefinition table,
                                DataTypeDefinition underlying)
Method Detail

getType

public final String getType()
Description copied from interface: DataTypeDefinition
The dialect-specific column type

Specified by:
getType in interface DataTypeDefinition

getLength

public final int getLength()
Description copied from interface: DataTypeDefinition
The type's length

Specified by:
getLength in interface DataTypeDefinition

getPrecision

public final int getPrecision()
Description copied from interface: DataTypeDefinition
The type's precision

Specified by:
getPrecision in interface DataTypeDefinition

getScale

public final int getScale()
Description copied from interface: DataTypeDefinition
The type's scale

Specified by:
getScale in interface DataTypeDefinition

getUserType

public final String getUserType()
Description copied from interface: DataTypeDefinition
The user type, if applicable

Specified by:
getUserType in interface DataTypeDefinition

isGenericNumberType

public final boolean isGenericNumberType()
Description copied from interface: DataTypeDefinition
Whether this data type is a NUMBER type without precision and scale

Specified by:
isGenericNumberType in interface DataTypeDefinition

isUDT

public final boolean isUDT()
Description copied from interface: DataTypeDefinition
Whether this data type represents a udt

Specified by:
isUDT in interface DataTypeDefinition

getDatabase

public final Database getDatabase()
Description copied from interface: DataTypeDefinition
The underlying database

Specified by:
getDatabase in interface DataTypeDefinition

getSchema

public final SchemaDefinition getSchema()
Description copied from interface: DataTypeDefinition
The underlying schema

Specified by:
getSchema in interface DataTypeDefinition


Copyright © 2012. All Rights Reserved.