Package ru.curs.celesta.score
Class ParameterizedView
- java.lang.Object
-
- ru.curs.celesta.score.NamedElement
-
- ru.curs.celesta.score.GrainElement
-
- ru.curs.celesta.score.DataGrainElement
-
- ru.curs.celesta.score.AbstractView
-
- ru.curs.celesta.score.View
-
- ru.curs.celesta.score.ParameterizedView
-
- All Implemented Interfaces:
HasColumns
public final class ParameterizedView extends View
Parameterized View object in metadata.- Since:
- 2017-08-09
- Author:
- ioann
-
-
Field Summary
-
Fields inherited from class ru.curs.celesta.score.NamedElement
MAX_IDENTIFIER_LENGTH
-
-
Constructor Summary
Constructors Constructor Description ParameterizedView(GrainPart grainPart, String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addParameter(Parameter parameter)
Adds a parameter to the view.List<String>
getParameterRefsWithOrder()
Map<String,Parameter>
getParameters()
Returns a map parameter name -> parameter.-
Methods inherited from class ru.curs.celesta.score.View
createViewScript, getColumns
-
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
-
ParameterizedView
public ParameterizedView(GrainPart grainPart, String name) throws ParseException
- Throws:
ParseException
-
-
Method Detail
-
addParameter
public void addParameter(Parameter parameter) throws ParseException
Adds a parameter to the view.- Parameters:
parameter
- parameter- Throws:
ParseException
- if parameter name is empty or parameter already exists in the view
-
getParameters
public Map<String,Parameter> getParameters()
Returns a map parameter name -> parameter.- Returns:
-
-