Style Intelligence v12.0

inetsoft.uql.asset
Class NumericRangeRef

java.lang.Object
  extended by inetsoft.uql.erm.AbstractDataRef
      extended by inetsoft.uql.erm.ExpressionRef
          extended by inetsoft.uql.asset.NumericRangeRef
All Implemented Interfaces:
AssetObject, SQLExpressionRef, DataRef, RangeRef, XConstants, inetsoft.util.DataSerializable, inetsoft.util.XMLSerializable, Serializable, Cloneable, Comparable

public class NumericRangeRef
extends ExpressionRef
implements AssetObject, XConstants, SQLExpressionRef, RangeRef

NumericRangeRef represents a numeric range data ref.

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.XConstants
AM_PM_DATE_GROUP, AM_PM_OF_DAY_DATE_GROUP, AVERAGE_FORMULA, CALC_FORMULA, COLUMN, CONCAT_FORMULA, CONDITION_EMPTY_STRING, CONDITION_NULL_STRING, CONDITION_NULL_VALUE, CONDITION_REAL_NULL, CORRELATION_FORMULA, COUNT_FORMULA, COVARIANCE_FORMULA, CURRENCY_FORMAT, CURRENT_REP_CHANGED, CURRENT_REP_WILL_CHANGE, DATE_FORMAT, DAY_DATE_GROUP, DAY_OF_MONTH_DATE_GROUP, DAY_OF_WEEK_DATE_GROUP, DAY_OF_YEAR_DATE_GROUP, DECIMAL_FORMAT, DISTINCTCOUNT_FORMULA, FIRST_FORMULA, FULL_JOIN, GREATER_EQUAL_JOIN, GREATER_JOIN, GROUP_OTHERS, HOUR_DATE_GROUP, HOUR_OF_DAY_DATE_GROUP, INNER_JOIN, JOIN, LAST_FORMULA, LEAVE_OTHERS, LEFT_JOIN, LESS_EQUAL_JOIN, LESS_JOIN, MAX_FORMULA, MEDIAN_FORMULA, MESSAGE_FORMAT, MILLISECOND_DATE_GROUP, MIN_FORMULA, MINUTE_DATE_GROUP, MODE_FORMULA, MONTH_DATE_GROUP, MONTH_OF_YEAR_DATE_GROUP, NONE_DATE_GROUP, NONE_FORMULA, NOT_EQUAL_JOIN, NTHLARGEST_FORMULA, NTHMOSTFREQUENT_FORMULA, NTHSMALLEST_FORMULA, PARAM_PREFIX, PART_DATE_GROUP, PERCENT_FORMAT, PERCENTAGE_BY_COL, PERCENTAGE_BY_ROW, PERCENTAGE_NONE, PERCENTAGE_OF_COL_GRANDTOTAL, PERCENTAGE_OF_COL_GROUP, PERCENTAGE_OF_GRANDTOTAL, PERCENTAGE_OF_GROUP, PERCENTAGE_OF_ROW_GRANDTOTAL, PERCENTAGE_OF_ROW_GROUP, POPULATIONSTANDARDDEVIATION_FORMULA, POPULATIONVARIANCE_FORMULA, PRODUCT_FORMULA, PTHPERCENTILE_FORMULA, QUARTER_DATE_GROUP, QUARTER_OF_YEAR_DATE_GROUP, RIGHT_JOIN, SECOND_DATE_GROUP, SET_FORMULA, SORT_ASC, SORT_DESC, SORT_NONE, SORT_ORIGINAL, SORT_SPECIFIC, SORT_VALUE_ASC, SORT_VALUE_DESC, STANDARDDEVIATION_FORMULA, SUB_QUERY_PARAM, SUM_FORMULA, SUMSQ_FORMULA, SUMWT_FORMULA, VARIANCE_FORMULA, WEEK_DATE_GROUP, WEEK_OF_MONTH_DATE_GROUP, WEEK_OF_YEAR_DATE_GROUP, WEIGHTEDAVERAGE_FORMULA, YEAR_DATE_GROUP
 
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
NumericRangeRef()
          Constructor.
NumericRangeRef(String attr)
          Constructor.
NumericRangeRef(String attr, DataRef ref)
          Constructor.
 
Method Summary
 Object clone()
          Clone this object.
 String getAttribute()
          Get the referenced attribute.
 Enumeration getAttributes()
          Get a list of all attributes that are referenced by this object.
 DataRef getDataRef()
          Get the contained data ref.
 String getDataType()
          Get the data type.
 String getDBType()
          Get the database type.
 String getDBVersion()
          Get the database version.
 String getEntity()
          Get the attribute's parent entity.
 String getExpression()
          Get the SQL expression of this reference.
 String getName()
          Get the name of this reference.
 String getScriptExpression()
          Get the script expression of this reference.
 ValueRangeInfo getValueRangeInfo()
          Get the value range infomation.
 boolean isExpressionEditable()
          Check if expression is editable.
 boolean isMergeable()
          Check if this date range ref is mergeable.
 boolean isSQL()
          Check if this expression is sql expression.
protected  void parseAttributes(Element tag)
          Read in the attribute of this object from an XML tag.
protected  void parseContents(Element tag)
          Read in the contents of this object from an xml tag.
 void setDataRef(DataRef ref)
          Set the data ref.
 void setDBType(String dbtype)
          Set the database type.
 void setDBVersion(String version)
          Set the database version.
 void setName(String name)
          Set the name of the field.
 void setValueRangeInfo(ValueRangeInfo info)
          Set the value range infomation.
 String toString()
          Get a String representation of this object.
protected  void writeAttributes(PrintWriter writer)
          Write the attributes of this object.
protected  void writeContents(PrintWriter writer)
          Write the contents of this object.
protected  void writeContents2(DataOutputStream dos)
          Write the contents of this object.
 
Methods inherited from class inetsoft.uql.erm.ExpressionRef
equalsContent, getCalcAttributes, getDataSource, getEntities, getRefType, getScriptExpression, getSQLExpression, isExpression, isOnAggregate, isVirtual, parseCDATA, setDataSource, setEntity, setExpression, setOnAggregate, setRefType, setVirtual, toView, writeAttributes2, writeCDATA, writeCDATA2
 
Methods inherited from class inetsoft.uql.erm.AbstractDataRef
addr, compareTo, createDataRef, equals, equals, getClass, getDefaultFormula, getTypeNode, hashCode, isEmpty, isEntityBlank, parseData, parseXML, writeData, writeXML
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface inetsoft.uql.erm.DataRef
addr, equals, getDefaultFormula, getEntities, getRefType, getTypeNode, isEmpty, isEntityBlank, isExpression, parseData, toView, writeData
 
Methods inherited from interface inetsoft.util.XMLSerializable
parseXML, writeXML
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

NumericRangeRef

public NumericRangeRef()
Constructor.


NumericRangeRef

public NumericRangeRef(String attr)
Constructor.


NumericRangeRef

public NumericRangeRef(String attr,
                       DataRef ref)
Constructor.

Method Detail

getValueRangeInfo

public ValueRangeInfo getValueRangeInfo()
Get the value range infomation.

Returns:
the value range infomation.

setValueRangeInfo

public void setValueRangeInfo(ValueRangeInfo info)
Set the value range infomation.

Parameters:
info - the specified value range infomation.

getEntity

public String getEntity()
Get the attribute's parent entity.

Specified by:
getEntity in interface DataRef
Overrides:
getEntity in class ExpressionRef
Returns:
the name of the entity.

getAttribute

public String getAttribute()
Get the referenced attribute.

Specified by:
getAttribute in interface DataRef
Overrides:
getAttribute in class ExpressionRef
Returns:
the name of the attribute.

getDataRef

public DataRef getDataRef()
Get the contained data ref.

Specified by:
getDataRef in interface RangeRef
Returns:
the contained data ref.

setDataRef

public void setDataRef(DataRef ref)
Set the data ref.

Specified by:
setDataRef in interface RangeRef
Parameters:
ref - the specified data ref.

getDataType

public String getDataType()
Get the data type.

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

toString

public String toString()
Get a String representation of this object.

Overrides:
toString in class ExpressionRef
Returns:
a String representation of this object

writeAttributes

protected void writeAttributes(PrintWriter writer)
Write the attributes 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 attribute of this object from an XML tag.

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

writeContents

protected void writeContents(PrintWriter writer)
Write the contents of this object.

Overrides:
writeContents in class AbstractDataRef
Parameters:
writer - the output stream to which to write the XML data.

writeContents2

protected void writeContents2(DataOutputStream dos)
Write the contents of this object.

Overrides:
writeContents2 in class AbstractDataRef
Parameters:
dos - the output stream to which to write the OutputStream data.

parseContents

protected void parseContents(Element tag)
                      throws Exception
Read in the contents of this object from an xml tag.

Overrides:
parseContents in class AbstractDataRef
Parameters:
tag - the specified xml element.
Throws:
Exception

getName

public String getName()
Get the name of this reference.

Specified by:
getName in interface DataRef
Overrides:
getName in class ExpressionRef
Returns:
the reference name.

setName

public void setName(String name)
Set the name of the field.

Overrides:
setName in class ExpressionRef
Parameters:
name - the name of the field

getDBType

public String getDBType()
Get the database type.

Specified by:
getDBType in interface SQLExpressionRef
Overrides:
getDBType in class ExpressionRef
Returns:
the database type.

setDBType

public void setDBType(String dbtype)
Set the database type.

Specified by:
setDBType in interface SQLExpressionRef
Overrides:
setDBType in class ExpressionRef
Parameters:
dbtype - the specified database type.

getDBVersion

public String getDBVersion()
Get the database version.

Specified by:
getDBVersion in interface SQLExpressionRef

setDBVersion

public void setDBVersion(String version)
Set the database version.

Specified by:
setDBVersion in interface SQLExpressionRef

isExpressionEditable

public boolean isExpressionEditable()
Check if expression is editable.

Overrides:
isExpressionEditable in class ExpressionRef
Returns:
true if editable, false otherwise.

isMergeable

public boolean isMergeable()
Check if this date range ref is mergeable.

Specified by:
isMergeable in interface SQLExpressionRef
Returns:
true if mergeable, false otherwise.

getExpression

public String getExpression()
Get the SQL expression of this reference.

Overrides:
getExpression in class ExpressionRef
Returns:
a SQL expression.

getScriptExpression

public String getScriptExpression()
Get the script expression of this reference.

Overrides:
getScriptExpression in class ExpressionRef
Returns:
a script expression.

isSQL

public boolean isSQL()
Check if this expression is sql expression.

Overrides:
isSQL in class ExpressionRef
Returns:
true if is, false otherwise.

getAttributes

public Enumeration getAttributes()
Get a list of all attributes that are referenced by this object.

Specified by:
getAttributes in interface DataRef
Overrides:
getAttributes in class ExpressionRef
Returns:
an Enumeration containing AttributeRef objects.

clone

public Object clone()
Clone this object.

Specified by:
clone in interface AssetObject
Specified by:
clone in interface DataRef
Overrides:
clone in class AbstractDataRef
Returns:
the cloned object.

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