org.sql.generation.implementation.vendor
Class DefaultVendor

java.lang.Object
  extended by org.sql.generation.implementation.vendor.DefaultVendor
All Implemented Interfaces:
SQLVendor
Direct Known Subclasses:
MySQLVendorImpl, PostgreSQLVendorImpl

public class DefaultVendor
extends java.lang.Object
implements SQLVendor

Author:
Stanislav Muhametsin

Nested Class Summary
protected static interface DefaultVendor.Callback<T>
           
 
Field Summary
protected static DefaultVendor.Callback<BooleanFactory> BOOLEAN_FACTORY
           
protected static DefaultVendor.Callback<ColumnsFactory> COLUMNS_FACTORY
           
protected static DefaultVendor.Callback<DataTypeFactory> DATA_TYPE_FACTORY
           
protected static DefaultVendor.Callback<DefinitionFactory> DEFINITION_FACTORY
           
protected static DefaultVendor.Callback<LiteralFactory> LITERAL_FACTORY
           
protected static DefaultVendor.Callback<ManipulationFactory> MANIPULATION_FACTORY
           
protected static DefaultVendor.Callback<ModificationFactory> MODIFICATION_FACTORY
           
protected static DefaultVendor.Callback<QueryFactory> QUERY_FACTORY
           
protected static DefaultVendor.Callback<TableReferenceFactory> TABLE_REFERENCE_FACTORY
           
 
Constructor Summary
  DefaultVendor()
           
protected DefaultVendor(SQLProcessorAggregator processor)
           
protected DefaultVendor(SQLProcessorAggregator processor, DefaultVendor.Callback<? extends BooleanFactory> booleanFactory, DefaultVendor.Callback<? extends ColumnsFactory> columnsFactory, DefaultVendor.Callback<? extends LiteralFactory> literalFactory, DefaultVendor.Callback<? extends ModificationFactory> modificationFactory, DefaultVendor.Callback<? extends QueryFactory> queryFactory, DefaultVendor.Callback<? extends TableReferenceFactory> tableReferenceFactory, DefaultVendor.Callback<? extends DefinitionFactory> definitionFactory, DefaultVendor.Callback<? extends ManipulationFactory> manipulationFactory, DefaultVendor.Callback<? extends DataTypeFactory> dataTypeFactory)
           
 
Method Summary
 BooleanFactory getBooleanFactory()
           
 ColumnsFactory getColumnsFactory()
           
 DataTypeFactory getDataTypeFactory()
           
 DefinitionFactory getDefinitionFactory()
           
 LiteralFactory getLiteralFactory()
           
 ManipulationFactory getManipulationFactory()
           
 ModificationFactory getModificationFactory()
           
 QueryFactory getQueryFactory()
           
 TableReferenceFactory getTableReferenceFactory()
           
 java.lang.String toString(SQLStatement statement)
          Note that exactly one string builder is allocated for each statement.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BOOLEAN_FACTORY

protected static final DefaultVendor.Callback<BooleanFactory> BOOLEAN_FACTORY

COLUMNS_FACTORY

protected static final DefaultVendor.Callback<ColumnsFactory> COLUMNS_FACTORY

LITERAL_FACTORY

protected static final DefaultVendor.Callback<LiteralFactory> LITERAL_FACTORY

MODIFICATION_FACTORY

protected static final DefaultVendor.Callback<ModificationFactory> MODIFICATION_FACTORY

QUERY_FACTORY

protected static final DefaultVendor.Callback<QueryFactory> QUERY_FACTORY

TABLE_REFERENCE_FACTORY

protected static final DefaultVendor.Callback<TableReferenceFactory> TABLE_REFERENCE_FACTORY

DEFINITION_FACTORY

protected static final DefaultVendor.Callback<DefinitionFactory> DEFINITION_FACTORY

MANIPULATION_FACTORY

protected static final DefaultVendor.Callback<ManipulationFactory> MANIPULATION_FACTORY

DATA_TYPE_FACTORY

protected static final DefaultVendor.Callback<DataTypeFactory> DATA_TYPE_FACTORY
Constructor Detail

DefaultVendor

public DefaultVendor()

DefaultVendor

protected DefaultVendor(SQLProcessorAggregator processor)

DefaultVendor

protected DefaultVendor(SQLProcessorAggregator processor,
                        DefaultVendor.Callback<? extends BooleanFactory> booleanFactory,
                        DefaultVendor.Callback<? extends ColumnsFactory> columnsFactory,
                        DefaultVendor.Callback<? extends LiteralFactory> literalFactory,
                        DefaultVendor.Callback<? extends ModificationFactory> modificationFactory,
                        DefaultVendor.Callback<? extends QueryFactory> queryFactory,
                        DefaultVendor.Callback<? extends TableReferenceFactory> tableReferenceFactory,
                        DefaultVendor.Callback<? extends DefinitionFactory> definitionFactory,
                        DefaultVendor.Callback<? extends ManipulationFactory> manipulationFactory,
                        DefaultVendor.Callback<? extends DataTypeFactory> dataTypeFactory)
Method Detail

toString

public java.lang.String toString(SQLStatement statement)
Note that exactly one string builder is allocated for each statement.

Specified by:
toString in interface SQLVendor

getQueryFactory

public QueryFactory getQueryFactory()
Specified by:
getQueryFactory in interface SQLVendor

getBooleanFactory

public BooleanFactory getBooleanFactory()
Specified by:
getBooleanFactory in interface SQLVendor

getTableReferenceFactory

public TableReferenceFactory getTableReferenceFactory()
Specified by:
getTableReferenceFactory in interface SQLVendor

getLiteralFactory

public LiteralFactory getLiteralFactory()
Specified by:
getLiteralFactory in interface SQLVendor

getColumnsFactory

public ColumnsFactory getColumnsFactory()
Specified by:
getColumnsFactory in interface SQLVendor

getModificationFactory

public ModificationFactory getModificationFactory()
Specified by:
getModificationFactory in interface SQLVendor

getDefinitionFactory

public DefinitionFactory getDefinitionFactory()
Specified by:
getDefinitionFactory in interface SQLVendor

getManipulationFactory

public ManipulationFactory getManipulationFactory()
Specified by:
getManipulationFactory in interface SQLVendor

getDataTypeFactory

public DataTypeFactory getDataTypeFactory()
Specified by:
getDataTypeFactory in interface SQLVendor


Copyright © 2010. All Rights Reserved.