public class TimeEntry extends DBObject
DBObject.DenormalizeAction
Modifier and Type | Field and Description |
---|---|
static GlobalId |
DBCLASS_GID
TimeEntry
|
static java.lang.String |
DBCLASS_NAME
TimeEntry
|
ATTRIBUTE_MARVIN, dbClass, ds, NO_LOOP_PARAMS
Constructor and Description |
---|
TimeEntry(DBClass def,
DataSource dataSource)
Std.
|
Modifier and Type | Method and Description |
---|---|
static TimeEntry |
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 |
extCheckCreateAccess()
Additional access checking for create access of this object.
|
protected void |
extCheckDeleteAccess()
Additional access checking for delete access of this object.
|
protected void |
extCheckModifyAccess(DBField field)
Additional access checking for write access of this object.
|
protected void |
extFixUp()
The extended fix up routine for known problems.
|
protected java.lang.Object |
extGetDerivedValue(DBField field,
FldParams params)
Calculate the derived value for this field.
|
protected void |
extPreSaveRecord()
OVERRIDE this method to add functionality to stSoftware BEFORE saving the record to the database.
|
protected ValidationError |
extValidateField(DBField field,
ValidationList list)
Additional validation for a particular field.
|
protected void |
extValidateRecord(ValidationList list)
Performs additional validations on this record.
|
Activity |
findActivity(java.lang.String... args)
Activity.
|
Person |
findEmployee(java.lang.String... args)
Employee.
|
Person |
findEnteredBy(java.lang.String... args)
Entered By.
|
InvoiceProductItem |
findInvoiceItem(java.lang.String... args)
invoice product item.
|
static TimeEntry |
findKey(DataSource ds,
int key)
Find the target for this class by the primary key
|
Company |
findOwnerBusUnit(java.lang.String... args)
Business unit that owns this entry.
|
TimeSheet |
findTimeSheet(java.lang.String... args)
Time Sheet.
|
java.lang.Object |
findTimeUnit(java.lang.String... args)
Deprecated.
|
Activity |
getActivity(java.lang.String... args) |
double |
getAdjHours(java.lang.String... args)
Deprecated.
|
double |
getCalcHours(java.lang.String... args)
Deprecated.
|
double |
getChargeAmtExTax(java.lang.String... args) |
double |
getChargeAmtIncTax(java.lang.String... args) |
java.util.Date |
getDay(java.lang.String... args) |
double |
getDurationInDays() |
double |
getDurationInHour(java.lang.String... args) |
double |
getDurationInHours() |
double |
getDurationInHours(boolean isActual) |
Person |
getEmployee(java.lang.String... args) |
java.util.Date |
getEndTime(java.lang.String... args) |
Person |
getEnteredBy(java.lang.String... args) |
java.util.Date |
getEnteredTime(java.lang.String... args) |
double |
getHours(java.lang.String... args) |
int |
getID(java.lang.String... args) |
InvoiceProductItem |
getInvoiceItem(java.lang.String... args) |
int |
getJiraWorklogId(java.lang.String... args) |
java.lang.String |
getNotes(java.lang.String... args) |
Company |
getOwnerBusUnit(java.lang.String... args) |
double |
getPercOfTask(java.lang.String... args) |
java.util.Date |
getStartTime(java.lang.String... args) |
TimeSheet |
getTimeSheet(java.lang.String... args) |
java.lang.Object |
getTimeUnit(java.lang.String... args)
Deprecated.
|
double |
getTotalCost(java.lang.String... args) |
double |
getTotalHours(java.lang.String... args) |
boolean |
isInvoiced(java.lang.String... args) |
protected boolean |
isModifiableWhenLocked(DBField field) |
static DBQuery<TimeEntry> |
makeQuery(DataSource ds)
Make a new QUERY for this class.
|
TimeEntry |
setActivity(com.aspc.dal.layers.aspc_app.task.Activity value,
java.lang.String... args) |
TimeEntry |
setAdjHours(double value,
java.lang.String... args)
Deprecated.
|
TimeEntry |
setChargeAmtExTax(double value,
java.lang.String... args) |
TimeEntry |
setDay(java.util.Date value,
java.lang.String... args) |
TimeEntry |
setEmployee(com.aspc.dal.layers.aspc_app.contact.Person value,
java.lang.String... args) |
TimeEntry |
setEndTime(java.util.Date value,
java.lang.String... args) |
TimeEntry |
setEnteredBy(com.aspc.dal.layers.aspc_app.contact.Person value,
java.lang.String... args) |
TimeEntry |
setEnteredTime(java.util.Date value,
java.lang.String... args) |
TimeEntry |
setHours(double value,
java.lang.String... args) |
TimeEntry |
setID(int value,
java.lang.String... args) |
TimeEntry |
setInvoiceItem(com.aspc.dal.layers.aspc_app.invoice.InvoiceProductItem value,
java.lang.String... args) |
TimeEntry |
setJiraWorklogId(int value,
java.lang.String... args) |
TimeEntry |
setNotes(java.lang.String value,
java.lang.String... args) |
TimeEntry |
setOwnerBusUnit(com.aspc.dal.layers.aspc_app.contact.Business value,
java.lang.String... args) |
TimeEntry |
setStartTime(java.util.Date value,
java.lang.String... args) |
TimeEntry |
setTimeSheet(com.aspc.dal.layers.aspc_app.timesheet.TimeSheet value,
java.lang.String... args) |
TimeEntry |
setTimeUnit(java.lang.Object value,
java.lang.String... args)
Deprecated.
|
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, extCheckModifyAccess, extCheckReadAccess, extCopy, extDelete, extDeleteRecord, extGetDerivedGlobalKey, extGetValue, extIsMandatory, extIsOnChange, extMarkSavePoint, extPostDeleteRecord, extPostSaveRecord, extPreDeleteRecord, extPreValidate, extPreValidateDelete, extRaiseEvents, extRollbackTo, extSaveRecord, extSetValue, extUndelete, extValidateDelete, 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 TimeEntry(DBClass def, DataSource dataSource) throws java.lang.Exception
def
- The class of this objectdataSource
- The datasource for this objectjava.lang.Exception
- A serious problem occurred@CheckReturnValue public int getID(java.lang.String... args)
@Nonnull public TimeEntry setID(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public Activity getActivity(java.lang.String... args)
@CheckReturnValue @Nonnull public final Activity findActivity(java.lang.String... args) throws NotFoundException
Activity
(Integer, Mandatory, Searchable)args
- the optional argumentsNotFoundException
- Activity was not found@Nonnull public TimeEntry setActivity(com.aspc.dal.layers.aspc_app.task.Activity value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Deprecated @CheckReturnValue public double getAdjHours(java.lang.String... args)
@Deprecated @Nonnull public TimeEntry setAdjHours(double value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Deprecated @CheckReturnValue public double getCalcHours(java.lang.String... args)
@CheckReturnValue public double getChargeAmtExTax(java.lang.String... args)
@Nonnull public TimeEntry setChargeAmtExTax(double value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public double getChargeAmtIncTax(java.lang.String... args)
@CheckReturnValue public java.util.Date getDay(java.lang.String... args)
@Nonnull public TimeEntry setDay(java.util.Date value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public double getDurationInHour(java.lang.String... args)
@CheckReturnValue @Nullable public Person getEmployee(java.lang.String... args)
@CheckReturnValue @Nonnull public final Person findEmployee(java.lang.String... args) throws NotFoundException
Person
(Integer, Mandatory, Searchable)args
- the optional argumentsNotFoundException
- Person was not found@Nonnull public TimeEntry setEmployee(com.aspc.dal.layers.aspc_app.contact.Person value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public java.util.Date getEndTime(java.lang.String... args)
@Nonnull public TimeEntry setEndTime(java.util.Date value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public Person getEnteredBy(java.lang.String... args)
@CheckReturnValue @Nonnull public final Person findEnteredBy(java.lang.String... args) throws NotFoundException
Person
(Integer, Mandatory, Searchable)args
- the optional argumentsNotFoundException
- Person was not found@Nonnull public TimeEntry setEnteredBy(com.aspc.dal.layers.aspc_app.contact.Person value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public java.util.Date getEnteredTime(java.lang.String... args)
@Nonnull public TimeEntry setEnteredTime(java.util.Date value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public double getHours(java.lang.String... args)
@Nonnull public TimeEntry setHours(double value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public InvoiceProductItem getInvoiceItem(java.lang.String... args)
@CheckReturnValue @Nonnull public final InvoiceProductItem findInvoiceItem(java.lang.String... args) throws NotFoundException
InvoiceProductItem
(Integer, Searchable)args
- the optional argumentsNotFoundException
- InvoiceProductItem was not found@Nonnull public TimeEntry setInvoiceItem(com.aspc.dal.layers.aspc_app.invoice.InvoiceProductItem value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public boolean isInvoiced(java.lang.String... args)
@CheckReturnValue public int getJiraWorklogId(java.lang.String... args)
@Nonnull public TimeEntry setJiraWorklogId(int value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nonnull public java.lang.String getNotes(java.lang.String... args)
@Nonnull public TimeEntry setNotes(java.lang.String value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public Company getOwnerBusUnit(java.lang.String... args)
@CheckReturnValue @Nonnull public final Company findOwnerBusUnit(java.lang.String... args) throws NotFoundException
Business
(Integer, Searchable)args
- the optional argumentsNotFoundException
- Business was not found@Nonnull public TimeEntry setOwnerBusUnit(com.aspc.dal.layers.aspc_app.contact.Business value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public double getPercOfTask(java.lang.String... args)
@CheckReturnValue @Nullable public java.util.Date getStartTime(java.lang.String... args)
@Nonnull public TimeEntry setStartTime(java.util.Date value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue @Nullable public TimeSheet getTimeSheet(java.lang.String... args)
@CheckReturnValue @Nonnull public final TimeSheet findTimeSheet(java.lang.String... args) throws NotFoundException
TimeSheet
(Integer, Searchable)args
- the optional argumentsNotFoundException
- TimeSheet was not found@Nonnull public TimeEntry setTimeSheet(com.aspc.dal.layers.aspc_app.timesheet.TimeSheet value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@Deprecated @CheckReturnValue @Nullable public java.lang.Object getTimeUnit(java.lang.String... args)
@CheckReturnValue @Deprecated @Nonnull public final java.lang.Object findTimeUnit(java.lang.String... args) throws NotFoundException
ChargeUnitType
(String, Searchable)args
- the optional argumentsNotFoundException
- ChargeUnitType was not found@Deprecated @Nonnull public TimeEntry setTimeUnit(java.lang.Object value, java.lang.String... args) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public double getTotalCost(java.lang.String... args)
@CheckReturnValue public double getTotalHours(java.lang.String... args)
@Nonnull @CheckReturnValue public static TimeEntry 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<TimeEntry> makeQuery(@Nonnull DataSource ds) throws NotFoundException
ds
- the datasourceNotFoundException
- if class could not be found@Nonnull @CheckReturnValue public static TimeEntry findKey(@Nonnull DataSource ds, int key) throws NotFoundException, java.lang.Exception
ds
- the datasourcekey
- the valueNotFoundException
- if target could not be foundjava.lang.Exception
- a serious problem@CheckReturnValue protected java.lang.Object extGetDerivedValue(@Nonnull DBField field, @Nullable FldParams params) throws java.lang.Exception
extGetDerivedValue
in class DBObject
field
- The field to getparams
- The parameters for this field eg. language= or default=java.lang.Exception
- A serious problemprotected void extCheckDeleteAccess() throws DBAccessException
extCheckDeleteAccess
in class DBObject
DBAccessException
- No access to delete@OverridingMethodsMustInvokeSuper protected void extCheckCreateAccess() throws DBAccessException
extCheckCreateAccess
in class DBObject
DBAccessException
- No access to createDBObject.checkCreateAccess()
@OverridingMethodsMustInvokeSuper protected void extCheckModifyAccess(@Nonnull DBField field) throws DBAccessException
extCheckModifyAccess
in class DBObject
field
- Can we change this field ?DBAccessException
- No access to modify@OverridingMethodsMustInvokeSuper protected void extValidateRecord(@Nonnull ValidationList list) throws java.lang.Exception
extValidateRecord
in class DBObject
list
- The validation list.java.lang.Exception
- A serious problem@OverridingMethodsMustInvokeSuper protected 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 problem@CheckReturnValue @OverridingMethodsMustInvokeSuper @Nullable protected ValidationError extValidateField(@Nonnull DBField field, @Nonnull ValidationList list) throws java.lang.Exception
extValidateField
in class DBObject
list
- The validation listfield
- The field to be validatedjava.lang.Exception
- A serious problem@OverridingMethodsMustInvokeSuper protected void extFixUp() throws java.lang.Exception
@OverridingMethodsMustInvokeSuper protected void extPreSaveRecord() throws java.lang.Exception
DBObject
extPreSaveRecord
in class DBObject
java.lang.Exception
- A Serious problem@CheckReturnValue public double getDurationInHours() throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public double getDurationInHours(boolean isActual) throws java.lang.Exception
java.lang.Exception
@CheckReturnValue public double getDurationInDays() throws java.lang.Exception
java.lang.Exception
@CheckReturnValue protected boolean isModifiableWhenLocked(@Nullable DBField field)
field
- The fieldstSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.