org.sqlproc.engine.impl
Class SqlDatabaseTable

java.lang.Object
  extended by org.sqlproc.engine.impl.SqlDatabaseTable
All Implemented Interfaces:
SqlMetaElement, SqlMetaSimple

 class SqlDatabaseTable
extends Object
implements SqlMetaSimple

A META SQL sub-element. It represents the name of a database table, which is a text without any semantic value for a META SQL generation.

Author:
Vladimir Hudec

Field Summary
(package private)  org.slf4j.Logger logger
          The internal slf4j logger.
private  String name
          The name of a database table.
 
Fields inherited from interface org.sqlproc.engine.impl.SqlMetaElement
AND_PREFIX, CONST_PREFIX, IDENT_PREFIX, IDENT_SEPARATOR, lCONST_PREFIX, lIDENT_PREFIX, OR_PREFIX, SET_PREFIX, VALUES_PREFIX, WHERE_PREFIX
 
Constructor Summary
SqlDatabaseTable(String name)
          Creates a new instance.
 
Method Summary
 SqlProcessResult process(SqlProcessContext ctx)
          The main contract for a dynamic ANSI SQL Query generation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

final org.slf4j.Logger logger
The internal slf4j logger.


name

private String name
The name of a database table.

Constructor Detail

SqlDatabaseTable

SqlDatabaseTable(String name)
Creates a new instance. It's used from inside ANTLR parser.

Parameters:
name - the name of a database table
Method Detail

process

public SqlProcessResult process(SqlProcessContext ctx)
The main contract for a dynamic ANSI SQL Query generation. Also known as a META SQL processing. The composite pattern main contract. All ANTLR grammar based elements must implement this contract.

Specified by:
process in interface SqlMetaElement
Parameters:
ctx - the crate for all input parameters and the context of processing


Copyright © 2013. All Rights Reserved.