net.datacrow.core.objects
Class DcAssociate
java.lang.Object
net.datacrow.core.objects.DcObject
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
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 |
DcAssociate(int module)
Creates a new instance. |
Method Summary |
protected void |
beforeSave()
Executed before inserting or updating the item. |
java.lang.String |
getName()
Returns the name of this object based on the field settings. |
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, 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, 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 |
_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
DcAssociate
public DcAssociate(int module)
- Creates a new instance.
- Parameters:
module
-
beforeSave
protected void beforeSave()
throws ValidationException
- Executed before inserting or updating the item.
- Overrides:
beforeSave
in class DcObject
- Throws:
ValidationException
setName
public void setName()
throws ValidationException
- 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.
- Throws:
ValidationException
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