|
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
public class XAttribute
An XAttribute represents an attribute of an entity in a data model. Every XAttribute is mapped to a single column in the data source. Additionally, the data type for the attribute can be specified.
| Field Summary | |
|---|---|
static String |
BROWSE_DATA_QUERY
Property name for the name of the browse data query. |
static String |
BROWSEABLE
Property name for the browseable property. |
static String |
DATA_TYPE
Property name of the data type of the attribute. |
static String |
DESCRIPTION
Property name for the description of the attribute. |
static String |
MAPPED_COLUMN
Property name of the mapped column of the attribute. |
static String |
META_DATA
Property name of the meta data of the attribute. |
static String |
NAME
Property name for the name of the attribute. |
| Constructor Summary | |
|---|---|
XAttribute(String name,
String table,
String column)
Creates a new instance of XAttribute with a default data type of String. |
|
XAttribute(String name,
String table,
String column,
String type)
Creates a new instance of XAttribute with the specified data type. |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds a listener that is notified when a property of this attribute is changed. |
Object |
clone()
Creates and returns a copy of this attribute object. |
boolean |
equals(Object obj)
|
String |
getBrowseDataQuery()
Get the query to use for retrieve a list of values for Browse Data. |
String |
getColumn()
Get the name of the database column this attribute is mapped to. |
String[] |
getColumns()
Ge the full name of all datatable columns referenced by this attribute. |
String |
getDataType()
Gets the data type of this attribute. |
String |
getDefaultFormula()
Get the default formula. |
String |
getDescription()
Gets a description of this attribute. |
String |
getName()
Gets the name of this attribute. |
int |
getRefType()
Get the ref type. |
String |
getTable()
Gets the name of the database table this attribute is mapped to. |
String[] |
getTables()
Gets the name of all database tables referenced by this attribute. |
XMetaInfo |
getXMetaInfo()
Get the meta data of this attribute. |
boolean |
isBrowseable()
Check if this attribute can be browsed. |
boolean |
isExpression()
Check if the attribute is an expression. |
void |
mapToColumn(String table,
String column)
Maps this attribute to the specified column in the data source. |
protected void |
parseXML(Element tag)
Reads in an attribute definition from its XML representation. |
void |
removeAllPropertyChangeListeners()
Removes all registered property change listeners from the notification list. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes a property change listener from the notification list. |
void |
setBrowseable(boolean browse)
Set whether this attribute can be browsed by end user. |
void |
setBrowseDataQuery(String query)
Set the query to use for retrieve a list of values for Browse Data. |
void |
setDataType(String type)
Sets the data type of this attribute. |
void |
setDefaultFormula(String formula)
Set the default formula. |
void |
setDescription(String description)
Sets the description for this attribute. |
void |
setName(String name)
Sets the name of this attribute. |
void |
setRefType(int refType)
Set the ref type. |
void |
setXMetaInfo(XMetaInfo meta)
Sets the meta data type of this attribute. |
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 java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String NAME
public static final String BROWSE_DATA_QUERY
public static final String BROWSEABLE
public static final String DESCRIPTION
public static final String DATA_TYPE
public static final String MAPPED_COLUMN
public static final String META_DATA
| Constructor Detail |
|---|
public XAttribute(String name,
String table,
String column)
name - the name of this attribute. The name should be in a human
readable format and allow a user to infer its meaning and
useage.table - the name of the database table this attribute maps into.column - the name of the database column this attribute maps into.
public XAttribute(String name,
String table,
String column,
String type)
name - the name of this attribute. The name should be in a human
readable format and allow a user to infer its meaning and
useage.table - the name of the database table this attribute maps into.column - the name of the database column this attribute maps into.type - the data type of this attribute. Must be one of the data
type constants defined in
XSchema.| Method Detail |
|---|
public void setName(String name)
name - the name of the attribute.public String getName()
public boolean isExpression()
public void setBrowseDataQuery(String query)
query - the name of the query.public String getBrowseDataQuery()
public void setBrowseable(boolean browse)
browse - true if this attribute is browsable.public boolean isBrowseable()
true if this attribute is browsable.public void setDescription(String description)
description - a description of this attribute.public String getDescription()
public void mapToColumn(String table,
String column)
table - the name of the table to map into.column - the name of the column to map into.public String getTable()
public String getColumn()
public String[] getTables()
public String[] getColumns()
public void setDataType(String type)
XSchema.
type - the data type.public String getDataType()
XSchemapublic void setXMetaInfo(XMetaInfo meta)
meta - the meta data.public XMetaInfo getXMetaInfo()
public void writeXML(PrintWriter writer)
writer - the output stream to which to write the XML data.
protected void parseXML(Element tag)
throws Exception
tag - the XML Element for this object.
Exception - if an error occurs while parsing the XML element.public String toString()
getName() method.
toString in class ObjectXAttribute: attribute name.public Object clone()
clone in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic void addPropertyChangeListener(PropertyChangeListener l)
l - the listener to add.public void removePropertyChangeListener(PropertyChangeListener l)
l - the listener to remove.public void removeAllPropertyChangeListeners()
public void setRefType(int refType)
public int getRefType()
public String getDefaultFormula()
public void setDefaultFormula(String formula)
|
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 | ||||||||