|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.palo.api.ext.favoriteviews.impl.FavoriteViewImpl
public class FavoriteViewImpl
FavoriteViewImpl
This class describes a favorite view. A favorite view has a name and a
CubeView object attached. It also stores (for convenience) the
identifying attributes of its cube view (database id, cube id and cube view
name).
In addition, a favorite view holds its own position in relation to its
parent, so that the user can directly modify it (move it up or down).
| Constructor Summary | |
|---|---|
FavoriteViewImpl(java.lang.String name,
CubeView view)
Creates a new FavoriteView with a name and an attached cube
view. |
|
FavoriteViewImpl(java.lang.String name,
CubeView view,
int position)
Creates a new FavoriteView with a name, an attached cube
view, and a position. |
|
| Method Summary | |
|---|---|
Connection |
getConnection()
Returns the connection that belongs to the attached cube view. |
java.lang.String |
getCubeId()
Returns the cube id of the attached cube view. |
CubeView |
getCubeView()
Returns the cube view that is attached to this favorite view. |
java.lang.String |
getCubeViewName()
Returns the name of the attached cube view. |
java.lang.String |
getDatabaseId()
Returns the database id of the attached cube view. |
java.lang.String |
getName()
Returns the name of this favorite view. |
int |
getPosition()
Returns the position of this favorite view in relation to its parent. |
void |
setName(java.lang.String newName)
Sets a new name for this favorite view. |
void |
setPosition(int newPosition)
Sets a new position for this favorite view. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FavoriteViewImpl(java.lang.String name,
CubeView view)
FavoriteView with a name and an attached cube
view.
name - the name of the favorite view.query - the attached cube view.
public FavoriteViewImpl(java.lang.String name,
CubeView view,
int position)
FavoriteView with a name, an attached cube
view, and a position.
name - the name of the favorite view.query - the attached cube view.position - the position of this favorite view (the index to the
array of children of its parent).| Method Detail |
|---|
public java.lang.String getName()
getName in interface NamedEntitypublic void setName(java.lang.String newName)
setName in interface FavoriteViewnewName - the new name for this favorite view.public int getPosition()
getPosition in interface FavoriteViewpublic void setPosition(int newPosition)
setPosition in interface FavoriteViewnewPosition - the new position for this favorite view.public CubeView getCubeView()
getCubeView in interface FavoriteViewpublic java.lang.String getCubeId()
public java.lang.String getDatabaseId()
public java.lang.String getCubeViewName()
public Connection getConnection()
getConnection in interface FavoriteViewObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||