Style Intelligence v12.0

inetsoft.uql.erm
Class ExpressionAttribute

java.lang.Object
  extended by inetsoft.uql.erm.XAttribute
      extended by inetsoft.uql.erm.ExpressionAttribute
All Implemented Interfaces:
Serializable, Cloneable

public class ExpressionAttribute
extends XAttribute

An ExpressionAttribute encapsulates an attribute of an entity that is defined with an expression.

Since:
4.4
See Also:
Serialized Form

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

ExpressionAttribute

public ExpressionAttribute(String name)
Create an expression with the specified name.


ExpressionAttribute

public ExpressionAttribute(String name,
                           String expr)
Create an expression with the specified name and sql expression.

Method Detail

isExpression

public boolean isExpression()
Check if the attribute is an expression.

Overrides:
isExpression in class XAttribute
Returns:
true if is an expression, false otherwise.

setExpression

public void setExpression(String expression)
Set the SQL expression of this reference.

Parameters:
expression - a SQL expression

getExpression

public String getExpression()
Get the name of the database column this attribute is mapped to.

Returns:
the name of a database column.

isAggregateExpression

public boolean isAggregateExpression()
Check if the expression is an aggregate expression.


setAggregateExpression

public void setAggregateExpression(boolean b)
Set true if it is an aggregate expression.


writeXML

public void writeXML(PrintWriter writer)
Writes the XML element representation of this object.

Overrides:
writeXML in class XAttribute
Parameters:
writer - the output stream to which to write the XML data.

parseXML

public void parseXML(Element tag)
              throws Exception
Reads in a attribute definition from its XML representation.

Overrides:
parseXML in class XAttribute
Parameters:
tag - the XML Element for this object.
Throws:
Exception - if an error occurs while parsing the XML element.

toString

public String toString()
Gets a textual representation of this attribute. For user interface purposes use the XAttribute.getName() method.

Overrides:
toString in class XAttribute
Returns:
a string representation of this object. This value will have the format ExpressionAttribute: attribute name.

equals

public boolean equals(Object obj)
Overrides:
equals in class XAttribute

getTables

public String[] getTables()
Gets the name of the database tables this attribute is mapped to.

Overrides:
getTables in class XAttribute
Returns:
the names of a database tables.

getColumns

public String[] getColumns()
Ge the full name of all datatable columns referenced by this attribute.

Overrides:
getColumns in class XAttribute

isParseable

public boolean isParseable()
Check if the attribute is parseable.


setParseable

public void setParseable(boolean parseable)
Set true if it is parseable.


Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.