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.
|
Map<String,TableRef> |
getTables() |
void |
selectScript(PrintWriter bw,
SQLGenerator gen)
Writes SELECT script to the stream.
|
deletegetGrain, getGrainPartequals, getCelestaDoc, getName, getQuotedName, getQuotedNameIfNeeded, hashCode, limitName, limitName, setCelestaDocpublic AbstractView(GrainPart grainPart, String name) throws ParseException
ParseExceptionpublic 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 © 2020 CURS. All rights reserved.