Style Intelligence v12.0

inetsoft.uql.erm
Class ExpressionRef2

java.lang.Object
  extended by inetsoft.uql.erm.AbstractDataRef
      extended by inetsoft.uql.erm.ExpressionRef
          extended by inetsoft.uql.erm.ExpressionRef2
All Implemented Interfaces:
DataRef, inetsoft.util.DataSerializable, inetsoft.util.XMLSerializable, Serializable, Cloneable, Comparable

public class ExpressionRef2
extends ExpressionRef

Class holding a reference to a formula expression that can be incorporated in a JDBC SQL query.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class inetsoft.uql.erm.ExpressionRef
ExpressionRef.AttributeEnumeration
 
Field Summary
 
Fields inherited from class inetsoft.uql.erm.AbstractDataRef
chash, cname
 
Fields inherited from interface inetsoft.uql.erm.DataRef
AGG_CALC, CUBE, CUBE_DIMENSION, CUBE_MEASURE, CUBE_MODEL_DIMENSION, CUBE_MODEL_TIME_DIMENSION, CUBE_TIME_DIMENSION, DIMENSION, MEASURE, MODEL, NONE, TIME
 
Constructor Summary
ExpressionRef2()
          Create a new instance of ExpressionRef.
ExpressionRef2(String datasource, String name)
          Create a new instance of ExpressionRef.
ExpressionRef2(String datasource, String entity, String name)
          Create a new instance of ExpressionRef.
 
Method Summary
 String getDataType()
          Getter of data type.
 String getExpression2()
          Get the SQL expression of this reference which may contains expression measure name.
protected  void parseAttributes(Element tag)
          Read in the definition of this object from an XML tag.
 void setDataType(String type)
          Setter of data type.
 void setExpression2(String exp)
          Set the SQL expression of this reference.
protected  void writeAttributes(PrintWriter writer)
          Write an XML element representation of this object.
 
Methods inherited from class inetsoft.uql.erm.ExpressionRef
equalsContent, getAttribute, getAttributes, getCalcAttributes, getDataSource, getDBType, getEntities, getEntity, getExpression, getName, getRefType, getScriptExpression, getScriptExpression, getSQLExpression, isExpression, isExpressionEditable, isOnAggregate, isSQL, isVirtual, parseCDATA, setDataSource, setDBType, setEntity, setExpression, setName, setOnAggregate, setRefType, setVirtual, toString, toView, writeAttributes2, writeCDATA, writeCDATA2
 
Methods inherited from class inetsoft.uql.erm.AbstractDataRef
addr, clone, compareTo, createDataRef, equals, equals, getClass, getDefaultFormula, getTypeNode, hashCode, isEmpty, isEntityBlank, parseContents, parseData, parseXML, writeContents, writeContents2, writeData, writeXML
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExpressionRef2

public ExpressionRef2()
Create a new instance of ExpressionRef.


ExpressionRef2

public ExpressionRef2(String datasource,
                      String name)
Create a new instance of ExpressionRef.

Parameters:
datasource - the name of the JDBC data source to which the object refers
name - the name of the reference

ExpressionRef2

public ExpressionRef2(String datasource,
                      String entity,
                      String name)
Create a new instance of ExpressionRef.

Parameters:
datasource - the name of the JDBC data source to which the object refers
entity - the entity
name - the name of the reference
Method Detail

setDataType

public void setDataType(String type)
Setter of data type.


getDataType

public String getDataType()
Getter of data type.

Specified by:
getDataType in interface DataRef
Overrides:
getDataType in class AbstractDataRef
Returns:
the data type defined in XSchema.

setExpression2

public void setExpression2(String exp)
Set the SQL expression of this reference.

Parameters:
expression - a SQL expression which may contains expression measure name.

getExpression2

public String getExpression2()
Get the SQL expression of this reference which may contains expression measure name.


writeAttributes

protected void writeAttributes(PrintWriter writer)
Write an XML element representation of this object.

Overrides:
writeAttributes in class ExpressionRef
Parameters:
writer - the output stream to which to write the XML data

parseAttributes

protected void parseAttributes(Element tag)
                        throws Exception
Read in the definition of this object from an XML tag.

Overrides:
parseAttributes in class ExpressionRef
Parameters:
tag - the XML Element representing this object
Throws:
Exception

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.