rjw.dc.core.objects.software
Class Software

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

public class Software
extends DataCrowObject

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

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

Field Summary
static int _A_NAME
          Name of the Software
static int _B_DESCRIPTION
          Description
static int _C_WEBPAGE
          Webpage
static int _D_FILENAME
          Path
static int _E_TYPE
          Software Catagory
static int _F_MULTI
          Multiplayer Y/N
static int _G_LOCATION
          Location of the Software (for grouping)
 
Fields inherited from class rjw.dc.core.objects.DataCrowObject
_ID
 
Constructor Summary
Software()
          Initializes the Software object
 
Method Summary
 java.lang.Object getValue(int index)
          Returns the value of a field
 java.lang.Object[] getValues()
          Returns all values
static void setConvertCatagory(boolean convert)
           
 void setValue(int iField, java.lang.Object value)
          Applies a value to this Software object
 void setValues(java.lang.Object[] row)
          Applies values to this Software record.
 
Methods inherited from class rjw.dc.core.objects.DataCrowObject
checkIntegrity, clearValues, delete, getFieldIndices, getFieldName, getFieldNames, getFieldType, getFieldTypes, getHiddenFields, getLabel, getLabels, getMaxFieldLength, getMaxFieldLengths, getModuleName, getRequiredFields, getSilence, getTableName, getUnfilledRequiredFields, getVisibleFields, getVisibleValues, isAmazonUpdateAllowed, isHidden, isImdbUpdateAllowed, isRequired, isUnique, load, saveNew, saveUpdate, setAlwaysGenerateID, setSilence, setUIRowNumber, setValidation, 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
Name of the Software

See Also:
Constant Field Values

_B_DESCRIPTION

public static final int _B_DESCRIPTION
Description

See Also:
Constant Field Values

_C_WEBPAGE

public static final int _C_WEBPAGE
Webpage

See Also:
Constant Field Values

_D_FILENAME

public static final int _D_FILENAME
Path

See Also:
Constant Field Values

_E_TYPE

public static final int _E_TYPE
Software Catagory

See Also:
Constant Field Values

_F_MULTI

public static final int _F_MULTI
Multiplayer Y/N

See Also:
Constant Field Values

_G_LOCATION

public static final int _G_LOCATION
Location of the Software (for grouping)

See Also:
Constant Field Values
Constructor Detail

Software

public Software()
Initializes the Software object

Method Detail

setConvertCatagory

public static void setConvertCatagory(boolean convert)

getValues

public java.lang.Object[] getValues()
Description copied from class: DataCrowObject
Returns all values

Overrides:
getValues in class DataCrowObject
Returns:
(String[]) all values for the fields

getValue

public java.lang.Object getValue(int index)
Description copied from class: DataCrowObject
Returns the value of a field

Overrides:
getValue in class DataCrowObject
Parameters:
index - field indicator
Returns:
(String) field value

setValues

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

Specified by:
setValues in class DataCrowObject
Parameters:
row - representation of an database row. First in row is the ID

setValue

public void setValue(int iField,
                     java.lang.Object value)
Applies a value to this Software object

Overrides:
setValue in class DataCrowObject
Parameters:
iField - field number