|
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.XPartition
public class XPartition
A partition is a group of related tables.
| Nested Class Summary | |
|---|---|
class |
XPartition.PartitionTables
|
| Field Summary | |
|---|---|
static int |
CYCLE
Status flag indicating that a cycle exists among the relationships of the model. |
static int |
UNJOINED
Status flag indicating that unjoined tables exist in the model. |
static int |
VALID
Status flag indicating that no problems exist with the model. |
| Constructor Summary | |
|---|---|
XPartition()
Creates a new instance of XPartition. |
|
XPartition(String name)
Creates a new instance of XPartition. |
|
XPartition(String name,
XPartition base)
Creates a new instance of XPartition. |
|
| Method Summary | |
|---|---|
void |
addPartition(XPartition child)
Add a child XPartition. |
void |
addRelationship(XRelationship relationship)
Add a relationship to this data model. |
void |
addTable(String table,
int type,
String sql,
Object catalog,
Object schema)
Adds a table or an alias to this partition. |
void |
addTable(String table,
int type,
String sql,
Rectangle bounds,
Object catalog,
Object schema)
Adds a table to this partition that is rendered at the specified location. |
void |
addTable(String table,
Object catalog,
Object schema)
Adds a table or an alias to this partition. |
void |
addTable(String table,
Rectangle bounds)
Adds a table to this partition that is rendered at the specified location. |
void |
addTable(String table,
Rectangle bounds,
Object catalog,
Object schema)
Adds a table to this partition that is rendered at the specified location. |
XPartition |
applyAutoAliases()
Create a new partition with all auto-aliases expanded. |
Object |
clone()
Creates a copy of this object. |
Boolean |
containPartition(String name)
Check if child XPartition exists. |
boolean |
containsTable(String table)
Determines if this partition contains the specified table. |
boolean |
containsTable(String table,
boolean fuzzy)
Determines if this partition contains the specified table. |
boolean |
equals(Object obj)
Determines if this object is equivalent to another object. |
XRelationship |
findRelationship(String dependentTable,
String independentTable)
Finds a join between the specified tables. |
XRelationship[] |
findRelationships(Set originating,
Set others)
Find all relations necessary to connect the tables in the originating set to the others set. |
XRelationship[] |
findRelationships(Set originating,
Set others,
boolean useAlias)
Find all relations necessary to connect the tables in the originating set to the others set. |
XRelationship[] |
findRelationships(String dependentTable,
String independentTable,
Collection tables)
Gets all the relationships required to create a join between the specified tables. |
XRelationship[] |
findRelationships(String dependentTable,
String independentTable,
Collection tables,
boolean useAlias)
Gets all the relationships required to create a join between the specified tables. |
String |
getAliasTable(String table)
Get the physical table name of a table alias. |
String |
getAliasTable(String table,
boolean recursive)
Get the physical table name of a table alias. |
AutoAlias |
getAutoAlias(String table)
Get the auto alias definition for a table. |
String |
getAutoAliasTable(String alias)
Get the auto alias table which contains this table name. |
XPartition |
getBasePartition()
Get the base partition. |
Rectangle |
getBounds(String table)
Gets the location and size of the table. |
Rectangle |
getBounds(XPartition.PartitionTables table)
Gets the location and size of the table. |
String |
getConnection()
Get the partition connection. |
Set |
getCycleRelationships()
Gets the relationships involved in a cycle. |
Set |
getCycleRelationships(boolean refresh)
Gets the relationships involved in a cycle. |
XDataModel |
getDataModel()
Get data model. |
String |
getDescription()
Gets a description of this partition. |
String |
getName()
Gets the name of this partition. |
XPartition |
getPartition(String name)
Get child XPartition with specified name. |
XPartition |
getPartitionByConnection(String connection)
Get child XPartition by specified connection. |
String[] |
getPartitionNames()
Get names of the child partitions. |
XPartition.PartitionTables |
getPartitionTable(String name)
Get the PartitionTable of tables in this partition. |
XRelationship |
getRelationship(int idx)
Get relationship by index. |
int |
getRelationshipCount()
Get the number of relationships defined in this data model. |
Enumeration |
getRelationships()
Get a list of the relationships defined in this data model. |
Object |
getRunTimeTable(String alias,
boolean recursive)
Get the physical table name of a table alias. |
int |
getStatus()
Checks the status of this physical view. |
int |
getTableCount()
Get the number of tables in this partition. |
Enumeration |
getTables()
Gets a list of the tables in this partition. |
Enumeration |
getTables(boolean self)
Gets a list of the tables in this partition. |
String[] |
getUnjoinedTables()
Checks for any unjoined tables in the view. |
boolean |
isAlias(String table)
Check if a table is an alias to another table. |
boolean |
isBaseRelationship(XRelationship replation)
Check this XRelationship is in the base partition. |
boolean |
isBaseTable(String table)
Check this table is in the base partition. |
boolean |
isIncludeAllJoin()
Check if include all join. |
boolean |
isRuntimeAlias(String table)
Check if a table is a runtime alias to another table. |
void |
parseXML(Element tag)
Reads the definition of this partition from an XML element. |
void |
removeAllAutoAliases()
Remove all auto-alias setting. |
void |
removeMetaData()
|
void |
removePartition(String name)
remove a child XPartition. |
void |
removeRelationship(int idx)
Remove relationship by index. |
void |
removeRelationship(XRelationship relationship)
Remove a relationship from this data model. |
void |
removeTable(String table)
Removes a table from this partition. |
void |
renameAlias(String source,
String oname,
String name)
Rename a table alias. |
void |
renameAlias(String source,
String oname,
String name,
int type,
String sql)
Rename a table alias. |
void |
renameParition(String oname,
XPartition partition)
Rename child partition |
void |
renamePartition(String oname,
String nname)
rename a child XPartition. |
void |
renameTable(String oldName,
String newName)
Renames a table. |
void |
setAliasTable(String alias,
String table)
Set the physical table of an alias. |
void |
setAutoAlias(String table,
AutoAlias alias)
Set the auto alias definition for a table. |
void |
setBaseParitition(XPartition base)
Set the base partition. |
void |
setBounds(String table,
Rectangle bounds)
Get the location and size of the table. |
void |
setConnection(String connection)
set the partition connection. |
void |
setDataModel(XDataModel model)
Set data model. |
void |
setDescription(String description)
Sets the description of this partition. |
void |
setIncludeAllJoin(boolean all)
Set include all join property. |
void |
setName(String name)
Sets the name of this partition. |
void |
setZoomRatio(double zoom)
Set the value of the zoomRatio. |
String |
toString()
Get the string representaion. |
void |
updateReference()
Update child partition reference. |
void |
validate()
Validate the data model. |
String |
verify()
Verify the integrity of this physical view. |
void |
writeEnd(PrintWriter writer)
|
void |
writeStart(PrintWriter writer)
|
void |
writeXML(PrintWriter writer)
Writes an XML representation of this partition. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int VALID
public static final int CYCLE
public static final int UNJOINED
| Constructor Detail |
|---|
public XPartition()
public XPartition(String name)
name - the name of the partition.
public XPartition(String name,
XPartition base)
name - the name of the partition.base - the base partition.| Method Detail |
|---|
public void addPartition(XPartition child)
public Boolean containPartition(String name)
public XPartition getPartition(String name)
public XPartition getPartitionByConnection(String connection)
public void renameParition(String oname,
XPartition partition)
public String[] getPartitionNames()
public void removePartition(String name)
public void renamePartition(String oname,
String nname)
public String getConnection()
public void setConnection(String connection)
public XPartition getBasePartition()
public boolean isBaseTable(String table)
public boolean isBaseRelationship(XRelationship replation)
public String getName()
public void setName(String name)
name - the name of this partition.public void setIncludeAllJoin(boolean all)
public boolean isIncludeAllJoin()
public String getDescription()
public void setDescription(String description)
description - a description of this partition.public XDataModel getDataModel()
public void setDataModel(XDataModel model)
public Enumeration getTables()
public Enumeration getTables(boolean self)
public int getTableCount()
public XPartition.PartitionTables getPartitionTable(String name)
name - the name of PartitionTable.
public void addTable(String table,
Object catalog,
Object schema)
table - the name of the table or alias.
public void addTable(String table,
int type,
String sql,
Object catalog,
Object schema)
table - the name of the table or alias.
public void addTable(String table,
Rectangle bounds)
table - the name of the table.bounds - position and size of the table.
public void addTable(String table,
Rectangle bounds,
Object catalog,
Object schema)
table - the name of the table.bounds - position and size of the table.
public void addTable(String table,
int type,
String sql,
Rectangle bounds,
Object catalog,
Object schema)
table - the name of the table.bounds - position and size of the table.public boolean isAlias(String table)
public void renameTable(String oldName,
String newName)
oldName - the old table name.newName - the new table name.public void removeTable(String table)
table - the name of the table.public boolean containsTable(String table)
table - the name of the table.
true if the table is in this partition.
public boolean containsTable(String table,
boolean fuzzy)
table - the name of the table.fuzzy - true to check if in all containers, false
to check if an existent table only.
true if the table is in this partition.public Rectangle getBounds(String table)
table - the name of the table.
public Rectangle getBounds(XPartition.PartitionTables table)
table - the name of the table.
public void setBounds(String table,
Rectangle bounds)
table - the name of the table.bounds - the bounds of the table.public AutoAlias getAutoAlias(String table)
public String getAutoAliasTable(String alias)
alias - the alias name.
public void setAutoAlias(String table,
AutoAlias alias)
public void removeAllAutoAliases()
public String getAliasTable(String table)
table - name of a table alias.
public String getAliasTable(String table,
boolean recursive)
table - name of a table alias.public boolean isRuntimeAlias(String table)
public Object getRunTimeTable(String alias,
boolean recursive)
alias - name of a table alias.
public void setAliasTable(String alias,
String table)
public void renameAlias(String source,
String oname,
String name)
public void renameAlias(String source,
String oname,
String name,
int type,
String sql)
public void addRelationship(XRelationship relationship)
relationship - the relationship to add.public Enumeration getRelationships()
public int getRelationshipCount()
public XRelationship getRelationship(int idx)
public void removeRelationship(int idx)
public XRelationship findRelationship(String dependentTable,
String independentTable)
dependentTable - the dependent table in the relationship.independentTable - the independent table in the relationship.
null if
no such relationship between the tables has been defined.public int getStatus()
VALID, CYCLE, or
UNJOINED.public String verify()
public String[] getUnjoinedTables()
null if no
unjoined tables are found.public Set getCycleRelationships()
null if no cycle exists.public Set getCycleRelationships(boolean refresh)
null if no cycle exists.
public XRelationship[] findRelationships(String dependentTable,
String independentTable,
Collection tables)
dependentTable - the dependent table in the join.independentTable - the independent table in the join.tables - all tables that are already included in the query.
null if no join is
possible between the two tables.
public XRelationship[] findRelationships(String dependentTable,
String independentTable,
Collection tables,
boolean useAlias)
dependentTable - the dependent table in the join.independentTable - the independent table in the join.tables - all tables that are already included in the query.useAlias - true if use alias.
null if no join is
possible between the two tables.
public XRelationship[] findRelationships(Set originating,
Set others)
originating - set of table names (string).others - set of table names (string).
public XRelationship[] findRelationships(Set originating,
Set others,
boolean useAlias)
originating - set of table names (string).others - set of table names (string).useAlias - true if use alias.
public void removeRelationship(XRelationship relationship)
relationship - the relationship to remove.public XPartition applyAutoAliases()
public void validate()
public void updateReference()
public Object clone()
clone in class Objectpublic boolean equals(Object obj)
equals in class Objectobj - the reference object with which to compare.
true if the objects are are equivalent,
false otherwise.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 inetsoft.util.XMLSerializablewriter - the output stream to which to write the XML representation.
public void parseXML(Element tag)
throws DOMException
parseXML in interface inetsoft.util.XMLSerializabletag - the XML element that represents this partition.
DOMException - if an error occurs while parsing the XML element.public void setZoomRatio(double zoom)
public String toString()
toString in class Objectpublic void setBaseParitition(XPartition base)
public void removeMetaData()
|
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 | ||||||||