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 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<LiteralFactory> LITERAL_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)
           
 
Method Summary
 BooleanFactory getBooleanFactory()
           
 ColumnsFactory getColumnsFactory()
           
 LiteralFactory getLiteralFactory()
           
 ModificationFactory getModificationFactory()
           
 QueryFactory getQueryFactory()
           
 TableReferenceFactory getTableReferenceFactory()
           
 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
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)
Method Detail

toString

public 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


Copyright © 2010. All Rights Reserved.