public class Employee extends DBObject
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static GlobalId |
DBCLASS_GID
Employee
|
static java.lang.String |
DBCLASS_NAME
Employee
|
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
Employee(DBClass theClass,
DataSource dataSource)
Creates new DBObject.
|
Modifier and Type | Method and Description |
---|---|
double |
calculateIdlePoints(java.util.Date start,
java.util.Date end) |
static Employee |
create(MutableDataSource mds)
Make a new instance of this class.
|
protected void |
eventFieldUpdated(DBField field,
java.lang.Object previous,
GlobalKey previousKey,
FldParams params)
update dependent fields.
|
protected void |
extCheckModifyAccess(DBField field)
May not change an employee's company/person once created.
|
protected void |
extFixUp()
Delete the record if no associated company.
|
protected void |
extSetValue(DBField field,
java.lang.Object currentValue,
FldParams params)
We prevent some values from being set by a user.
|
Company |
findCompanyId(java.lang.String... args)
Select the Company or business.
|
static Employee |
findKey(DataSource ds,
java.lang.String key)
Find the target for this class by the primary key
|
Person |
findPersonId(java.lang.String... args)
Select the person record.
|
Company |
getCompanyId(java.lang.String... args) |
double |
getCostPerHour(java.lang.String... args) |
double |
getCurrentRate(java.lang.String... args) |
java.lang.String |
getDepartment(java.lang.String... args) |
java.lang.String |
getEmployeeKey(java.lang.String... args) |
java.lang.String |
getJobTitle(java.lang.String... args) |
java.lang.String |
getName() |
Person |
getPersonId(java.lang.String... args) |
double |
getRawUnitCost() |
java.lang.String |
getWorkEmail(java.lang.String... args) |
java.lang.String |
getWorkFax(java.lang.String... args) |
java.lang.String |
getWorkPhone(java.lang.String... args) |
boolean |
isPermanent()
Is permanent
|
boolean |
isPermanentFg(java.lang.String... args) |
static DBQuery<Employee> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
Employee |
setCompanyId(com.aspc.dal.layers.aspc_app.contact.Business value,
java.lang.String... args) |
Employee |
setCostPerHour(double value,
java.lang.String... args) |
Employee |
setCurrentRate(double value,
java.lang.String... args) |
Employee |
setDepartment(java.lang.String value,
java.lang.String... args) |
Employee |
setEmployeeKey(java.lang.String value,
java.lang.String... args) |
Employee |
setJobTitle(java.lang.String value,
java.lang.String... args) |
Employee |
setName(java.lang.String value,
java.lang.String... args) |
Employee |
setPermanentFg(boolean value,
java.lang.String... args) |
Employee |
setPersonId(com.aspc.dal.layers.aspc_app.contact.Person value,
java.lang.String... args) |
Employee |
setWorkEmail(java.lang.String value,
java.lang.String... args) |
Employee |
setWorkFax(java.lang.String value,
java.lang.String... args) |
Employee |
setWorkPhone(java.lang.String value,
java.lang.String... args) |
addReloadEventListener, archiveCheck, autoEnterCreate, calculateValue, calculateValue, calculateValue, callingRestoreByJournal, changeThreadMode, checkCreateAccess, checkDelete, checkDeleteAccess, checkModifyAccess, checkModifyAccess, checkReadAccess, clearCache, copy, copyFields, copyIncludeField, copyInwardLinks, delete, denormalizedResult, displayLogName, displayName, displayValue, doSearch, dump, equals, eventDataLoaded, extAutoEnterCreate, extCanDeleteDependantObject, extCheckCreateAccess, extCheckDeleteAccess, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extGetDerivedGlobalKey, extGetDerivedValue, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreSaveRecord, extPreValidate, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extUndelete, extValidateDelete, extValidateField, extValidateRecord, fetchLinkHolder, findGlobalKey, findGlobalKey, findGlobalKey, findGlobalKey, findLinkedObject, findLinkedObject, findLinkedObject, findRawData, fireEventDataLoaded, fixUp, forceLockedTransaction, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getBoolean, getChangedFieldInfo, getChangedFields, getDate, getDate, getDate, getDate, getDate, getDefaultValue, getDisableOnChangeEvent, getDouble, getDouble, getDouble, getDouble, getDouble, getFieldDouble, getFieldInt, getFieldLong, getFieldString, getFormattedString, getFormattedString, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getGlobalKey, getInt, getInt, getInt, getInt, getInt, getInt, getInwardLinkage, getKeyString, getKeyValue, getLinkedObject, getLinkedObject, getLinkedObject, getLinkedObjectByKey, getLinkedRowId, getLinkedRowId, getLinkedRowIdByData, getLinkHolder, getLockedTransaction, getLong, getLong, getLong, getLong, getLong, getLong, getMutableArrayValue, getMutableArrayValue, getOriginalKey, getOriginalValue, getOriginalValue, getProcessedValue, getPureValue, getRawData, getRawValue, getRawValue, getRowId, getRowKey, getSecondaryCacheGroupKey, getSrcLayerID, getString, getString, getString, getString, getString, getString, getValue, getValue, getValue, getValue, hasAutoChanged, hasAutoChanged, hasChanged, hasChangedByUser, hasChangedByUserField, hasChangedByUserField, hasFieldChanged, hasFieldChanged, hashCode, hasStoredResult, iCheckDeleteAccess, iCheckModifyAccess, iCheckReadAccess, iGetDenormalizedMap, iGetRawValue, iPlaceDenormalizedResult, iPostSaveOrDeleteRecord, iPreSaveOrDeleteRecord, iPreValidate, iRaiseEvents, iSaveOrDeleteRecord, isBrokenLink, isBrokenLink, isChanged, isDataCacheKnownToBeDirty, isDeleted, isEmpty, iSetValue, isForceReindex, isKeyWordField, isMandatory, isNew, isNull, isNull, isOnChange, isReindex, iValidateRecord, lastTouched, makeArchiveDataLoader, makeClone, makeDataLoader, makeDenormalizedDoc, makeLinkedArray, makeModifyAccessException, makeSearchPlan, makeWriteProvider, manualDenormalizeOnSave, markSavePoint, optLockedTransaction, registerWatchedObject, reindex, releaseDenormalized, removeReloadEventListener, restoreByJournal, rollbackTo, setBoolean, setBoolean, setBoolean, setBoolean, setDisableOnChangeEvent, setDouble, setDouble, setInt, setInt, setLong, setLong, setRawData, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, toString, touch, undelete, validateField, validateRecord, validateSubType
public static final java.lang.String DBCLASS_NAME
public static final GlobalId DBCLASS_GID
public Employee(DBClass theClass, DataSource dataSource) throws java.lang.Exception
theClass
- The class of this objectdataSource
- Your current data sourcejava.lang.Exception
- Failed to initiate the database object.@CheckReturnValue @Nonnull public java.lang.String getEmployeeKey(java.lang.String... args)
@Nonnull public Employee setEmployeeKey(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public Company getCompanyId(java.lang.String... args)
@CheckReturnValue @Nonnull public final Company findCompanyId(java.lang.String... args) throws NotFoundException
Business
(Integer, Mandatory, Searchable)args
- the optional argumentsNotFoundException
- Business was not found@Nonnull public Employee setCompanyId(com.aspc.dal.layers.aspc_app.contact.Business value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public double getCostPerHour(java.lang.String... args)
@Nonnull public Employee setCostPerHour(double value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public double getCurrentRate(java.lang.String... args)
@Nonnull public Employee setCurrentRate(double value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getDepartment(java.lang.String... args)
@Nonnull public Employee setDepartment(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getJobTitle(java.lang.String... args)
@Nonnull public Employee setJobTitle(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull public Employee setName(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isPermanentFg(java.lang.String... args)
@Nonnull public Employee setPermanentFg(boolean value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public Person getPersonId(java.lang.String... args)
@CheckReturnValue @Nonnull public final Person findPersonId(java.lang.String... args) throws NotFoundException
Person
(Integer, Mandatory, Searchable)args
- the optional argumentsNotFoundException
- Person was not found@Nonnull public Employee setPersonId(com.aspc.dal.layers.aspc_app.contact.Person value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getWorkEmail(java.lang.String... args)
@Nonnull public Employee setWorkEmail(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getWorkFax(java.lang.String... args)
@Nonnull public Employee setWorkFax(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getWorkPhone(java.lang.String... args)
@Nonnull public Employee setWorkPhone(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Nonnull @CheckReturnValue public static Employee create(@Nonnull MutableDataSource mds) throws java.lang.Exception
mds
- the datasourcejava.lang.Exception
- an object of this class could not be created@Nonnull @CheckReturnValue public static DBQuery<Employee> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds
- the datasourceNotFoundException
- if class could not be found@Nonnull @CheckReturnValue public static Employee findKey(@Nonnull DataSource ds, @Nonnull java.lang.String key) throws NotFoundException, java.lang.Exception
ds
- the datasourcekey
- the valueNotFoundException
- if target could not be foundjava.lang.Exception
- a serious problempublic double calculateIdlePoints(java.util.Date start, java.util.Date end)
start
- end
- public double getRawUnitCost()
public java.lang.String getName()
public boolean isPermanent()
@OverridingMethodsMustInvokeSuper protected void extCheckModifyAccess(@Nonnull DBField field) throws DBAccessException
extCheckModifyAccess
in class DBObject
field
- The field to checkDBAccessException
- May not modify@OverridingMethodsMustInvokeSuper protected void extFixUp() throws java.lang.Exception
protected void extSetValue(DBField field, java.lang.Object currentValue, FldParams params) throws java.lang.Exception
extSetValue
in class DBObject
field
- The field that is being changedcurrentValue
- The new valueparams
- The extra parametersjava.lang.Exception
- A serious problemprotected void eventFieldUpdated(@Nonnull DBField field, @Nullable java.lang.Object previous, @Nullable GlobalKey previousKey, @Nullable FldParams params) throws java.lang.Exception
eventFieldUpdated
in class DBObject
field
- The field updated.previous
- The previous value for this field.previousKey
- The previous keyparams
- The parameters usedjava.lang.Exception
- a serious problemstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.