rjw.dc.core.objects.software
Class CatagoryCollection

java.lang.Object
  |
  +--rjw.dc.core.objects.software.CatagoryCollection

public class CatagoryCollection
extends java.lang.Object

Collection of Software Catagories

Since:
1.3
Version:
DC0.50
Author:
Robert-Jan van der Waals

Constructor Summary
CatagoryCollection()
          Initializes the Catagory collection.
 
Method Summary
static java.util.Vector getCatagories()
          Returns the cached Catagorie objects
static java.lang.String getCatagoryID(java.lang.String sName)
          Returns the ID of a Catagory by the name
static java.lang.String getCatagoryName(java.lang.String sID)
          Returns the name of a Catagory with the given ID
static void load()
          loads the catagories DIRECTLY from the database, the queuing does not apply! Use with care.
static void refresh()
          Reloads the catagories from the database (queueing applies)
static void setCatagories(java.util.Vector vValues)
          Fills the catagory vector
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CatagoryCollection

public CatagoryCollection()
Initializes the Catagory collection. Loading of the Catagories is not done here

Method Detail

load

public static void load()
loads the catagories DIRECTLY from the database, the queuing does not apply! Use with care. For now this is only used for loading the first time


refresh

public static void refresh()
Reloads the catagories from the database (queueing applies)


setCatagories

public static void setCatagories(java.util.Vector vValues)
Fills the catagory vector


getCatagoryName

public static java.lang.String getCatagoryName(java.lang.String sID)
Returns the name of a Catagory with the given ID

Parameters:
sID - database ID
Returns:
(String) Catagory name

getCatagories

public static java.util.Vector getCatagories()
Returns the cached Catagorie objects


getCatagoryID

public static java.lang.String getCatagoryID(java.lang.String sName)
Returns the ID of a Catagory by the name

Parameters:
sName - Catagory name
Returns:
(String) ID