Style Intelligence v12.0

inetsoft.uql.asset
Class NamedRangeRef

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

public class NamedRangeRef
extends ExpressionRef
implements AssetObject, XConstants, SQLExpressionRef, RangeRef, DataRefWrapper

NamedRangeRef represents a group range data ref.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class inetsoft.uql.erm.ExpressionRef
ExpressionRef.AttributeEnumeration
 
Field Summary
static int COLOR_GROUP
           
static int DATA_GROUP
           
static int SHAPE_GROUP
           
static int SIZE_GROUP
           
static int TEXTURE_GROUP
           
 
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
NamedRangeRef()
          Constructor.
NamedRangeRef(String attr)
          Constructor.
NamedRangeRef(String attr, DataRef ref)
          Constructor.
 
Method Summary
 String getAttribute()
          Get the referenced attribute.
 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 getExpression()
          Get the SQL expression of this reference.
 String getName()
          Get the name of this reference.
static String getName(String attr, int option)
          Get the name of an attribute with a non-date range option.
 inetsoft.uql.util.XNamedGroupInfo getNamedGroupInfo()
          Get the groupNameInfo.
 String getScriptExpression()
          Get the script expression of this reference.
 boolean isExpressionEditable()
          Check if expression is editable.
 boolean isMergeable()
          Check if this date range ref is mergeable.
 void setDataRef(DataRef ref)
          Set the data ref.
 void setDataType(String dataType)
          set the data type.
 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 setNamedGroupInfo(inetsoft.uql.util.XNamedGroupInfo groupNameInfo)
          Set the groupNameInfo.
 
Methods inherited from class inetsoft.uql.erm.ExpressionRef
equalsContent, getAttributes, getCalcAttributes, getDataSource, getEntities, getEntity, getRefType, getScriptExpression, getSQLExpression, isExpression, isOnAggregate, isSQL, isVirtual, parseAttributes, parseCDATA, setDataSource, setEntity, setExpression, setOnAggregate, setRefType, setVirtual, toString, toView, writeAttributes, 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
 
Methods inherited from interface inetsoft.uql.asset.AssetObject
clone
 
Methods inherited from interface inetsoft.uql.erm.DataRef
addr, clone, equals, getAttributes, getDefaultFormula, getEntities, getEntity, 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
 

Field Detail

DATA_GROUP

public static final int DATA_GROUP
See Also:
Constant Field Values

COLOR_GROUP

public static final int COLOR_GROUP
See Also:
Constant Field Values

SHAPE_GROUP

public static final int SHAPE_GROUP
See Also:
Constant Field Values

SIZE_GROUP

public static final int SIZE_GROUP
See Also:
Constant Field Values

TEXTURE_GROUP

public static final int TEXTURE_GROUP
See Also:
Constant Field Values
Constructor Detail

NamedRangeRef

public NamedRangeRef()
Constructor.


NamedRangeRef

public NamedRangeRef(String attr)
Constructor.


NamedRangeRef

public NamedRangeRef(String attr,
                     DataRef ref)
Constructor.

Method Detail

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

isMergeable

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

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

isExpressionEditable

public boolean isExpressionEditable()
Check if expression is editable.

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

getDataRef

public DataRef getDataRef()
Get the contained data ref.

Specified by:
getDataRef in interface DataRefWrapper
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 DataRefWrapper
Specified by:
setDataRef in interface RangeRef
Parameters:
ref - the specified data ref.

getName

public static String getName(String attr,
                             int option)
Get the name of an attribute with a non-date range option.

Parameters:
attr - column name
option - group type
Returns:
alias name

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:
the - name of the field

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.

setDataType

public void setDataType(String dataType)
set the data type.

Parameters:
the - data type

getDataType

public String getDataType()
Get the data type.

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

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

getNamedGroupInfo

public inetsoft.uql.util.XNamedGroupInfo getNamedGroupInfo()
Get the groupNameInfo.


setNamedGroupInfo

public void setNamedGroupInfo(inetsoft.uql.util.XNamedGroupInfo groupNameInfo)
Set the groupNameInfo.

Parameters:
groupNameInfo - XNamedGroupInfo

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