|
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.ColumnRef
public class ColumnRef
Column represents a column in TableAssembly. It stores information including data ref, alias, width, order, visibility, data type, etc.
| 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 | |
|---|---|
ColumnRef()
Constructor. |
|
ColumnRef(DataRef ref)
Constructor. |
|
| Method Summary | |
|---|---|
Object |
clone()
Clone the object. |
void |
copyAttributes(ColumnRef from)
Copy the attributes. |
boolean |
equals(Object obj,
boolean strict)
Compare two column refs. |
String |
getAlias()
Get the alias. |
String |
getAttribute()
Get the referenced attribute. |
Enumeration |
getAttributes()
Get a list of all attributes that are referenced by this object. |
String |
getCaption()
Get the caption. |
DataRef |
getDataRef()
Get the contained data ref. |
String |
getDataType()
Get the data type. |
String |
getDefaultFormula()
Get the default formula. |
Enumeration |
getEntities()
Get the attribute's parent entity. |
String |
getEntity()
Get the attribute's parent entity. |
Enumeration |
getExpAttributes()
Get a list of all attributes that are referenced by contained expression. |
String |
getHeaderName()
Get the header name of the field. |
String |
getName()
Get the name of the field. |
String |
getOriginalType()
Get original data type. |
String |
getRealName()
Get ref real name without alias. |
int |
getRefType()
Get the type of the field. |
XTypeNode |
getTypeNode()
Get the type node. |
String |
getView()
Get the view. |
int |
getWidth()
Get the width. |
boolean |
isApplyingAlias()
Check if apply alias. |
boolean |
isEntityBlank()
Determine if the entity is blank. |
boolean |
isExpression()
Check if the attribute is an expression. |
boolean |
isHiddenParameter()
Check if is hiddenParameter. |
boolean |
isProcessed()
Check if the column ref is processed. |
boolean |
isSQL()
Check if is sql. |
boolean |
isValid()
Check if is valid. |
boolean |
isVisible()
Check if is visible. |
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. |
static void |
renameColumn(ColumnRef column,
String oname,
String nname)
Rename a column. |
void |
setAlias(String alias)
Set the alias. |
void |
setApplyingAlias(boolean aalias)
Set whether to apply alias. |
void |
setCaption(String caption)
Set the caption. |
void |
setDataRef(DataRef ref)
Set the base data ref. |
void |
setDataType(String type)
Set the data type. |
void |
setHiddenParameter(boolean hiddenParameter)
Set the hiddenParameter option. |
void |
setOriginalType(String originalType)
Set original data type. |
void |
setProcessed(boolean processed)
Set the processed flag. |
void |
setSQL(boolean sql)
Set the sql option. |
void |
setValid(boolean valid)
Set the valid option. |
void |
setView(String view)
Set the view. |
void |
setVisible(boolean visible)
Set the visibility option. |
void |
setWidth(int width)
Set the width. |
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, getClass, 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, isEmpty, parseData, writeData |
| Methods inherited from interface inetsoft.util.XMLSerializable |
|---|
parseXML, writeXML |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public ColumnRef()
public ColumnRef(DataRef ref)
| Method Detail |
|---|
public static void renameColumn(ColumnRef column,
String oname,
String nname)
column - the specified column.oname - the specified old name.nname - the specified new name.public boolean isExpression()
isExpression in interface DataRefpublic int getRefType()
getRefType in interface DataRefpublic String getDefaultFormula()
getDefaultFormula in interface DataRefgetDefaultFormula in class AbstractDataRefpublic 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 Enumeration getExpAttributes()
public 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 getHeaderName()
public DataRef getDataRef()
getDataRef in interface DataRefWrapperpublic void setDataRef(DataRef ref)
setDataRef in interface DataRefWrapperref - the specified data ref.public String getAlias()
public void setAlias(String alias)
alias - the specified alias.public void setApplyingAlias(boolean aalias)
aalias - true to apply alias.public boolean isApplyingAlias()
public boolean isVisible()
public void setVisible(boolean visible)
visible - true if is visible, false otherwise.public boolean isHiddenParameter()
public void setHiddenParameter(boolean hiddenParameter)
hiddenParameter - true if is hiddenParameter, false otherwise.public boolean isValid()
public void setValid(boolean valid)
valid - true if is valid, false otherwise.public boolean isSQL()
public void setSQL(boolean sql)
sql - true if is sql, false otherwise.public int getWidth()
public void setWidth(int width)
width - the specified width.public void setDataType(String type)
type - the specified data type defined in XSchema.public String getDataType()
getDataType in interface DataRefgetDataType in class AbstractDataRefpublic String getOriginalType()
public void setOriginalType(String originalType)
public XTypeNode getTypeNode()
getTypeNode in interface DataRefgetTypeNode 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 OutputStream data.
protected void parseContents(Element tag)
throws Exception
parseContents in class AbstractDataReftag - the specified xml element.
Exceptionpublic String toString()
toString in class AbstractDataRefpublic String toView()
toView in interface DataRefpublic boolean isProcessed()
public void setProcessed(boolean processed)
processed - true if processed, false otherwise.public void setCaption(String caption)
caption - the specified caption.public String getCaption()
public void setView(String view)
view - the specified view.public String getView()
public Object clone()
clone in interface AssetObjectclone in interface DataRefclone in class AbstractDataRefpublic void copyAttributes(ColumnRef from)
from - the specified column ref to copy from.
public boolean equals(Object obj,
boolean strict)
equals in interface DataRefequals in class AbstractDataRefstrict - true to compare all properties of ColumnRef. Otherwise
only entity and attribute are compared.public String getRealName()
|
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 | ||||||||