de.mguennewig.pobjects.metadata
Interface SqlStatement

All Known Implementing Classes:
CommandDecl, DynamicSelectExpr, SelectExpr, ViewDecl

public interface SqlStatement

Interface describing a declaration that contains a SQL statement.

The SQL statement is represented by a list of String, Parameter and ClassDecl or ViewDecl instances.

The SQL statement is constructed from this by replacing all Parameter instances with a placeholder for the indicated input parameter, and ClassDecl and ViewDecl with the fully qualified table/view name.

Author:
Michael Günnewig

Method Summary
 int getNumSqlStatementParts()
          Returns the number of SQL statement parts.
 java.lang.Object getSqlStatementPart(int n)
          Returns the nth part of the SQL statement.
 java.lang.String name(int variant)
           
 

Method Detail

getNumSqlStatementParts

int getNumSqlStatementParts()
Returns the number of SQL statement parts.


getSqlStatementPart

java.lang.Object getSqlStatementPart(int n)
Returns the nth part of the SQL statement.


name

java.lang.String name(int variant)