net.datacrow.core.objects
Class DcAssociate

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

public class DcAssociate
extends DcObject

Represents companies and persons.

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

Field Summary
static int _A_NAME
           
static int _B_DESCRIPTION
           
static int _C_WEBPAGE
           
static int _D_PHOTO
           
static int _E_FIRSTNAME
           
static int _F_LASTTNAME
           
 
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
DcAssociate(int module)
          Creates a new instance.
 
Method Summary
 void applyEnhancers(boolean update)
          Applies the enhancers on this item.
protected  void beforeSave()
          Executed before inserting or updating the item.
 int getDefaultSortFieldIdx()
          The default sort field index.
 java.lang.String getName()
          Returns the name of this object based on the field settings.
 java.lang.String getNameNormal()
          Returns the name formatted as First name, Last name.
 int getSystemDisplayFieldIdx()
           
 void setName()
          Sets the various name parts.
 java.lang.String toString()
           
 
Methods inherited from class net.datacrow.core.objects.DcObject
addChild, addExternalReference, addRequest, applyTemplate, applyTemplate, beforeDelete, 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, 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, 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_NAME

public static final int _A_NAME
See Also:
Constant Field Values

_B_DESCRIPTION

public static final int _B_DESCRIPTION
See Also:
Constant Field Values

_C_WEBPAGE

public static final int _C_WEBPAGE
See Also:
Constant Field Values

_D_PHOTO

public static final int _D_PHOTO
See Also:
Constant Field Values

_E_FIRSTNAME

public static final int _E_FIRSTNAME
See Also:
Constant Field Values

_F_LASTTNAME

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

DcAssociate

public DcAssociate(int module)
Creates a new instance.

Parameters:
module -
Method Detail

beforeSave

protected void beforeSave()
                   throws ValidationException
Executed before inserting or updating the item.

Overrides:
beforeSave in class DcObject
Throws:
ValidationException

getDefaultSortFieldIdx

public int getDefaultSortFieldIdx()
Description copied from class: DcObject
The default sort field index. In case the user has not specified the field to sort on this value will be used.

Overrides:
getDefaultSortFieldIdx in class DcObject

applyEnhancers

public void applyEnhancers(boolean update)
Applies the enhancers on this item.

Overrides:
applyEnhancers in class DcObject
Parameters:
update - Indicates if the item is new or existing.
See Also:
ValueEnhancers

setName

public void setName()
Sets the various name parts. The last and first name are calculated if only the full name is available. If only the last and first name are available the full name is created out of these parts.


getSystemDisplayFieldIdx

public int getSystemDisplayFieldIdx()
Overrides:
getSystemDisplayFieldIdx in class DcObject

toString

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

getName

public java.lang.String getName()
Description copied from class: DcObject
Returns the name of this object based on the field settings. If the field settings do no specify any descriptive fields the default name field index is used as defined in the module definition.

Overrides:
getName in class DcObject

getNameNormal

public java.lang.String getNameNormal()
Returns the name formatted as First name, Last name.