public abstract class AbstractView extends DataGrainElement
MAX_IDENTIFIER_LENGTH
Constructor and Description |
---|
AbstractView(GrainPart grainPart,
String name) |
Modifier and Type | Method and Description |
---|---|
Map<String,Expr> |
getAggregateColumns() |
int |
getColumnIndex(String name)
Returns column index by column name.
|
Column<?> |
getColumnRef(String colName)
Returns column reference by column name.
|
abstract Map<String,? extends ColumnMeta<?>> |
getColumns()
Returns a map of columns of the view.
|
List<AbstractSelectStmt> |
getSegments() |
void |
selectScript(PrintWriter bw,
SQLGenerator gen)
Writes SELECT script to the stream.
|
delete
getGrain, getGrainPart
equals, getCelestaDoc, getName, getQuotedName, getQuotedNameIfNeeded, hashCode, limitName, limitName, setCelestaDoc
public AbstractView(GrainPart grainPart, String name) throws ParseException
ParseException
public final List<AbstractSelectStmt> getSegments()
public void selectScript(PrintWriter bw, SQLGenerator gen) throws IOException
bw
- output streamgen
- SQL generator (visitor)IOException
- if writing to stream failspublic abstract Map<String,? extends ColumnMeta<?>> getColumns()
public int getColumnIndex(String name)
name
- column name.Copyright © 2022 CURS. All rights reserved.