net.datacrow.core.objects.helpers
Class Container

java.lang.Object
  extended by net.datacrow.core.objects.DcObject
      extended by net.datacrow.core.objects.helpers.Container
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DcObject>

public class Container
extends DcObject

See Also:
Serialized Form

Field Summary
static int _A_NAME
           
static int _B_TYPE
           
static int _C_PICTUREFRONT
           
static int _D_DESCRIPTION
           
static int _E_ICON
           
static int _F_PARENT
           
 
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_LOANDUEDATE, _SYS_LOANDURATION, _SYS_LOANENDDATE, _SYS_LOANSTARTDATE, _SYS_LOANSTATUS, _SYS_LOANSTATUSDAYS, _SYS_MODIFIED, _SYS_MODULE, _SYS_SERVICE, _SYS_SERVICEURL, _VALUE, children
 
Constructor Summary
Container()
           
 
Method Summary
protected  void beforeSave()
          Actions to be performed before saving the object.
 java.util.Collection<Container> getChildContainers()
           
 Container getParentContainer()
           
 java.lang.Object getValue(int index)
          Retrieves the value for the specified field.
 boolean isTop()
           
 void loadChildren(int[] fields)
          Load all children.
 
Methods inherited from class net.datacrow.core.objects.DcObject
addChild, addExternalReference, addRequest, applyEnhancers, applyTemplate, applyTemplate, beforeDelete, checkIntegrity, clearValues, clone, compareTo, copy, copyImage, createIcon, delete, destroy, equals, executeRequests, finalize, flushImages, getChildren, getCurrentChildren, getDatabaseFieldCount, getDatabaseFieldName, getDefaultSortFieldIdx, getDisplayFieldIdx, getDisplayString, getExternalReference, getField, getFieldIndices, getFields, getFieldType, getFileField, getFilename, getIcon, getID, getLabel, getMaxFieldLength, getModule, getName, getNormalizedString, getNotSearchableFields, getParentID, getParentReferenceFieldIndex, getRequests, getSystemDisplayFieldIdx, getTableName, getTableShortName, getValueDef, getValues, hashCode, hasPrimaryKey, initializeImages, initializeReferences, initializeReferences, isChanged, isChanged, isDestroyed, isEnabled, isFilled, isLastInLine, isLoaded, isNew, isRequired, isSearchable, isUnique, isUpdateGUI, load, load, markAsChanged, markAsUnchanged, merge, release, reload, removeChildren, removeRequests, saveNew, saveUpdate, saveUpdate, setChanged, setChildren, setIDs, setLastInLine, setLoanInformation, setLoanInformation, setNew, setUpdateGUI, setValidate, setValue, setValueForColumn, setValueForName, setValueLowLevel, toString, validateRequiredFields
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_A_NAME

public static final int _A_NAME
See Also:
Constant Field Values

_B_TYPE

public static final int _B_TYPE
See Also:
Constant Field Values

_C_PICTUREFRONT

public static final int _C_PICTUREFRONT
See Also:
Constant Field Values

_D_DESCRIPTION

public static final int _D_DESCRIPTION
See Also:
Constant Field Values

_E_ICON

public static final int _E_ICON
See Also:
Constant Field Values

_F_PARENT

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

Container

public Container()
Method Detail

isTop

public boolean isTop()

getParentContainer

public Container getParentContainer()

getChildContainers

public java.util.Collection<Container> getChildContainers()

beforeSave

protected void beforeSave()
                   throws ValidationException
Description copied from class: DcObject
Actions to be performed before saving the object.

Overrides:
beforeSave in class DcObject
Throws:
ValidationException

getValue

public java.lang.Object getValue(int index)
Description copied from class: DcObject
Retrieves the value for the specified field.

Overrides:
getValue in class DcObject
Parameters:
index - The field index.

loadChildren

public void loadChildren(int[] fields)
Description copied from class: DcObject
Load all children. Children will only be loaded when no child information is present yet. Will not overwrite existing values.

Overrides:
loadChildren in class DcObject