|
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
public class ExpressionRef
Class holding a reference to a formula expression that can be incorporated in a JDBC SQL query.
| Nested Class Summary | |
|---|---|
class |
ExpressionRef.AttributeEnumeration
Enumeration of AttributeRef objects built from the field names in the expression string. |
| 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 | |
|---|---|
ExpressionRef()
Create a new instance of ExpressionRef. |
|
ExpressionRef(String datasource,
String name)
Create a new instance of ExpressionRef. |
|
ExpressionRef(String datasource,
String entity,
String name)
Create a new instance of ExpressionRef. |
|
| Method Summary | |
|---|---|
boolean |
equalsContent(Object obj)
Check if equals another object content. |
String |
getAttribute()
Get the referenced attribute. |
Enumeration |
getAttributes()
Get a list of all attributes that are referenced by this object. |
Enumeration |
getCalcAttributes()
Get a list of all attributes that are referenced by this object. |
String |
getDataSource()
Get the name of the JDBC data source to which this reference refers. |
String |
getDBType()
Get the database type. |
Enumeration |
getEntities()
Get a list of all the entities referenced by this object. |
String |
getEntity()
Get the attribute's parent entity. |
String |
getExpression()
Get the SQL expression of this reference. |
String |
getName()
Get the name of the field. |
int |
getRefType()
Getter of ref type. |
String |
getScriptExpression()
Get the script expression of this reference. |
static String |
getScriptExpression(boolean sql,
String exp)
Get the script expression. |
static String |
getSQLExpression(boolean sql,
String exp)
Get the sql expression. |
boolean |
isExpression()
Check if the attribute is an expression. |
boolean |
isExpressionEditable()
Check if expression is editable. |
boolean |
isOnAggregate()
Check if the expression is calculate on aggregate value. |
boolean |
isSQL()
Check if this expression is sql expression. |
boolean |
isVirtual()
Check if the expression is a virtual expression. |
protected void |
parseAttributes(Element tag)
Read in the definition of this object from an XML tag. |
protected void |
parseCDATA(Element tag)
Read in the attribute of this object from an XML tag. |
void |
setDataSource(String datasource)
Set the name of the JDBC data source to which this reference refers. |
void |
setDBType(String dbtype)
Set the database type. |
void |
setEntity(String entity)
Set the attribute's parent entity. |
void |
setExpression(String expression)
Set the SQL expression of this reference. |
void |
setName(String name)
Set the name of the field. |
void |
setOnAggregate(boolean onAggregate)
Set if the expression is calculate on aggregate value. |
void |
setRefType(int rtype)
Setter of ref type. |
void |
setVirtual(boolean virtual)
Set whether the expression is a vritual expression. |
String |
toString()
Get a String representation of this object. |
String |
toView()
Get the view representation of this field. |
protected void |
writeAttributes(PrintWriter writer)
Write an XML element representation 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. |
| Methods inherited from class inetsoft.uql.erm.AbstractDataRef |
|---|
addr, clone, compareTo, createDataRef, equals, equals, getClass, getDataType, 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 |
| Constructor Detail |
|---|
public ExpressionRef()
public ExpressionRef(String datasource,
String name)
datasource - the name of the JDBC data source to which the object
refersname - the name of the reference
public ExpressionRef(String datasource,
String entity,
String name)
datasource - the name of the JDBC data source to which the object
refersentity - the entityname - the name of the reference| Method Detail |
|---|
public static final String getScriptExpression(boolean sql,
String exp)
public static final String getSQLExpression(boolean sql,
String exp)
public String getDBType()
public void setDBType(String dbtype)
dbtype - the specified database type.public void setRefType(int rtype)
rtype - the type of the ref, NONE, DIMENSION or MEASURE.public int getRefType()
public boolean isExpression()
public String getDataSource()
public void setDataSource(String datasource)
datasource - the name of a JDBC data sourcepublic String getExpression()
public String getScriptExpression()
public void setExpression(String expression)
expression - a SQL expressionpublic String getName()
getName in interface DataRefgetName in class AbstractDataRefpublic void setName(String name)
name - the name of the fieldpublic boolean isVirtual()
public void setVirtual(boolean virtual)
public boolean isOnAggregate()
public void setOnAggregate(boolean onAggregate)
public boolean isSQL()
public boolean isExpressionEditable()
public String getEntity()
public void setEntity(String entity)
entity - the name of the entitypublic Enumeration getEntities()
getEntities in interface DataRefgetEntities in class AbstractDataRefpublic String getAttribute()
public Enumeration getAttributes()
getAttributes in interface DataRefgetAttributes in class AbstractDataRefpublic Enumeration getCalcAttributes()
protected void writeAttributes(PrintWriter writer)
writeAttributes in class AbstractDataRefwriter - the output stream to which to write the XML dataprotected void writeAttributes2(DataOutputStream dos)
writeAttributes2 in class AbstractDataRefdos - the output stream to which to write the XML data.protected void writeCDATA(PrintWriter writer)
writeCDATA in class AbstractDataRefwriter - the output stream to which to write the XML dataprotected void writeCDATA2(DataOutputStream dos)
writeCDATA2 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
Exception
protected void parseCDATA(Element tag)
throws DOMException
parseCDATA in class AbstractDataReftag - the XML Element representing this object
DOMExceptionpublic String toString()
toString in class AbstractDataRefpublic String toView()
public boolean equalsContent(Object obj)
obj - the specified object.
|
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 | ||||||||