net.datacrow.core.objects
Class DcMediaObject

java.lang.Object
  extended by net.datacrow.core.objects.DcObject
      extended by net.datacrow.core.objects.DcMediaObject
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DcObject>
Direct Known Subclasses:
AudioCD, AudioTrack, Book, Image, Media, Movie, MusicAlbum, MusicTrack, Software

public class DcMediaObject
extends DcObject

Media objects come with a set of predefined fields such as a title, a description, a year and a rating. Items of this type are represented by their own modules and the abstract media module.

Author:
Robert Jan van der Waals
See Also:
DcMediaModule, Serialized Form

Field Summary
static int _A_TITLE
           
static int _B_DESCRIPTION
           
static int _C_YEAR
           
static int _D_LANGUAGE
           
static int _E_RATING
           
static int _F_COUNTRY
           
static int _U1_USER_LONGTEXT
           
static int _U2_USER_SHORTTEXT1
           
static int _U3_USER_SHORTTEXT2
           
static int _U4_USER_NUMERIC1
           
static int _U5_USER_NUMERIC2
           
 
Fields inherited from class net.datacrow.core.objects.DcObject
_ID, _SYS_AVAILABLE, _SYS_CONTAINER, _SYS_CREATED, _SYS_DISPLAYVALUE, _SYS_EXTERNAL_REFERENCES, _SYS_FILEHASH, _SYS_FILEHASHTYPE, _SYS_FILENAME, _SYS_FILESIZE, _SYS_LENDBY, _SYS_LOANDAYSTILLOVERDUE, _SYS_LOANDUEDATE, _SYS_LOANDURATION, _SYS_MODIFIED, _SYS_MODULE, _SYS_SERVICE, _SYS_SERVICEURL, _VALUE, children
 
Constructor Summary
DcMediaObject(int module)
          Creates a new instance.
 
Method Summary
 int getDefaultSortFieldIdx()
          The default field to sort on.
 int getSystemDisplayFieldIdx()
           
 java.lang.String toString()
           
 
Methods inherited from class net.datacrow.core.objects.DcObject
addChild, addExternalReference, addRequest, applyEnhancers, applyTemplate, applyTemplate, beforeDelete, beforeSave, checkIntegrity, clearValues, clone, compareTo, copy, copyImage, createIcon, delete, destroy, equals, executeRequests, finalize, flushImages, getChildren, getCurrentChildren, getDatabaseFieldCount, getDatabaseFieldName, getDisplayFieldIdx, getDisplayString, getExternalReference, getField, getFieldIndices, getFields, getFieldType, getFileField, getFilename, getIcon, getID, getLabel, getMaxFieldLength, getModule, getName, getNormalizedString, getNotSearchableFields, getParentID, getParentReferenceFieldIndex, getRequests, getTableName, getTableShortName, getValue, getValueDef, getValues, hashCode, hasPrimaryKey, initializeImages, initializeReferences, initializeReferences, isChanged, isChanged, isDestroyed, isEnabled, isFilled, isLastInLine, isLoaded, isNew, isRequired, isSearchable, isUnique, isUpdateGUI, load, loadChildren, markAsChanged, markAsUnchanged, merge, release, reload, removeChildren, removeRequests, saveNew, saveUpdate, saveUpdate, setChanged, setChildren, setIDs, setLastInLine, setLoanInformation, setLoanInformation, setNew, setUpdateGUI, setValidate, setValue, setValueForColumn, setValueForName, setValueLowLevel, validateRequiredFields
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_A_TITLE

public static final int _A_TITLE
See Also:
Constant Field Values

_B_DESCRIPTION

public static final int _B_DESCRIPTION
See Also:
Constant Field Values

_C_YEAR

public static final int _C_YEAR
See Also:
Constant Field Values

_D_LANGUAGE

public static final int _D_LANGUAGE
See Also:
Constant Field Values

_E_RATING

public static final int _E_RATING
See Also:
Constant Field Values

_F_COUNTRY

public static final int _F_COUNTRY
See Also:
Constant Field Values

_U1_USER_LONGTEXT

public static final int _U1_USER_LONGTEXT
See Also:
Constant Field Values

_U2_USER_SHORTTEXT1

public static final int _U2_USER_SHORTTEXT1
See Also:
Constant Field Values

_U3_USER_SHORTTEXT2

public static final int _U3_USER_SHORTTEXT2
See Also:
Constant Field Values

_U4_USER_NUMERIC1

public static final int _U4_USER_NUMERIC1
See Also:
Constant Field Values

_U5_USER_NUMERIC2

public static final int _U5_USER_NUMERIC2
See Also:
Constant Field Values
Constructor Detail

DcMediaObject

public DcMediaObject(int module)
Creates a new instance.

Parameters:
module -
Method Detail

getDefaultSortFieldIdx

public int getDefaultSortFieldIdx()
The default field to sort on.

Overrides:
getDefaultSortFieldIdx in class DcObject
Returns:
_A_TITLE

getSystemDisplayFieldIdx

public int getSystemDisplayFieldIdx()
Overrides:
getSystemDisplayFieldIdx in class DcObject

toString

public java.lang.String toString()
Overrides:
toString in class DcObject