|
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.XAttribute
inetsoft.uql.erm.ExpressionAttribute
public class ExpressionAttribute
An ExpressionAttribute encapsulates an attribute of an entity that is defined with an expression.
| Field Summary |
|---|
| Fields inherited from class inetsoft.uql.erm.XAttribute |
|---|
BROWSE_DATA_QUERY, BROWSEABLE, DATA_TYPE, DESCRIPTION, MAPPED_COLUMN, META_DATA, NAME |
| Constructor Summary | |
|---|---|
ExpressionAttribute(String name)
Create an expression with the specified name. |
|
ExpressionAttribute(String name,
String expr)
Create an expression with the specified name and sql expression. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String[] |
getColumns()
Ge the full name of all datatable columns referenced by this attribute. |
String |
getExpression()
Get the name of the database column this attribute is mapped to. |
String[] |
getTables()
Gets the name of the database tables this attribute is mapped to. |
boolean |
isAggregateExpression()
Check if the expression is an aggregate expression. |
boolean |
isExpression()
Check if the attribute is an expression. |
boolean |
isParseable()
Check if the attribute is parseable. |
void |
parseXML(Element tag)
Reads in a attribute definition from its XML representation. |
void |
setAggregateExpression(boolean b)
Set true if it is an aggregate expression. |
void |
setExpression(String expression)
Set the SQL expression of this reference. |
void |
setParseable(boolean parseable)
Set true if it is parseable. |
String |
toString()
Gets a textual representation of this attribute. |
void |
writeXML(PrintWriter writer)
Writes the XML element representation of this object. |
| Methods inherited from class inetsoft.uql.erm.XAttribute |
|---|
addPropertyChangeListener, clone, getBrowseDataQuery, getColumn, getDataType, getDefaultFormula, getDescription, getName, getRefType, getTable, getXMetaInfo, isBrowseable, mapToColumn, removeAllPropertyChangeListeners, removePropertyChangeListener, setBrowseable, setBrowseDataQuery, setDataType, setDefaultFormula, setDescription, setName, setRefType, setXMetaInfo |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ExpressionAttribute(String name)
public ExpressionAttribute(String name,
String expr)
| Method Detail |
|---|
public boolean isExpression()
isExpression in class XAttributepublic void setExpression(String expression)
expression - a SQL expressionpublic String getExpression()
public boolean isAggregateExpression()
public void setAggregateExpression(boolean b)
public void writeXML(PrintWriter writer)
writeXML in class XAttributewriter - the output stream to which to write the XML data.
public void parseXML(Element tag)
throws Exception
parseXML in class XAttributetag - the XML Element for this object.
Exception - if an error occurs while parsing the XML element.public String toString()
XAttribute.getName() method.
toString in class XAttributeExpressionAttribute: attribute name.public boolean equals(Object obj)
equals in class XAttributepublic String[] getTables()
getTables in class XAttributepublic String[] getColumns()
getColumns in class XAttributepublic boolean isParseable()
public void setParseable(boolean parseable)
|
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 | ||||||||