rjw.dc.core.objects.software
Class Catagory

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

public class Catagory
extends DataCrowObject

Representation of a Software Catagory. Allows saving, updating and querying of Catagory records

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

Field Summary
static int _A_NAME
          Catagory name
static int _B_DISPOSE
          Keep this record Y/N
 
Fields inherited from class rjw.dc.core.objects.DataCrowObject
_ID
 
Constructor Summary
Catagory()
          Initializes the Catagory object; sets the required fields, the table name, initializes the value array and the database field names
 
Method Summary
 void load(QueryOptions options, RequestorCollection requestors)
          Loads the values from the database.
 void saveNew(RequestorCollection requestors)
          Saves a new record to the database.
 void saveUpdate(RequestorCollection requestors)
          Updates an existing record.
 void setValues(java.lang.Object[] row)
          Applies values to this Catagory record.
 
Methods inherited from class rjw.dc.core.objects.DataCrowObject
checkIntegrity, getFieldName, getFieldNames, getLabel, getLabels, getMaxFieldLength, getMaxFieldLengths, getRequiredFields, getSilence, getTableName, getUnfilledRequiredFields, getValue, getValues, isUnique, setSilence, setUIRowNumber, setValidation, setValue, toQueryCondition
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_A_NAME

public static final int _A_NAME
Catagory name

See Also:
Constant Field Values

_B_DISPOSE

public static final int _B_DISPOSE
Keep this record Y/N

See Also:
Constant Field Values
Constructor Detail

Catagory

public Catagory()
Initializes the Catagory object; sets the required fields, the table name, initializes the value array and the database field names

Method Detail

setValues

public void setValues(java.lang.Object[] row)
Applies values to this Catagory record. The first in the row is the ID

Parameters:
row - representation of an database row. First in row is the ID

saveNew

public void saveNew(RequestorCollection requestors)
Saves a new record to the database. Values are first validated for validity and integrity

Overrides:
saveNew in class DataCrowObject

saveUpdate

public void saveUpdate(RequestorCollection requestors)
Updates an existing record. Values are first validated for validity and integrity

Overrides:
saveUpdate in class DataCrowObject

load

public void load(QueryOptions options,
                 RequestorCollection requestors)
Loads the values from the database. UI requests are past to the workflow

Overrides:
load in class DataCrowObject
Parameters:
options - search options
requestors - displaying request for the UI