|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.semarchy.mdm.runtime.model.dataaccess.DataAccessSelectExpression
public class DataAccessSelectExpression
Represents a parsed DataAccess Expression obtained from a
IDataAccessParser
This class is immutable.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
static DataTypeInfo |
computeExpressionType(com.semarchy.platform.language.semql.elements.IExpression expression)
Try to compute a DataTypeInfo from an IExpression . |
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. |
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<IManyToOneNode> |
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()
Returns true if expression isValid() and represents a
IViewAttribute of current getView() . |
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DataAccessSelectExpression(IDataAccessModel pDataAccessModel, IView view, com.semarchy.platform.language.semql.ParsingResult<com.semarchy.platform.language.semql.elements.IExpression> parsingResult)
IDataAccessParser
instead
pDataAccessModel
- view
- parsingResult
- Method Detail |
---|
@Deprecated public IDataAccessModel getDataAccessModel()
IDataAccessModel
by your own means
public 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 SemQLViewAttribute getSemQLAttribute()
SemQLViewAttribute
for the expression when
isViewOrNestedAttribute()
is true, null otherwise
public IViewAttribute<? extends IAttribute> getViewAttribute()
IViewAttribute
referenced by the expression when
isViewOrNestedAttribute()
is true, null otherwise.
public List<IManyToOneNode> getViewPath() throws IllegalStateException
getViewAttribute()
when
attributes is nested.
IllegalStateException
- if isViewOrNestedAttribute()
returns falsepublic LogicalDataType getLogicalType()
public DataTypeInfo getTypeInfo()
public static DataTypeInfo computeExpressionType(com.semarchy.platform.language.semql.elements.IExpression expression)
IExpression
. If the
IExpression
is a simple ISemQLAttr
you should try to get
this information from the semql attribute itself instead.
expression
-
public String getExpression()
public boolean isValid()
getParsingResult()
for more information
public boolean isReadable(IDataAccessModelSecurityProvider dataAccessModelSecurityProvider)
dataAccessModelSecurityProvider
-
public String toString()
toString
in class Object
public static String toCharFunction(LogicalDataType logicalType)
LogicalDataType
logicalType
-
public String getSortExpression()
DataAccessSelectExpression
or null if not sortable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |