de.mguennewig.pobjects
Class DynamicSelectExpr

java.lang.Object
  extended by de.mguennewig.pobjects.metadata.Declaration
      extended by de.mguennewig.pobjects.metadata.TableExpr
          extended by de.mguennewig.pobjects.metadata.SelectExpr
              extended by de.mguennewig.pobjects.DynamicSelectExpr
All Implemented Interfaces:
SqlEntity, SqlStatement

public final class DynamicSelectExpr
extends SelectExpr

A dynamically created SELECT expression.

A query will always return the results as DynamicRecord instances.

Author:
Michael Günnewig

Field Summary
 
Fields inherited from class de.mguennewig.pobjects.metadata.Declaration
ARGUMENT_CONSTRUCTOR, CLASS_NAME, DESCRIPTOR, GENERATED_CLASS_NAME, POINTER_TYPE, SQL_ARG_COLON, SQL_ARG_DOLLAR, SQL_ARG_NONE, SQL_ARG_QUESTION_MARK
 
Constructor Summary
DynamicSelectExpr(FormDecl form, Parameter[] output, boolean singleRow, java.lang.Object[] sql)
           
 
Method Summary
 
Methods inherited from class de.mguennewig.pobjects.metadata.SelectExpr
getColumn, getColumnByName, getFormDecl, getNumColumns, getNumSqlStatementParts, getOutput, getSchemaName, getSqlFromClause, getSqlStatementPart, isSingleRow, name, setModule
 
Methods inherited from class de.mguennewig.pobjects.metadata.TableExpr
getClassName, isExtensionOf, isWritableClass
 
Methods inherited from class de.mguennewig.pobjects.metadata.Declaration
getDescription, getModule, getName, setDescription, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.mguennewig.pobjects.metadata.SqlEntity
getModule
 

Constructor Detail

DynamicSelectExpr

public DynamicSelectExpr(FormDecl form,
                         Parameter[] output,
                         boolean singleRow,
                         java.lang.Object[] sql)
Parameters:
form - The form that describes the parameters of the statement.
output - An output column of the statement.
singleRow - If true, then the statement returns exactly one row. Default is false.
sql - A list SQL fragments represented by instances of String, InputEntry and TableExpr.
Throws:
java.lang.IllegalArgumentException - if the SQL statement contains invalid fragments.