org.palo.api.ext.favoriteviews.impl
Class FavoriteViewFactoryImpl

java.lang.Object
  extended by org.palo.api.ext.favoriteviews.FavoriteViewFactory
      extended by org.palo.api.ext.favoriteviews.impl.FavoriteViewFactoryImpl

public class FavoriteViewFactoryImpl
extends FavoriteViewFactory

FavoriteViewFactoryImpl

The FavoriteViewFactoryImpl class provides factory methods to create favorite views and favorite view folders. The method calls are translated into constructors of the respective classes, thus the clients will never see the real constructor and so, the implementation is hidden from the clients.

Version:
$Id: FavoriteViewFactoryImpl.html,v 1.8 2009/07/09 11:01:47 ArndHouben Exp $

Constructor Summary
FavoriteViewFactoryImpl()
           
 
Method Summary
 FavoriteView createFavoriteView(java.lang.String name, CubeView view)
          Creates a new favorite view with a default position (0).
 FavoriteView createFavoriteView(java.lang.String name, CubeView view, int position)
          Creates a new favorite view.
 FavoriteViewsFolder createFolder(java.lang.String name, Connection con)
          Creates a new favorite views folder with a default position (0).
 FavoriteViewsFolder createFolder(java.lang.String name, Connection con, int position)
          Creates a new favorite views folder.
 
Methods inherited from class org.palo.api.ext.favoriteviews.FavoriteViewFactory
getInstance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FavoriteViewFactoryImpl

public FavoriteViewFactoryImpl()
Method Detail

createFavoriteView

public FavoriteView createFavoriteView(java.lang.String name,
                                       CubeView view)
Creates a new favorite view with a default position (0). Can be used by clients that would like to implement a more complicated ordering scheme.

Specified by:
createFavoriteView in class FavoriteViewFactory
Parameters:
name - the name of the new favorite view.
view - the attached cube view.
Returns:
a new FavoriteView with the specified parameters.

createFavoriteView

public FavoriteView createFavoriteView(java.lang.String name,
                                       CubeView view,
                                       int position)
Creates a new favorite view.

Specified by:
createFavoriteView in class FavoriteViewFactory
Parameters:
name - the name of the new favorite view.
view - the attached cube view.
position - the position of this favorite view (the index to the children of its parent).
Returns:
a new FavoriteView with the specified parameters.

createFolder

public FavoriteViewsFolder createFolder(java.lang.String name,
                                        Connection con)
Creates a new favorite views folder with a default position (0).

Specified by:
createFolder in class FavoriteViewFactory
Parameters:
name - the name of the folder.
con - the connection to which this favorite views folder belongs.
Returns:
a new FavoriteViewFolder with the specified parameters.

createFolder

public FavoriteViewsFolder createFolder(java.lang.String name,
                                        Connection con,
                                        int position)
Creates a new favorite views folder.

Specified by:
createFolder in class FavoriteViewFactory
Parameters:
name - the name of the folder.
con - the connection to which this favorite views folder belongs.
position - the position in relation to its siblings.
Returns:
a new FavoriteViewFolder with the specified parameters.