org.sql.generation.implementation.grammar.factories
Class DefaultDataTypeFactory

java.lang.Object
  extended by org.sql.generation.implementation.grammar.common.SQLFactoryBase
      extended by org.sql.generation.implementation.grammar.factories.AbstractDataTypeFactory
          extended by org.sql.generation.implementation.grammar.factories.DefaultDataTypeFactory
All Implemented Interfaces:
DataTypeFactory
Direct Known Subclasses:
PgSQLDataTypeFactoryImpl

public class DefaultDataTypeFactory
extends AbstractDataTypeFactory

Author:
Stanislav Muhametsin

Constructor Summary
DefaultDataTypeFactory(SQLVendor vendor, SQLProcessorAggregator processor)
           
 
Method Summary
 BigInt bigInt()
           
 SQLDate date()
           
 SQLInterval dayTimeInterval(IntervalDataType startField, Integer startFieldPrecision, IntervalDataType endField, Integer secondFracs)
           
 Decimal decimal(Integer precision, Integer scale)
           
 DoublePrecision doublePrecision()
           
 SQLInteger integer()
           
 Numeric numeric(Integer precision, Integer scale)
           
 Real real()
           
 SmallInt smallInt()
           
 SQLBoolean sqlBoolean()
           
 SQLChar sqlChar(Integer length)
           
 SQLFloat sqlFloat(Integer precision)
           
 SQLChar sqlVarChar(Integer length)
           
 SQLTime time(Integer precision, Boolean withTimeZone)
           
 SQLTimeStamp timeStamp(Integer precision, Boolean withTimeZone)
           
 UserDefinedType userDefined(String textualContent)
           
 SQLInterval yearMonthInterval(IntervalDataType startField, Integer startFieldPrecision, IntervalDataType endField)
           
 
Methods inherited from class org.sql.generation.implementation.grammar.factories.AbstractDataTypeFactory
decimal, decimal, numeric, numeric, sqlChar, sqlFloat, sqlVarChar, time, time, time, timeStamp, timeStamp, timeStamp
 
Methods inherited from class org.sql.generation.implementation.grammar.common.SQLFactoryBase
getProcessor, getVendor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDataTypeFactory

public DefaultDataTypeFactory(SQLVendor vendor,
                              SQLProcessorAggregator processor)
Method Detail

bigInt

public BigInt bigInt()

decimal

public Decimal decimal(Integer precision,
                       Integer scale)

doublePrecision

public DoublePrecision doublePrecision()

numeric

public Numeric numeric(Integer precision,
                       Integer scale)

real

public Real real()

smallInt

public SmallInt smallInt()

sqlBoolean

public SQLBoolean sqlBoolean()

sqlChar

public SQLChar sqlChar(Integer length)

sqlVarChar

public SQLChar sqlVarChar(Integer length)

date

public SQLDate date()

sqlFloat

public SQLFloat sqlFloat(Integer precision)

integer

public SQLInteger integer()

yearMonthInterval

public SQLInterval yearMonthInterval(IntervalDataType startField,
                                     Integer startFieldPrecision,
                                     IntervalDataType endField)

dayTimeInterval

public SQLInterval dayTimeInterval(IntervalDataType startField,
                                   Integer startFieldPrecision,
                                   IntervalDataType endField,
                                   Integer secondFracs)

time

public SQLTime time(Integer precision,
                    Boolean withTimeZone)

timeStamp

public SQLTimeStamp timeStamp(Integer precision,
                              Boolean withTimeZone)

userDefined

public UserDefinedType userDefined(String textualContent)


Copyright © 2010-2012. All Rights Reserved.