|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.uql.erm.AbstractDataRef
inetsoft.uql.erm.ExpressionRef
inetsoft.uql.asset.DateRangeRef
public final class DateRangeRef
DateRangeRef represents a date range data ref. if not full, only the date value of the date option will be returned. Otherwise, the higher level date value of the date option will also be included.
There is no higher level for year option. For quarter option, the higher level is year, so the full value format should be yyyyqq (year * 100 + quarter of year). For month option, the higher level is year, so the full value format should be yyyymm (year * 100 + month of year). For week option, the higher level is year, so the full value format should be yyyyww (year * 100 + week of year). For day option, the higher level is year and month, so the full value format should be yyyymmdd (year * 10000 + month of year * 100 + day of month).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class inetsoft.uql.erm.ExpressionRef |
|---|
ExpressionRef.AttributeEnumeration |
| Field Summary | |
|---|---|
static int |
DAY_INTERVAL
Day Option. |
static int |
DAY_OF_MONTH_PART
Day Of Month Part. |
static int |
DAY_OF_WEEK_PART
Day Of Week Part. |
static int |
HOUR_INTERVAL
Hour Option. |
static int |
HOUR_OF_DAY_PART
Hour Of Day Part. |
static int |
MINUTE_INTERVAL
Minute Option. |
static int |
MONTH_INTERVAL
Month Option. |
static int |
MONTH_OF_YEAR_PART
Month Of Year Part. |
static int |
NONE_INTERVAL
None Option. |
static int |
QUARTER_INTERVAL
Quarter Option. |
static int |
QUARTER_OF_YEAR_PART
Quarter Of Year Part. |
static int |
SECOND_INTERVAL
Second Option. |
static int |
WEEK_INTERVAL
Week Option. |
static int |
WEEK_OF_YEAR_PART
Week Of Year Part. |
static int |
YEAR_INTERVAL
Year Option. |
| 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 | |
|---|---|
DateRangeRef()
Constructor. |
|
DateRangeRef(String attr)
Constructor. |
|
DateRangeRef(String attr,
DataRef ref)
Constructor. |
|
DateRangeRef(String attr,
DataRef ref,
int option)
Constructor. |
|
| Method Summary | |
|---|---|
String |
getAttribute()
Get the referenced attribute. |
Enumeration |
getAttributes()
Get a list of all attributes that are referenced by this object. |
static Object |
getData(int option,
Date date)
Get the integer value by the specified date value and date option. |
static Object |
getData(int option,
Date date,
Calendar calendar)
Get the integer value by the specified date value and date option. |
Class |
getDataClass()
Get the data class. |
DataRef |
getDataRef()
Get the contained data ref. |
String |
getDataType()
Get the data type. |
static String |
getDataType(int option)
Get data type for a specfied option. |
int |
getDateOption()
Get the date option. |
String |
getDBVersion()
Get the database version. |
String |
getEntity()
Get the attribute's parent entity. |
String |
getExpression()
Get the SQL expression of this reference. |
static String |
getExpression(String type,
DataRef ref,
int option)
Get the SQL expression of this reference. |
static String |
getExpression(String type,
DataRef ref,
int option,
String otype)
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 date range option. |
String |
getOriginalType()
Get original data type. |
static String |
getRangeValue(int option)
Get the value of a date range option. |
int |
getRefType()
Get the type of the field. |
String |
getScriptExpression()
Get the script expression of this reference. |
static String |
getScriptExpression(DataRef ref,
int option)
Get the script expression of this reference. |
boolean |
isApplyAutoDrill()
Check if apply auto drill. |
boolean |
isAutoCreate()
Check if this date range ref is manual create or not. |
static boolean |
isDateTime(int option)
Check a specified option is date time type. |
boolean |
isExpressionEditable()
Check if expression is editable. |
boolean |
isMergeable()
Check if this date range ref is mergeable. |
static boolean |
isMergeable(String dbtype,
int option)
Check if this date range ref is mergeable. |
boolean |
isSQL()
Check if this expression is sql expression. |
static boolean |
isTimeOption(int option)
Check if is time option. |
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 |
setApplyAutoDrill(boolean drill)
Set whether apply auto drill. |
void |
setAutoCreate(boolean autoCreate)
Set this date range ref is manual create or not. |
void |
setDataRef(DataRef ref)
Set the data ref. |
void |
setDateOption(int option)
Set the date option, one of the option constants defined in this class. |
void |
setDBVersion(String version)
Set the database version. |
void |
setName(String name)
Set the name of the field. |
void |
setOriginalType(String originalType)
Set original data type. |
protected void |
writeAttributes(PrintWriter writer)
Write the attributes of this object. |
protected void |
writeAttributes2(DataOutputStream dos)
Write the attributes of this object. |
protected void |
writeCDATA(PrintWriter writer)
Write the CDATA of this object. |
protected void |
writeCDATA2(DataOutputStream dos)
Write the CDATA 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, getDBType, getEntities, getScriptExpression, getSQLExpression, isExpression, isOnAggregate, isVirtual, parseCDATA, setDataSource, setDBType, setEntity, setExpression, setOnAggregate, setRefType, setVirtual, toString, toView |
| Methods inherited from class inetsoft.uql.erm.AbstractDataRef |
|---|
addr, clone, 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.asset.AssetObject |
|---|
clone |
| Methods inherited from interface inetsoft.uql.asset.SQLExpressionRef |
|---|
getDBType, setDBType |
| Methods inherited from interface inetsoft.uql.erm.DataRef |
|---|
addr, clone, equals, getDefaultFormula, getEntities, 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 |
|---|
public static final int YEAR_INTERVAL
public static final int QUARTER_INTERVAL
public static final int MONTH_INTERVAL
public static final int WEEK_INTERVAL
public static final int DAY_INTERVAL
public static final int HOUR_INTERVAL
public static final int MINUTE_INTERVAL
public static final int SECOND_INTERVAL
public static final int QUARTER_OF_YEAR_PART
public static final int MONTH_OF_YEAR_PART
public static final int WEEK_OF_YEAR_PART
public static final int DAY_OF_MONTH_PART
public static final int DAY_OF_WEEK_PART
public static final int HOUR_OF_DAY_PART
public static final int NONE_INTERVAL
| Constructor Detail |
|---|
public DateRangeRef()
public DateRangeRef(String attr)
public DateRangeRef(String attr,
DataRef ref)
public DateRangeRef(String attr,
DataRef ref,
int option)
| Method Detail |
|---|
public static boolean isTimeOption(int option)
public static boolean isDateTime(int option)
public static String getDataType(int option)
public static String getName(String attr,
int option)
public static String getRangeValue(int option)
public static Object getData(int option,
Date date)
option - the date option of a full DateRangeRef.date - the date value.
public static Object getData(int option,
Date date,
Calendar calendar)
option - the date option of a full DateRangeRef.date - the date value.
public String getDBVersion()
getDBVersion in interface SQLExpressionRefpublic void setDBVersion(String version)
setDBVersion in interface SQLExpressionRefpublic int getDateOption()
public void setDateOption(int option)
option - the specified date option.public int getRefType()
getRefType in interface DataRefgetRefType in class ExpressionRefpublic String getEntity()
getEntity in interface DataRefgetEntity in class ExpressionRefpublic String getAttribute()
getAttribute in interface DataRefgetAttribute in class ExpressionRefpublic DataRef getDataRef()
getDataRef in interface DataRefWrappergetDataRef in interface RangeRefpublic void setDataRef(DataRef ref)
setDataRef in interface DataRefWrappersetDataRef in interface RangeRefref - the specified data ref.public String getOriginalType()
public void setOriginalType(String originalType)
public String getDataType()
getDataType in interface DataRefgetDataType in class AbstractDataRefpublic Class getDataClass()
protected void writeAttributes(PrintWriter writer)
writeAttributes in class ExpressionRefwriter - the output stream to which to write the XML data.protected void writeAttributes2(DataOutputStream dos)
writeAttributes2 in class ExpressionRefwriter - the output stream to which to write the OutputStream data.
protected void parseAttributes(Element tag)
throws Exception
parseAttributes in class ExpressionReftag - the XML element representing this object.
Exceptionprotected void writeContents(PrintWriter writer)
writeContents in class AbstractDataRefwriter - the output stream to which to write the XML data.protected void writeContents2(DataOutputStream dos)
writeContents2 in class AbstractDataRefwriter - the output stream to which to write the OutputStream data.
protected void parseContents(Element tag)
throws Exception
parseContents in class AbstractDataReftag - the specified xml element.
Exceptionpublic String getName()
getName in interface DataRefgetName in class ExpressionRefpublic void setName(String name)
setName in class ExpressionRefthe - name of the fieldpublic String getExpression()
getExpression in class ExpressionRef
public static String getExpression(String type,
DataRef ref,
int option)
public static String getExpression(String type,
DataRef ref,
int option,
String otype)
public static boolean isMergeable(String dbtype,
int option)
public boolean isMergeable()
isMergeable in interface SQLExpressionRefpublic boolean isExpressionEditable()
isExpressionEditable in class ExpressionRefpublic String getScriptExpression()
getScriptExpression in class ExpressionRef
public static String getScriptExpression(DataRef ref,
int option)
public boolean isSQL()
isSQL in class ExpressionRefpublic void setAutoCreate(boolean autoCreate)
public boolean isAutoCreate()
public Enumeration getAttributes()
getAttributes in interface DataRefgetAttributes in class ExpressionRefprotected void writeCDATA(PrintWriter writer)
writeCDATA in class ExpressionRefwriter - the output stream to which to write the XML dataprotected void writeCDATA2(DataOutputStream dos)
writeCDATA2 in class ExpressionRefwriter - the output stream to which to write the OutputStream data.public boolean isApplyAutoDrill()
public void setApplyAutoDrill(boolean drill)
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||