org.musicontroller.gui.statistics
Class Database

java.lang.Object
  extended by org.apache.hivemind.impl.BaseLocatable
      extended by org.apache.tapestry.AbstractComponent
          extended by org.apache.tapestry.BaseComponent
              extended by org.apache.tapestry.AbstractPage
                  extended by org.apache.tapestry.html.BasePage
                      extended by org.musicontroller.gui.statistics.Database
All Implemented Interfaces:
org.apache.hivemind.Locatable, org.apache.hivemind.LocationHolder, org.apache.tapestry.IComponent, org.apache.tapestry.IDirectEvent, org.apache.tapestry.IExternalPage, org.apache.tapestry.internal.Component, org.apache.tapestry.IPage, org.apache.tapestry.IRender, org.apache.tapestry.ITemplateComponent

public abstract class Database
extends org.apache.tapestry.html.BasePage
implements org.apache.tapestry.IExternalPage

This screen displays some numbers about the objects in the MusiController database.

Version:
$Id: Database.java,v 1.1 2010/03/16 18:55:42 varienaja Exp $
Author:
deksels

Field Summary
 int songCount
           
 
Fields inherited from class org.apache.tapestry.AbstractComponent
_body, _bodyCount
 
Constructor Summary
Database()
           
 
Method Summary
 void activateExternalPage(java.lang.Object[] args, org.apache.tapestry.IRequestCycle cycle)
           
 int getBandCount()
          Returns the number of bands in the database.
abstract  Dao getDao()
           
 java.lang.String getInsertedDescription()
           
 long getInsertedIdThisMonth()
          Returns the playlistId for a list of Songs inserted in the current month
 java.lang.String getInsertedSize()
           
 int getKeywordCount()
          Returns the number of keywords in the database.
 java.lang.String getLongMonthIndicator()
           
abstract  java.lang.Object[] getMonth()
           
 java.lang.String getMonthIndicator()
           
 java.util.List<java.lang.Object[]> getMonths()
           
 int getPlayedEventCount()
          Returns the number of play events in the database.
 int getPlaylistCount()
          Returns the number of playlists in the database.
 int getRequestedEventCount()
          Returns the number of request events in the database.
 int getSkippedEventCount()
          Returns the number of skip events in the database.
 int getSongCount()
          Returns the number of songs in the database.
 java.util.Map<java.lang.String,java.lang.Integer> getUsageStatistics()
          Gets the usage statistics for a specific user.
abstract  User getUser()
           
abstract  void setMonth(java.lang.Object[] month)
           
 
Methods inherited from class org.apache.tapestry.html.BasePage
getResponseContentType
 
Methods inherited from class org.apache.tapestry.AbstractPage
addPageAttachListener, addPageBeginRenderListener, addPageDetachListener, addPageEndRenderListener, addPageValidateListener, attach, beginPageRender, cleanupAfterRender, detach, endPageRender, firePageAttached, firePageBeginRender, firePageDetached, firePageEndRender, firePageValidate, getChangeObserver, getEngine, getExtendedId, getIdPath, getLocale, getNestedComponent, getOutputEncoding, getPageName, getRequestCycle, hasFormComponents, hasWidgets, removePageAttachListener, removePageBeginRenderListener, removePageDetachListener, removePageEndRenderListener, removePageValidateListener, renderPage, setChangeObserver, setHasFormComponents, setHasWidgets, setLocale, setPageName, validate
 
Methods inherited from class org.apache.tapestry.BaseComponent
addOuter, finishLoad, getContainedRenderers, getInnerRenderers, renderComponent
 
Methods inherited from class org.apache.tapestry.AbstractComponent
addAsset, addBody, addComponent, checkActiveLock, enterActiveState, equals, finishLoad, generateClientId, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getBody, getBodyCount, getBoundId, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getId, getListeners, getMessages, getNamespace, getPage, getRenderWorker, getSpecification, getSpecifiedId, getTemplateTagName, hasEvents, hashCode, isInActiveState, isParameterBound, isRendering, isStateful, pageEndRender, peekClientId, prepareForRender, render, renderBody, renderIdAttribute, renderInformalParameters, setBinding, setClientId, setContainedComponent, setContainer, setHasEvents, setId, setNamespace, setPage, setTemplateTagName, toString, triggerEvent
 
Methods inherited from class org.apache.hivemind.impl.BaseLocatable
getLocation, setLocation
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.tapestry.IPage
addPageAttachListener, addPageBeginRenderListener, addPageDetachListener, addPageEndRenderListener, addPageValidateListener, attach, beginPageRender, detach, endPageRender, firePageAttached, getChangeObserver, getEngine, getLocale, getNestedComponent, getPageName, getPropertyChangeObserver, getRequestCycle, getResponseContentType, hasFormComponents, hasWidgets, removePageAttachListener, removePageBeginRenderListener, removePageDetachListener, removePageEndRenderListener, removePageValidateListener, renderPage, setChangeObserver, setHasFormComponents, setHasWidgets, setLocale, setPageName, validate
 
Methods inherited from interface org.apache.tapestry.IComponent
addAsset, addBody, addComponent, enterActiveState, finishLoad, getAsset, getAssets, getBeans, getBinding, getBindingNames, getBindings, getClientId, getComponent, getComponents, getContainedComponent, getContainer, getEventInvoker, getExtendedId, getId, getIdPath, getListeners, getMessages, getNamespace, getPage, getSpecification, getSpecifiedId, getTemplateTagName, isRendering, peekClientId, renderBody, setBinding, setClientId, setContainedComponent, setContainer, setId, setNamespace, setPage, setTemplateTagName
 
Methods inherited from interface org.apache.tapestry.IRender
render
 
Methods inherited from interface org.apache.hivemind.LocationHolder
setLocation
 
Methods inherited from interface org.apache.hivemind.Locatable
getLocation
 

Field Detail

songCount

public int songCount
Constructor Detail

Database

public Database()
Method Detail

getDao

public abstract Dao getDao()

getUser

public abstract User getUser()

getMonth

public abstract java.lang.Object[] getMonth()

setMonth

public abstract void setMonth(java.lang.Object[] month)

getBandCount

public int getBandCount()
Returns the number of bands in the database.

Returns:
The number of bands in the database.

getPlaylistCount

public int getPlaylistCount()
Returns the number of playlists in the database.

Returns:
The number of playlists in the database.

getSongCount

public int getSongCount()
Returns the number of songs in the database.

Returns:
The number of songs in the database.

getKeywordCount

public int getKeywordCount()
Returns the number of keywords in the database.

Returns:
The number of keywords in the database.

getPlayedEventCount

public int getPlayedEventCount()
Returns the number of play events in the database.

Returns:
The number of play events in the database.

getRequestedEventCount

public int getRequestedEventCount()
Returns the number of request events in the database.

Returns:
The number of request events in the database.

getSkippedEventCount

public int getSkippedEventCount()
Returns the number of skip events in the database.

Returns:
The number of skip events in the database.

activateExternalPage

public void activateExternalPage(java.lang.Object[] args,
                                 org.apache.tapestry.IRequestCycle cycle)
Specified by:
activateExternalPage in interface org.apache.tapestry.IExternalPage

getInsertedDescription

public java.lang.String getInsertedDescription()
Returns:
A nice string, explaining the meaning of the green bar-statistic.

getMonthIndicator

public java.lang.String getMonthIndicator()
Returns:
String representation of the month we're currently in, in the form M

getLongMonthIndicator

public java.lang.String getLongMonthIndicator()
Returns:
String representation of the month we're currently in, in the form MMMMM yyyy

getInsertedSize

public java.lang.String getInsertedSize()
Returns:
String representation of the growth in the month we're currently in

getMonths

public java.util.List<java.lang.Object[]> getMonths()

getUsageStatistics

public java.util.Map<java.lang.String,java.lang.Integer> getUsageStatistics()
Gets the usage statistics for a specific user.

Returns:
The usage statistics.

getInsertedIdThisMonth

public long getInsertedIdThisMonth()
Returns the playlistId for a list of Songs inserted in the current month

Returns:
The Playlist-Id.


Copyright © 2010 A.J.V.. All Rights Reserved.