Package ru.curs.celesta.score
Class View
-
- All Implemented Interfaces:
HasColumns
- Direct Known Subclasses:
ParameterizedView
public class View extends AbstractView
View object in metadata.
-
-
Field Summary
-
Fields inherited from class ru.curs.celesta.score.NamedElement
MAX_IDENTIFIER_LENGTH
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class ru.curs.celesta.score.AbstractView
getAggregateColumns, getColumnIndex, getColumnRef, getSegments, selectScript
-
Methods inherited from class ru.curs.celesta.score.DataGrainElement
delete
-
Methods inherited from class ru.curs.celesta.score.GrainElement
getGrain, getGrainPart
-
Methods inherited from class ru.curs.celesta.score.NamedElement
equals, getCelestaDoc, getName, getQuotedName, getQuotedNameIfNeeded, hashCode, limitName, limitName, setCelestaDoc
-
-
-
-
Constructor Detail
-
View
public View(GrainPart grainPart, String name, String sql) throws ParseException
- Throws:
ParseException
-
-
Method Detail
-
getColumns
public final Map<String,ViewColumnMeta<?>> getColumns()
Description copied from class:AbstractView
Returns a map of columns of the view.- Specified by:
getColumns
in interfaceHasColumns
- Specified by:
getColumns
in classAbstractView
-
createViewScript
public void createViewScript(PrintWriter bw, SQLGenerator gen) throws IOException
Creates CREATE VIEW script in different SQL dialects by using 'visitor' pattern.- Parameters:
bw
- stream that the saving is performed intogen
- generator-visitor- Throws:
IOException
- error on writing to stream
-
-