public class DataAccessSelectExpression extends Object implements Serializable
IDataAccessParser
This class is immutable.Constructor and Description |
---|
DataAccessSelectExpression(IDataAccessModel pDataAccessModel,
IView view,
com.semarchy.platform.language.semql.ParsingResult<com.semarchy.platform.language.semql.elements.IExpression> parsingResult)
This should not be used directly.
|
Modifier and Type | Method and Description |
---|---|
IDataAccessModel |
getDataAccessModel()
Deprecated.
you should get the
IDataAccessModel by your own means |
String |
getExpression()
The SemQL expression.
|
LogicalDataType |
getLogicalType()
Return the logical type if known or null if not known.
|
com.semarchy.platform.language.semql.ParsingResult<com.semarchy.platform.language.semql.elements.IExpression> |
getParsingResult()
Returns parsing details.
|
com.semarchy.mdm.runtime.semql.dataaccess.SemQLViewAttribute |
getSemQLAttribute()
REturn the
SemQLViewAttribute for the expression when
isViewOrNestedAttribute() is true, null otherwise |
String |
getSortExpression()
Return the Expression to use for sort on this
DataAccessSelectExpression or null if not sortable |
DataTypeInfo |
getTypeInfo()
The type information if known or null if unknown
|
IView |
getView()
The IView for which this expression has been parsed
|
IViewAttribute<? extends IAttribute> |
getViewAttribute()
Return the
IViewAttribute referenced by the expression when
isViewOrNestedAttribute() is true, null otherwise. |
List<INavigationNode> |
getViewPath()
Return the view path to current
getViewAttribute() when
attributes is nested. |
boolean |
isReadable(IDataAccessModelSecurityProvider dataAccessModelSecurityProvider)
Return false if we are sure that the user represented by the
securityProvider will never be authorized to read the described
attribute, returns true otherwise.
|
boolean |
isValid()
Return true if expression is successfully parsed.
|
boolean |
isViewAttribute()
|
boolean |
isViewOrNestedAttribute()
Return true if expression
isValid() and represents a view
attribute or a nested view attribute. |
static String |
toCharFunction(LogicalDataType logicalType)
Return the function to use to wrap an expression of the given
LogicalDataType |
String |
toString() |
public DataAccessSelectExpression(IDataAccessModel pDataAccessModel, IView view, com.semarchy.platform.language.semql.ParsingResult<com.semarchy.platform.language.semql.elements.IExpression> parsingResult)
IDataAccessParser
insteadpDataAccessModel
- view
- parsingResult
- @Deprecated public IDataAccessModel getDataAccessModel()
IDataAccessModel
by your own meanspublic IView getView()
public com.semarchy.platform.language.semql.ParsingResult<com.semarchy.platform.language.semql.elements.IExpression> getParsingResult()
public boolean isViewAttribute()
isValid()
and represents a
IViewAttribute
of current getView()
. It returns false if
the expression is an attribute of a referenced view or an invalid
expression.
Example based on getting started Employee Golden View
public boolean isViewOrNestedAttribute()
isValid()
and represents a view
attribute or a nested view attribute.
Example based on getting started Employee Golden View
public com.semarchy.mdm.runtime.semql.dataaccess.SemQLViewAttribute getSemQLAttribute()
SemQLViewAttribute
for the expression when
isViewOrNestedAttribute()
is true, null otherwisepublic IViewAttribute<? extends IAttribute> getViewAttribute()
IViewAttribute
referenced by the expression when
isViewOrNestedAttribute()
is true, null otherwise.public List<INavigationNode> getViewPath() throws IllegalStateException
getViewAttribute()
when
attributes is nested.IllegalStateException
- if isViewOrNestedAttribute()
returns falsepublic LogicalDataType getLogicalType()
public DataTypeInfo getTypeInfo()
public String getExpression()
public boolean isValid()
getParsingResult()
for more informationpublic boolean isReadable(IDataAccessModelSecurityProvider dataAccessModelSecurityProvider)
dataAccessModelSecurityProvider
- public static String toCharFunction(LogicalDataType logicalType)
LogicalDataType
logicalType
- public String getSortExpression()
DataAccessSelectExpression
or null if not sortableCopyright © 2017. All rights reserved.