|
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.asset.AggregateRef
public class AggregateRef
AggregateRef represents a data ref has aggregate.
| 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 | |
|---|---|
AggregateRef()
Constructor. |
|
AggregateRef(DataRef ref,
AggregateFormula formula)
Constructor for an aggregate that calculates results from one column. |
|
AggregateRef(DataRef ref,
DataRef ref2,
AggregateFormula formula)
Constructor for an aggregate that calculates results from two columns. |
|
| Method Summary | |
|---|---|
Object |
clone()
Clone the object. |
boolean |
equalsAggregate(Object obj)
Check if equals another object. |
boolean |
equalsContent(Object obj)
Check if equals another object in content. |
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. |
Enumeration |
getEntities()
Get the attribute's parent entity. |
String |
getEntity()
Get the attribute's parent entity. |
String |
getExpression(AggregateHelper helper)
Get the SQL expression for this aggregate. |
AggregateFormula |
getFormula()
Get the formula. |
String |
getFormulaName()
Get the formula. |
String |
getName()
Get the name of the field. |
int |
getPercentageOption()
Get the percentage option of the aggregate ref. |
int |
getPercentageType()
Get the percentage type. |
int |
getRefType()
Get the type of the field. |
DataRef |
getSecondaryColumn()
Get the formula secondary column. |
Collection |
getSubAggregates()
Get the aggregate columns that could be used to calculate this formula. |
String |
getUID()
Get an unique id for the formula that can be used to identify an aggregate column. |
boolean |
isAggregated()
Test if the aggregate info is aggregated. |
boolean |
isComposite()
Check if is one sub aggregate for composite. |
boolean |
isEntityBlank()
Determine if the entity is blank. |
boolean |
isExpression()
Check if the attribute is an expression. |
boolean |
isPercentage()
Check if shown as a percentage. |
boolean |
isUserCreate()
Check if user created aggregate ref. |
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. |
boolean |
printKey(PrintWriter writer)
Print the key to identify this content object. |
void |
refreshDataRef(ColumnSelection cols)
Refresh the contained data ref. |
void |
setComposite(boolean composite)
Set whether is one sub aggregate for composite. |
void |
setDataRef(DataRef ref)
Set the contained data ref. |
void |
setFormula(AggregateFormula formula)
Set the formula to the aggregate ref. |
void |
setFormulaName(String name)
Set the formula name to the aggregate ref. |
void |
setPercentage(boolean percentage)
Set the percentage option. |
void |
setPercentageOption(int percentageOption)
Set the percentage option of the aggregate ref. |
void |
setPercentageType(int type)
Set the percentage type. |
void |
setSecondaryColumn(DataRef ref)
Set the secondary column to be used in the formula. |
void |
setUserCreate(boolean userCreate)
Set whether is user created aggregate ref. |
String |
toString()
Get the string representation. |
String |
toView()
Get the view representation of this field. |
protected void |
writeAttributes(PrintWriter writer)
Write the attributes of this object. |
protected void |
writeAttributes2(DataOutputStream dos)
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.AbstractDataRef |
|---|
addr, compareTo, createDataRef, equals, equals, getClass, getDefaultFormula, getTypeNode, hashCode, isEmpty, parseCDATA, parseData, parseXML, writeCDATA, writeCDATA2, 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, getTypeNode, isEmpty, parseData, writeData |
| Methods inherited from interface inetsoft.util.XMLSerializable |
|---|
parseXML, writeXML |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public AggregateRef()
public AggregateRef(DataRef ref,
AggregateFormula formula)
public AggregateRef(DataRef ref,
DataRef ref2,
AggregateFormula formula)
| Method Detail |
|---|
public int getRefType()
getRefType in interface DataRefpublic boolean isExpression()
isExpression in interface DataRefpublic String getEntity()
getEntity in interface DataRefpublic Enumeration getEntities()
getEntities in interface DataRefgetEntities in class AbstractDataRefpublic String getAttribute()
getAttribute in interface DataRefpublic Enumeration getAttributes()
getAttributes in interface DataRefgetAttributes in class AbstractDataRefpublic boolean isEntityBlank()
isEntityBlank in interface DataRefisEntityBlank in class AbstractDataReftrue if entity is null or blank.public String getName()
getName in interface DataRefgetName in class AbstractDataRefpublic String getExpression(AggregateHelper helper)
public String getUID()
public DataRef getDataRef()
getDataRef in interface DataRefWrapperpublic void setDataRef(DataRef ref)
setDataRef in interface DataRefWrapperref - the specified data ref.public void refreshDataRef(ColumnSelection cols)
cols - the specified column selection.public String getDataType()
getDataType in interface DataRefgetDataType in class AbstractDataRefprotected void writeAttributes(PrintWriter writer)
writeAttributes in class AbstractDataRefwriter - the output stream to which to write the XML data.protected void writeAttributes2(DataOutputStream dos)
writeAttributes2 in class AbstractDataRefdos - the output stream to which to write the OutputStream data.
protected void parseAttributes(Element tag)
throws Exception
parseAttributes in class AbstractDataReftag - 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 AbstractDataRefdos - the output stream to which to write the stream data.
protected void parseContents(Element tag)
throws Exception
parseContents in class AbstractDataReftag - the specified xml element.
Exceptionpublic boolean isPercentage()
public void setPercentage(boolean percentage)
percent - true if shown as a percentage, false
otherwise.public int getPercentageOption()
getPercentageOption in interface IAggregateRefpublic void setPercentageOption(int percentageOption)
setPercentageOption in interface IAggregateRefpercentage - the percentage option of this reference.public AggregateFormula getFormula()
getFormula in interface IAggregateRefpublic String getFormulaName()
getFormulaName in interface CalcAggregatepublic void setFormulaName(String name)
setFormulaName in interface CalcAggregateformula - name the specified formula.public int getPercentageType()
getPercentageType in interface CalcAggregatepublic void setPercentageType(int type)
setPercentageType in interface CalcAggregatetype - the specified percentage typepublic void setFormula(AggregateFormula formula)
setFormula in interface IAggregateRefformula - the specified formula.public boolean isAggregated()
public DataRef getSecondaryColumn()
getSecondaryColumn in interface IAggregateRefpublic void setSecondaryColumn(DataRef ref)
setSecondaryColumn in interface IAggregateRefref - formula secondary column.public Collection getSubAggregates()
public boolean equalsAggregate(Object obj)
obj - the specified object.
public boolean printKey(PrintWriter writer)
throws Exception
printKey in interface inetsoft.util.ContentObjectExceptionpublic boolean equalsContent(Object obj)
equalsContent in interface inetsoft.util.ContentObjectobj - the specified object.
public String toString()
toString in class AbstractDataRefpublic String toView()
toView in interface DataRefpublic boolean isComposite()
public void setComposite(boolean composite)
public boolean isUserCreate()
public void setUserCreate(boolean userCreate)
public Object clone()
clone in interface AssetObjectclone in interface DataRefclone in class AbstractDataRef
|
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 | ||||||||