|
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.XDataModel
public class XDataModel
An XDataModel represents a set of logical models for a physical data source. A logical model consists of a collection of entities and relationships.
| Field Summary | |
|---|---|
static String |
DATAMODEL
|
static String |
DEFAULTCONNECTION
|
static String |
LOGICALMODEL
|
static String |
PARTITION
|
static String |
VPMOBJECT
|
| Constructor Summary | |
|---|---|
XDataModel(String datasource)
Create a new instance of XDataModel. |
|
| Method Summary | |
|---|---|
void |
addLogicalModel(XLogicalModel model)
Add a logical model to this data model. |
void |
addPartition(XPartition partition)
Add a partition to this model. |
void |
addVirtualPrivateModel(VirtualPrivateModel model)
Add a virtual private model to this data model. |
void |
clearCache()
Clears all cached cube result sets for this data model. |
Object |
clone()
Create a copy of this object. |
boolean |
containsTable(String table)
Check if a table is contained in the data model, will iterate the data model's partitions to get result. |
boolean |
containsVirtualPrivateModel(VirtualPrivateModel model)
Check if contains a virtual private model in this data model. |
XCube |
getCube(String name)
Get the specified cube. |
Enumeration |
getCubes()
Deprecated. |
String |
getDataSource()
Get the name of the data source that this model represents. |
XLogicalModel |
getLogicalModel(String name)
Get the logical model with the specified name. |
XLogicalModel |
getLogicalModel(String name,
Principal user)
Get the runtime mode logical model with the specified name. |
XLogicalModel |
getLogicalModel(String name,
Principal user,
boolean hideAttributes)
Get the runtime mode logical model with the specified name. |
int |
getLogicalModelCount()
Get the number of logical models in this data model. |
Enumeration |
getLogicalModelNames()
Get the names of all logical models in this data model. |
XPartition |
getPartition(String name)
Get the partition with the specified name. |
XPartition |
getPartition(String name,
Principal user)
Get the partition with the specified name. |
int |
getPartitionCount()
Get the number of partitions in this data model. |
String[] |
getPartitionNames()
Get the names of all partition in this data model. |
Enumeration |
getPartitions()
Deprecated. |
VirtualPrivateModel |
getVirtualPrivateModel(String name)
Get the virtual private model with the specified private name. |
String[] |
getVirtualPrivateModelNames()
Get the names of all virtual private model in this data model. |
Enumeration |
getVirtualPrivateModels()
Deprecated. |
void |
parseXML(Element tag)
Read in the definition of this object from an XML tag. |
void |
removeLogicalModel(String name)
Remove a logical model from this data model. |
void |
removePartition(String name)
Remove a partition from this data model. |
void |
removeVirtualPrivateModel(String name)
Remove a virtual private model from this data model. |
void |
removeVirtualPrivateModel(VirtualPrivateModel model)
Remove a virtual private model from this data model. |
void |
removeVirtualPrivateModels()
Remove all the virtual private models from this data model. |
void |
renameLogicalModel(String oldName,
String newName)
Rename a logical model in this data model. |
void |
renamePartition(String oldName,
String newName)
Rename a partition in this data model. |
void |
renameVirtualPrivateModel(String oldName,
VirtualPrivateModel vpm)
Rename a virtual private model in this data model. |
void |
setDataSource(String datasource)
Set the name of the data source that this model represents. |
void |
updateLogicalModel(XLogicalModel model)
Deprecated. |
void |
validate()
Validate the data model. |
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 |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DATAMODEL
public static final String LOGICALMODEL
public static final String PARTITION
public static final String VPMOBJECT
public static final String DEFAULTCONNECTION
| Constructor Detail |
|---|
public XDataModel(String datasource)
datasource - the name of the JDBC data source that the model
represents.| Method Detail |
|---|
public String getDataSource()
getDataSource in interface XDomainpublic void setDataSource(String datasource)
setDataSource in interface XDomaindatasource - the name of a JDBC data source.public Enumeration getCubes()
getCubes in interface XDomainpublic XCube getCube(String name)
getCube in interface XDomainname - the name of the cube.
null if no cube with the
specified name exists.public void addLogicalModel(XLogicalModel model)
model - the logical model to add.
public void renameLogicalModel(String oldName,
String newName)
oldName - the old name of the logical model.newName - the new name of the logical model.
public void renameVirtualPrivateModel(String oldName,
VirtualPrivateModel vpm)
oldName - the old name of the virtual private model.vpm - the new name of the virtual private model.public void updateLogicalModel(XLogicalModel model)
model - the logical model to update.public XLogicalModel getLogicalModel(String name)
name - the name of the logical model.
null if no logical model with the
specified name exists.
public XLogicalModel getLogicalModel(String name,
Principal user)
name - the name of the logical model.
null if no logical model with the
specified name exists.
public XLogicalModel getLogicalModel(String name,
Principal user,
boolean hideAttributes)
name - the name of the logical model.hideAttributes - hide invisible entities and attributes or not.
null if no logical model with the
specified name exists.public Enumeration getLogicalModelNames()
public int getLogicalModelCount()
public void removeLogicalModel(String name)
name - the name of the logical model to remove.public void addVirtualPrivateModel(VirtualPrivateModel model)
model - the virtual private model.public boolean containsVirtualPrivateModel(VirtualPrivateModel model)
model - the speified virtual private model.
public String[] getVirtualPrivateModelNames()
public VirtualPrivateModel getVirtualPrivateModel(String name)
name - the private name of the virtual private model.
null if no virtual private
model with the specified name exists.public Enumeration getVirtualPrivateModels()
public void removeVirtualPrivateModel(String name)
name - the name of the virtual private model to remove.public void removeVirtualPrivateModel(VirtualPrivateModel model)
model - the virtual private model to remove.public void removeVirtualPrivateModels()
public void addPartition(XPartition partition)
partition - the partition to add.public String[] getPartitionNames()
public XPartition getPartition(String name)
name - the name of the partition.
null if no partitions exist with
the specified name.
public XPartition getPartition(String name,
Principal user)
name - the name of the partition.
null if no partitions exist with
the specified name.public Enumeration getPartitions()
public int getPartitionCount()
public void removePartition(String name)
name - the name of the partition to remove.
public void renamePartition(String oldName,
String newName)
oldName - the old name of the partition.newName - the new name of the partition.public boolean containsTable(String table)
table - the specified table.
public void validate()
public void writeStart(PrintWriter writer)
writeStart in interface inetsoft.util.xml.XMLStorage.XMLFragmentpublic void writeEnd(PrintWriter writer)
writeEnd in interface inetsoft.util.xml.XMLStorage.XMLFragmentpublic void writeXML(PrintWriter writer)
writeXML in interface XDomainwriter - the output stream to which to write the XML data.
public void parseXML(Element tag)
throws Exception
parseXML in interface XDomaintag - the XML Element representing this object.
Exceptionpublic Object clone()
clone in interface XDomainclone in class Objectpublic void clearCache()
clearCache in interface XDomain
|
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 | ||||||||