Package mks.ci.server
Class DeleteTimeEntryOp
- java.lang.Object
-
- mks.ci.server.BaseBulkOp
-
- mks.ci.server.BaseTimeEntryOp
-
- mks.ci.server.ModifyTimeEntryOp
-
- mks.ci.server.DeleteTimeEntryOp
-
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,mks.ci.server.BulkOp
,mks.ci.server.ITriggerExposedOp
,mks.frame.server.audit.IAuditable
public class DeleteTimeEntryOp extends mks.ci.server.ModifyTimeEntryOp
A bulk operation for deleting a time entry.- Since:
- Bentley
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DeleteTimeEntryOp.ScriptDeleteTimeEntryOpBean
A bean that encapsulates a single request to delete a time entry.
-
Constructor Summary
Constructors Constructor Description DeleteTimeEntryOp()
Default constructor, should only be used for serialization.DeleteTimeEntryOp(mks.ci.common.ModifyTEInfo info)
Construct an operation to delete a Time Entry
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalTriggerManager.ScriptOperationBean
getScriptBean(int userId, java.sql.Connection connection)
Get the bean that wraps this op in trigger scripts.mks.frame.triggers.TriggerEvent
getTriggerEvent()
Get the trigger event the operation participates in.mks.ci.server.BulkOpResult
performOp(mks.ci.server.CacheUpdate cacheUpdate, int currentUserID)
Perform the operation.void
readExternal(java.io.ObjectInput in)
void
writeExternal(java.io.ObjectOutput out)
-
-
-
Method Detail
-
performOp
public mks.ci.server.BulkOpResult performOp(mks.ci.server.CacheUpdate cacheUpdate, int currentUserID) throws mks.ci.exception.CIException
Description copied from interface:mks.ci.server.BulkOp
Perform the operation.- Parameters:
cacheUpdate
- The container which accumulates cache update information, processed after the transaction is committed.currentUserID
- The ID of the user performing the operation.- Returns:
- The BulkOpResult specific to the operation.
- Throws:
mks.ci.exception.CIException
- See Also:
BulkOp.performOp(mks.ci.server.CacheUpdate, int)
-
getTriggerEvent
public mks.frame.triggers.TriggerEvent getTriggerEvent()
Description copied from interface:mks.ci.server.ITriggerExposedOp
Get the trigger event the operation participates in.- Returns:
- The trigger event of the operation.
- See Also:
ITriggerExposedOp.getTriggerEvent()
-
getScriptBean
public LocalTriggerManager.ScriptOperationBean getScriptBean(int userId, java.sql.Connection connection)
Description copied from interface:mks.ci.server.ITriggerExposedOp
Get the bean that wraps this op in trigger scripts.- Parameters:
userId
- the current userconnection
- our database connection- Returns:
- The bean that wraps the operation.
- See Also:
ITriggerExposedOp.getScriptBean(int, Connection)
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Overrides:
writeExternal
in classmks.ci.server.ModifyTimeEntryOp
- Throws:
java.io.IOException
- See Also:
Externalizable.writeExternal(ObjectOutput)
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
- Specified by:
readExternal
in interfacejava.io.Externalizable
- Overrides:
readExternal
in classmks.ci.server.ModifyTimeEntryOp
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
- See Also:
Externalizable.readExternal(ObjectInput)
-
-