|
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
public abstract class AbstractDataRef
Abstract class holding a reference to a SQL expression or an attribute.
| Field Summary | |
|---|---|
protected int |
chash
|
protected String |
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 | |
|---|---|
AbstractDataRef()
|
|
| Method Summary | |
|---|---|
int |
addr()
Get the original hash code. |
Object |
clone()
Create a copy of this object. |
int |
compareTo(Object obj)
Compare to another object. |
static DataRef |
createDataRef(Element elem)
Create a DataRef from an xml element. |
boolean |
equals(Object obj)
Check if equals another object. |
boolean |
equals(Object obj,
boolean strict)
Compare two column refs. |
Enumeration |
getAttributes()
Get a list of all attributes that are referenced by this object. |
static String |
getClass(Class cobj,
boolean compact)
Get the class name. |
String |
getDataType()
Get the data type. |
String |
getDefaultFormula()
Get the default formula. |
Enumeration |
getEntities()
Get the attribute's parent entity. |
String |
getName()
Get the name of the field. |
XTypeNode |
getTypeNode()
Get the type node. |
int |
hashCode()
Get the hash code value for the object. |
boolean |
isEmpty()
Check if the data ref is empty. |
boolean |
isEntityBlank()
Determine if the entity is blank. |
protected abstract void |
parseAttributes(Element tag)
Read in the attribute of this object from an XML tag. |
protected void |
parseCDATA(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 |
parseData(DataInputStream input)
Parse data from an InputStream. |
void |
parseXML(Element tag)
Read in the definition of this object from an XML tag. |
String |
toString()
Get the string presentation of a data ref. |
protected abstract 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. |
void |
writeData(DataOutputStream dos)
Write data to a DataOutputStream. |
void |
writeXML(PrintWriter writer)
Write an xml element representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface inetsoft.uql.erm.DataRef |
|---|
getAttribute, getEntity, getRefType, isExpression, toView |
| Field Detail |
|---|
protected String cname
protected int chash
| Constructor Detail |
|---|
public AbstractDataRef()
| Method Detail |
|---|
public static String getClass(Class cobj,
boolean compact)
public static DataRef createDataRef(Element elem)
throws Exception
elem - the specified xml element.
Exceptionpublic Enumeration getEntities()
getEntities in interface DataRefpublic Enumeration getAttributes()
getAttributes in interface DataRefpublic boolean isEntityBlank()
isEntityBlank in interface DataReftrue if entity is null or entity is
equal to empty string ("").public boolean isEmpty()
isEmpty in interface DataRefpublic String getName()
getName in interface DataRefpublic void writeXML(PrintWriter writer)
writeXML in interface inetsoft.util.XMLSerializablewriter - the output stream to which to write the XML data.protected abstract void writeAttributes(PrintWriter writer)
writer - the output stream to which to write the XML data.protected void writeAttributes2(DataOutputStream dos)
dos - the output stream to which to write the XML data.protected void writeCDATA(PrintWriter writer)
writer - the output stream to which to write the XML data.protected void writeCDATA2(DataOutputStream dos)
dos - the output stream to which to write the OutputStream data.protected void writeContents(PrintWriter writer)
writer - the output stream to which to write the XML data.protected void writeContents2(DataOutputStream dos)
dos - the output stream to which to write the OutputStream data.
public void parseXML(Element tag)
throws Exception
parseXML in interface inetsoft.util.XMLSerializabletag - the xml element representing this object.
Exceptionpublic void writeData(DataOutputStream dos)
writeData in interface DataRefwriteData in interface inetsoft.util.DataSerializabledos - the destination DataOutputStream.public boolean parseData(DataInputStream input)
parseData in interface DataRefparseData in interface inetsoft.util.DataSerializableinput - the source DataInputStream.
protected abstract void parseAttributes(Element tag)
throws Exception
tag - the xml element representing this object.
Exception
protected void parseCDATA(Element tag)
throws Exception
tag - the xml element representing this object.
Exception
protected void parseContents(Element tag)
throws Exception
tag - the specified xml element.
Exceptionpublic String getDataType()
getDataType in interface DataRefpublic XTypeNode getTypeNode()
getTypeNode in interface DataRefpublic boolean equals(Object obj)
equals in class Objectobj - the specified object.
public boolean equals(Object obj,
boolean strict)
equals in interface DataRefstrict - true to compare all properties of ColumnRef. Otherwise
only entity and attribute are compared.public int hashCode()
hashCode in class Objectpublic int addr()
addr in interface DataRefpublic String toString()
toString in class Objectpublic Object clone()
clone in interface DataRefclone in class Objectpublic int compareTo(Object obj)
compareTo in interface Comparableobj - the specified object to compare.
public String getDefaultFormula()
getDefaultFormula in interface DataRef
|
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 | ||||||||