|
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.XLogicalModel
public class XLogicalModel
A business logic view of a relational database model.
| Field Summary |
|---|
| Fields inherited from interface inetsoft.uql.XCube |
|---|
ESSBASE, MODEL, MONDRIAN, SAP, SQLSERVER |
| Constructor Summary | |
|---|---|
XLogicalModel(String name)
Create a new instance of XLogicalModel. |
|
XLogicalModel(String name,
XLogicalModel base)
Create a new instance of XLogicalModel. |
|
| Method Summary | |
|---|---|
void |
addDataModelListener(DataModelListener l)
Add a listener that is notified when this model has been changed. |
void |
addDimension(XDimension dimension)
Add a dimension to this model. |
void |
addEntity(int index,
XEntity entity)
Add an entity to this model. |
void |
addEntity(XEntity entity)
Add an entity to this model. |
void |
addLogicalModel(XLogicalModel child)
Add a child XLogicalModel. |
void |
addMeasure(XMeasure measure)
Add a measure to this model. |
void |
addVariable(XVariable var)
Add a variable to this query. |
protected XLogicalModel |
applyRuntime(Principal user,
boolean hideAttributes)
Create a new logical model, a clone of extended model or self, hide invisible entities and attributes. |
Object |
clone()
Create a copy of this object. |
int |
compareTo(XLogicalModel obj)
Compares this object with the specified object for order. |
boolean |
containLogicalModel(String name)
Check if child XLogicalModel exists. |
boolean |
equals(Object obj)
Determine if the specified object is equivalent to this object. |
XLogicalModel |
getBaseModel()
Get the base model. |
String |
getConnection()
Get a connection of this model. |
XDataModel |
getDataModel()
Get data model. |
String |
getDataSource()
Get the datasource name of this logical model. |
Enumeration |
getDefinedVariables()
Get the names of all variables need to be defined in this query. |
Enumeration |
getDefinedVariables(XDataModel parent)
Get the names of all variables need to be defined in this query. |
String |
getDescription()
Get a description of this model. |
XDimension |
getDimension(String name)
Get the dimension with the specified name. |
int |
getDimensionCount()
Get the number of dimensions in this model. |
Enumeration |
getDimensions()
Get a list of all dimensions in this model. |
Enumeration |
getEntities()
Get a list of all entities in this model. |
Enumeration |
getEntitiesForTable(String table)
Get a list of all entities in this model that are mapped to the specified table. |
XEntity |
getEntity(String name)
Get the entity with the specified name. |
XEntity |
getEntityAt(int idx)
Get specified entity by index from this model. |
int |
getEntityCount()
Get the count of entity. |
XEntity |
getEntityForColumn(String table,
String column)
Get the entity in this model that is mapped to the specified column. |
int |
getEntityIndex(String name)
Get the position of the entity. |
boolean |
getEntityOrder()
Get the logical model order. |
XLogicalModel |
getLogicalModel(String name)
Get child XLogicalModel with specified name. |
XLogicalModel |
getLogicalModelByConnection(String connection,
boolean strict)
Get child XLogicalModel with specified connection. |
String[] |
getLogicalModelNames()
Get the names of child models. |
XCubeMember |
getMeasure(String name)
Get the measure with the specified name. |
int |
getMeasureCount()
Get the number of measures in this model. |
Enumeration |
getMeasures()
Get a list of all measures in this model. |
String |
getName()
Get the name of this model. |
String |
getPartition()
Get the physical model which this logical model represents. |
String |
getPartitionUsed(XPartition partition)
Get the extended view which used this extended partition. |
int |
getPriority()
Get the priority of this model. |
String |
getType()
Get cube type. |
XVariable |
getVariable(String name)
Get a variable defined in this query. |
Enumeration |
getVariableNames()
Get the names of all variables used in this query. |
boolean |
isBaseEntity(String name)
Determine if the entity is from the base model. |
boolean |
isEntityVisible(String name)
Check the specified entity is visible or not. |
boolean |
moveEntity(String name,
boolean up)
Move entity up or down. |
void |
parseXML(Element tag)
Read in the definition of this object from an XML tag. |
void |
removeDataModelListener(DataModelListener l)
Remove a DataModelListener from the notification list. |
void |
removeDimension(String name)
Remove the dimension with the specified name from this model. |
void |
removeEntity(String name)
Remove the entity with the specified name from this model. |
void |
removeLogicalModel(String name)
remove a child XLogicalModel. |
void |
removeMeasure(String name)
Remove the measure with the specified name from this model. |
void |
removeVariable(String name)
Remove a variable from this query. |
void |
renameDatasource(String oname,
String nname)
Rename child logicla model. |
void |
renameLogicalModel(String oname,
XLogicalModel extend)
rename a child XLogicalModel. |
void |
setBaseModel(XLogicalModel base)
Set the base model. |
void |
setConnection(String connection)
Set the connection of this model. |
void |
setDataModel(XDataModel model)
Set data model. |
void |
setDataSource(String datasource)
Deprecated. |
void |
setDescription(String description)
Set the description of this model. |
void |
setDimension(XDimension dimension,
int index)
Set a dimension to this model. |
void |
setEntityOrder(boolean entityOrder)
Set the logical model order. |
void |
setEntityVisible(String name,
boolean visible)
Set visibility of the entity. |
void |
setName(String name)
Set the name of this model. |
void |
setPartition(String partition)
Set the physical model which this logical model represents. |
void |
setPriority(int priority)
Set the priority of this model. |
void |
setRuntime(boolean runtime)
Set is runtime mode or not. |
void |
updateEntity(String oname,
XEntity entity)
Update an entity to this model. |
void |
updateReference()
Update child model reference. |
void |
writeEnd(PrintWriter writer)
|
void |
writeStart(PrintWriter writer)
|
void |
writeXML(PrintWriter writer)
Write an XML element representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XLogicalModel(String name)
name - the name of the model.
public XLogicalModel(String name,
XLogicalModel base)
name - the name of the model.base - the base model| Method Detail |
|---|
public void addDimension(XDimension dimension)
dimension - the dimension to add.
public void setDimension(XDimension dimension,
int index)
dimension - the dimension to add.index - the index to add.public int getDimensionCount()
@Deprecated public void setDataSource(String datasource)
datasource - the datasource name.public String getDataSource()
public XDimension getDimension(String name)
getDimension in interface XCubename - the name of the dimension.
null if no dimension with the
specified name exists.public Enumeration getDimensions()
getDimensions in interface XCubepublic void removeDimension(String name)
name - the name of the dimension to remove.public int getEntityCount()
public void addEntity(XEntity entity)
entity - the entity to add.
public void addEntity(int index,
XEntity entity)
entity - the entity to add.
public void updateEntity(String oname,
XEntity entity)
oname - old entity name.entity - the entity to add.public XEntity getEntity(String name)
name - the name of the entity.
null if no entity with the specified
name exists.public boolean isBaseEntity(String name)
public Enumeration getEntities()
public XEntity getEntityAt(int idx)
idx - the index of the entity to get.public void removeEntity(String name)
name - the name of the entity to remove.public void addMeasure(XMeasure measure)
measure - the measure to add.public int getMeasureCount()
public XCubeMember getMeasure(String name)
getMeasure in interface XCubename - the name of the measure.
null if no measure with the specified
name exists in this model.public Enumeration getMeasures()
getMeasures in interface XCubepublic void removeMeasure(String name)
name - the name of the measure to remove.public String getName()
getName in interface XCubepublic void setName(String name)
name - the model name.public String getConnection()
public void setConnection(String connection)
connection - connection of this model.public String getDescription()
public void setDescription(String description)
description - a description.public void addDataModelListener(DataModelListener l)
l - the listener to add.public void removeDataModelListener(DataModelListener l)
l - the listener to remove.public int getPriority()
public void setPriority(int priority)
priority - the priority of this model.public Enumeration getEntitiesForTable(String table)
table - the name of the table.
public XEntity getEntityForColumn(String table,
String column)
table - the name of the table.column - the name of the column.
null if no entity in this model is
mapped to the specified column.public Enumeration getDefinedVariables()
public Enumeration getDefinedVariables(XDataModel parent)
public Enumeration getVariableNames()
public XVariable getVariable(String name)
name - variable name.
public void addVariable(XVariable var)
var - variable definition.public void removeVariable(String name)
name - variable name.public Object clone()
clone in class Objectpublic boolean equals(Object obj)
equals in class Objectobj - the object to compare.
true if the objects are equivalent.public int compareTo(XLogicalModel obj)
compareTo in interface Comparableobj - the Object to be compared.
public String getPartition()
public void setPartition(String partition)
partition - the name of the partition.public boolean getEntityOrder()
public void setEntityOrder(boolean entityOrder)
entityOrder - the value of the entityOrder.public void writeXML(PrintWriter writer)
writeXML in interface inetsoft.util.XMLSerializablewriter - the output stream to which to write the XML data.public void writeStart(PrintWriter writer)
writeStart in interface inetsoft.util.xml.XMLStorage.XMLFragmentpublic void writeEnd(PrintWriter writer)
writeEnd in interface inetsoft.util.xml.XMLStorage.XMLFragment
public void parseXML(Element tag)
throws Exception
parseXML in interface inetsoft.util.XMLSerializabletag - the XML Element representing this object.
Exceptionpublic int getEntityIndex(String name)
public void setBaseModel(XLogicalModel base)
public XLogicalModel getBaseModel()
public void setRuntime(boolean runtime)
runtime - apply visible of entities and attributes.
public void setEntityVisible(String name,
boolean visible)
name - the name of specified entity.public boolean isEntityVisible(String name)
name - the name of the specified entity.public void addLogicalModel(XLogicalModel child)
public boolean containLogicalModel(String name)
public XLogicalModel getLogicalModel(String name)
public String getPartitionUsed(XPartition partition)
public XLogicalModel getLogicalModelByConnection(String connection,
boolean strict)
public String[] getLogicalModelNames()
public void renameDatasource(String oname,
String nname)
public void removeLogicalModel(String name)
public void renameLogicalModel(String oname,
XLogicalModel extend)
protected XLogicalModel applyRuntime(Principal user,
boolean hideAttributes)
public boolean moveEntity(String name,
boolean up)
public void updateReference()
public XDataModel getDataModel()
public void setDataModel(XDataModel model)
public String getType()
getType in interface XCube
|
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 | ||||||||