org.sql.generation.api.vendor
Interface SQLVendor

All Known Subinterfaces:
MySQLVendor, PostgreSQLVendor

public interface SQLVendor

This is the base API interface for all SQLVendors to implement. It gives the means to acquire factories to create SQL syntax elements. Additionally, the vendor creates the textual representation of these syntax elements so that the query may be passed directly to database, for example, through JDBC.

Author:
Stanislav Muhametsin
See Also:
MySQLVendor, PostgreSQLVendor, QueryFactory, BooleanFactory, TableReferenceFactory, LiteralFactory, ColumnsFactory, ModificationFactory, toString(SQLStatement)

Method Summary
 BooleanFactory getBooleanFactory()
          Returns the boolean factory for this vendor.
 ColumnsFactory getColumnsFactory()
          Returns the columns factory for this vendor.
 LiteralFactory getLiteralFactory()
          Returns the literal factory for this vendor.
 ModificationFactory getModificationFactory()
          Returns the factory to create modification statements for this vendor.
 QueryFactory getQueryFactory()
          Returns the query factory of this vendor.
 TableReferenceFactory getTableReferenceFactory()
          Returns the table reference factory for this vendor.
 String toString(SQLStatement statement)
          Takes the SQLStatement (typically either a query, or a modification statement) and produces a textual SQL statement out of it.
 

Method Detail

getQueryFactory

QueryFactory getQueryFactory()
Returns the query factory of this vendor.

Returns:
The query factory of this vendor.
See Also:
QueryFactory, QuerySpecification

getBooleanFactory

BooleanFactory getBooleanFactory()
Returns the boolean factory for this vendor.

Returns:
The boolean factory for this vendor.
See Also:
BooleanFactory

getTableReferenceFactory

TableReferenceFactory getTableReferenceFactory()
Returns the table reference factory for this vendor.

Returns:
The table reference factory for this vendor.
See Also:
TableReferenceFactory

getLiteralFactory

LiteralFactory getLiteralFactory()
Returns the literal factory for this vendor.

Returns:
The literal factory for this vendor.
See Also:
LiteralFactory

getColumnsFactory

ColumnsFactory getColumnsFactory()
Returns the columns factory for this vendor.

Returns:
The columns factory for this vendor.
See Also:
ColumnsFactory

getModificationFactory

ModificationFactory getModificationFactory()
Returns the factory to create modification statements for this vendor.

Returns:
The factory to create modification statements for this vendor.
See Also:
ModificationFactory

toString

String toString(SQLStatement statement)
Takes the SQLStatement (typically either a query, or a modification statement) and produces a textual SQL statement out of it.

Parameters:
statement - The SQLStatement to process.
Returns:
The textual SQL statement to be used directly with database.
See Also:
SQLStatement


Copyright © 2010. All Rights Reserved.