public class View extends AbstractView
MAX_IDENTIFIER_LENGTH
Constructor and Description |
---|
View(GrainPart grainPart,
String name,
String sql) |
Modifier and Type | Method and Description |
---|---|
void |
createViewScript(PrintWriter bw,
SQLGenerator gen)
Creates CREATE VIEW script in different SQL dialects by using 'visitor' pattern.
|
Map<String,ViewColumnMeta<?>> |
getColumns()
Returns a map of columns of the view.
|
getAggregateColumns, getColumnIndex, getColumnRef, getSegments, selectScript
delete
getGrain, getGrainPart
equals, getCelestaDoc, getName, getQuotedName, getQuotedNameIfNeeded, hashCode, limitName, limitName, setCelestaDoc
public View(GrainPart grainPart, String name, String sql) throws ParseException
ParseException
public final Map<String,ViewColumnMeta<?>> getColumns()
AbstractView
getColumns
in interface HasColumns
getColumns
in class AbstractView
public void createViewScript(PrintWriter bw, SQLGenerator gen) throws IOException
bw
- stream that the saving is performed intogen
- generator-visitorIOException
- error on writing to streamCopyright © 2023 CURS. All rights reserved.