|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.sqlpower.architect.olap.OLAPObject
ca.sqlpower.architect.olap.MondrianModel.Schema
public static class MondrianModel.Schema
A schema is a collection of cubes and virtual cubes. It can also contain shared dimensions (for use by those cubes), named sets, roles, and declarations of user-defined functions.
| Field Summary |
|---|
| Fields inherited from class ca.sqlpower.architect.olap.OLAPObject |
|---|
pcs |
| Constructor Summary | |
|---|---|
MondrianModel.Schema()
Creates a new Schema with all attributes set to their defaults. |
|
MondrianModel.Schema(MondrianModel.Schema original)
Creates a new Schema with all attributes copied from the given Schema. |
|
| Method Summary | |
|---|---|
void |
addChild(int index,
OLAPObject child)
Adds the given child or sets the appropriate property on this OLAPObject, allowing the overall target index to be specified. |
void |
addChild(OLAPObject child)
Adds the given child or sets the appropriate property on this OLAPObject, if this type of OLAPObject has the applicable addXXX() or setXXX() method for the given object's type. |
void |
addCube(int pos,
MondrianModel.Cube newChild)
Adds the given child object at the specified position, firing an OLAPChildEvent. |
void |
addCube(MondrianModel.Cube newChild)
Adds the given child object at the end of the child list, firing an OLAPChildEvent. |
void |
addDimension(int pos,
MondrianModel.Dimension newChild)
Adds the given child object at the specified position, firing an OLAPChildEvent. |
void |
addDimension(MondrianModel.Dimension newChild)
Adds the given child object at the end of the child list, firing an OLAPChildEvent. |
void |
addNamedSet(int pos,
MondrianModel.NamedSet newChild)
Adds the given child object at the specified position, firing an OLAPChildEvent. |
void |
addNamedSet(MondrianModel.NamedSet newChild)
Adds the given child object at the end of the child list, firing an OLAPChildEvent. |
void |
addParameter(int pos,
MondrianModel.Parameter newChild)
Adds the given child object at the specified position, firing an OLAPChildEvent. |
void |
addParameter(MondrianModel.Parameter newChild)
Adds the given child object at the end of the child list, firing an OLAPChildEvent. |
void |
addRole(int pos,
MondrianModel.Role newChild)
Adds the given child object at the specified position, firing an OLAPChildEvent. |
void |
addRole(MondrianModel.Role newChild)
Adds the given child object at the end of the child list, firing an OLAPChildEvent. |
void |
addUserDefinedFunction(int pos,
MondrianModel.UserDefinedFunction newChild)
Adds the given child object at the specified position, firing an OLAPChildEvent. |
void |
addUserDefinedFunction(MondrianModel.UserDefinedFunction newChild)
Adds the given child object at the end of the child list, firing an OLAPChildEvent. |
void |
addVirtualCube(int pos,
MondrianModel.VirtualCube newChild)
Adds the given child object at the specified position, firing an OLAPChildEvent. |
void |
addVirtualCube(MondrianModel.VirtualCube newChild)
Adds the given child object at the end of the child list, firing an OLAPChildEvent. |
boolean |
allowsChildren()
Returns true if this type of OLAPObject can ever return a non-empty list from OLAPObject.getChildren(), and false if getChildren() is always empty. |
java.util.List<OLAPObject> |
getChildren()
Returns a read-only unified list of all children of this OLAPObject. |
java.util.List<MondrianModel.Cube> |
getCubes()
|
java.lang.String |
getDefaultRole()
|
java.util.List<MondrianModel.Dimension> |
getDimensions()
|
java.lang.String |
getMeasuresCaption()
|
java.lang.String |
getName()
Default implementation. |
java.util.List<MondrianModel.NamedSet> |
getNamedSets()
|
java.util.List<MondrianModel.Parameter> |
getParameters()
|
java.util.List<MondrianModel.Role> |
getRoles()
|
java.util.List<MondrianModel.UserDefinedFunction> |
getUserDefinedFunctions()
|
java.util.List<MondrianModel.VirtualCube> |
getVirtualCubes()
|
boolean |
removeChild(OLAPObject child)
Removes the given child on this OLAPObject if this type of OLAPObject has the applicable removeXXX() or setXXX(null) method for the given object's type. |
MondrianModel.Cube |
removeCube(int pos)
Removes the child object at the given position, firing an OLAPChildEvent. |
boolean |
removeCube(MondrianModel.Cube removeChild)
Removes the given child object, firing an OLAPChildEvent if the child was found. |
MondrianModel.Dimension |
removeDimension(int pos)
Removes the child object at the given position, firing an OLAPChildEvent. |
boolean |
removeDimension(MondrianModel.Dimension removeChild)
Removes the given child object, firing an OLAPChildEvent if the child was found. |
MondrianModel.NamedSet |
removeNamedSet(int pos)
Removes the child object at the given position, firing an OLAPChildEvent. |
boolean |
removeNamedSet(MondrianModel.NamedSet removeChild)
Removes the given child object, firing an OLAPChildEvent if the child was found. |
MondrianModel.Parameter |
removeParameter(int pos)
Removes the child object at the given position, firing an OLAPChildEvent. |
boolean |
removeParameter(MondrianModel.Parameter removeChild)
Removes the given child object, firing an OLAPChildEvent if the child was found. |
MondrianModel.Role |
removeRole(int pos)
Removes the child object at the given position, firing an OLAPChildEvent. |
boolean |
removeRole(MondrianModel.Role removeChild)
Removes the given child object, firing an OLAPChildEvent if the child was found. |
MondrianModel.UserDefinedFunction |
removeUserDefinedFunction(int pos)
Removes the child object at the given position, firing an OLAPChildEvent. |
boolean |
removeUserDefinedFunction(MondrianModel.UserDefinedFunction removeChild)
Removes the given child object, firing an OLAPChildEvent if the child was found. |
MondrianModel.VirtualCube |
removeVirtualCube(int pos)
Removes the child object at the given position, firing an OLAPChildEvent. |
boolean |
removeVirtualCube(MondrianModel.VirtualCube removeChild)
Removes the given child object, firing an OLAPChildEvent if the child was found. |
void |
setDefaultRole(java.lang.String newval)
|
void |
setMeasuresCaption(java.lang.String newval)
|
void |
setName(java.lang.String newval)
|
java.lang.String |
toString()
|
| Methods inherited from class ca.sqlpower.architect.olap.OLAPObject |
|---|
addChildListener, addCompoundEditListener, addPropertyChangeListener, endCompoundEdit, fireChildAdded, fireChildRemoved, getParent, removeChildListener, removeCompoundEditListener, removePropertyChangeListener, startCompoundEdit |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public MondrianModel.Schema()
public MondrianModel.Schema(MondrianModel.Schema original)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getName()
OLAPObject
getName in class OLAPObjectpublic void setName(java.lang.String newval)
public java.lang.String getMeasuresCaption()
public void setMeasuresCaption(java.lang.String newval)
public java.lang.String getDefaultRole()
public void setDefaultRole(java.lang.String newval)
public void addParameter(int pos,
MondrianModel.Parameter newChild)
public void addParameter(MondrianModel.Parameter newChild)
public boolean removeParameter(MondrianModel.Parameter removeChild)
public MondrianModel.Parameter removeParameter(int pos)
public java.util.List<MondrianModel.Parameter> getParameters()
public void addDimension(int pos,
MondrianModel.Dimension newChild)
public void addDimension(MondrianModel.Dimension newChild)
public boolean removeDimension(MondrianModel.Dimension removeChild)
public MondrianModel.Dimension removeDimension(int pos)
public java.util.List<MondrianModel.Dimension> getDimensions()
public void addCube(int pos,
MondrianModel.Cube newChild)
public void addCube(MondrianModel.Cube newChild)
public boolean removeCube(MondrianModel.Cube removeChild)
public MondrianModel.Cube removeCube(int pos)
public java.util.List<MondrianModel.Cube> getCubes()
public void addVirtualCube(int pos,
MondrianModel.VirtualCube newChild)
public void addVirtualCube(MondrianModel.VirtualCube newChild)
public boolean removeVirtualCube(MondrianModel.VirtualCube removeChild)
public MondrianModel.VirtualCube removeVirtualCube(int pos)
public java.util.List<MondrianModel.VirtualCube> getVirtualCubes()
public void addNamedSet(int pos,
MondrianModel.NamedSet newChild)
public void addNamedSet(MondrianModel.NamedSet newChild)
public boolean removeNamedSet(MondrianModel.NamedSet removeChild)
public MondrianModel.NamedSet removeNamedSet(int pos)
public java.util.List<MondrianModel.NamedSet> getNamedSets()
public void addRole(int pos,
MondrianModel.Role newChild)
public void addRole(MondrianModel.Role newChild)
public boolean removeRole(MondrianModel.Role removeChild)
public MondrianModel.Role removeRole(int pos)
public java.util.List<MondrianModel.Role> getRoles()
public void addUserDefinedFunction(int pos,
MondrianModel.UserDefinedFunction newChild)
public void addUserDefinedFunction(MondrianModel.UserDefinedFunction newChild)
public boolean removeUserDefinedFunction(MondrianModel.UserDefinedFunction removeChild)
public MondrianModel.UserDefinedFunction removeUserDefinedFunction(int pos)
public java.util.List<MondrianModel.UserDefinedFunction> getUserDefinedFunctions()
public java.util.List<OLAPObject> getChildren()
OLAPObject
getChildren in class OLAPObjectpublic boolean allowsChildren()
OLAPObjectOLAPObject.getChildren(), and false if getChildren() is always empty.
allowsChildren in class OLAPObjectpublic void addChild(OLAPObject child)
OLAPObjectThis method in the abstract base class always throws the IllegalArgumentException because no children or properties are defined at this level.
This method isn't compile-time type safe, so it is recommended not to use it on "by-hand" usage of this API. This method is used during XML parsing, which can't be made compile-time type safe anyway.
addChild in class OLAPObjectchild - The child to add.
public void addChild(int index,
OLAPObject child)
OLAPObjectThis method in the abstract base class always throws IllegalArgumentException because no children or properties are defined at this level.
This method isn't compile-time type safe, so it is recommended not to use it on "by-hand" usage of this API. This method is used for undo and redo, which can't be compile-time type safe anyway.
addChild in class OLAPObjectindex - The overall index (same index as would be in
OLAPObject.getChildren()) at which to add the child.child - The child to add.public boolean removeChild(OLAPObject child)
OLAPObjectThis method in the abstract base class always throws the IllegalArgumentException because no children or properties are defined at this level.
removeChild in class OLAPObjectchild - The child to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||