org.opencrx.kernel.activity1.jdo2
Class ActivityWorkRecord

java.lang.Object
  extended by org.oasisopen.jdo2.Identifiable
      extended by org.w3c.jdo2.AbstractObject
          extended by org.opencrx.kernel.activity1.jdo2.ActivityWorkRecord
All Implemented Interfaces:
Serializable, AbstractWorkRecord, ActivityWorkRecord, Assignable, SecureObject, BookingOrigin, BasicObject, ContextCapable, ExtentCapable, ViewCapable

public class ActivityWorkRecord
extends org.w3c.jdo2.AbstractObject
implements ActivityWorkRecord

Class ActivityWorkRecord

See Also:
Serialized Form

Nested Class Summary
static class ActivityWorkRecord.Identity
          The object's application identity
static class ActivityWorkRecord.Slice
          Slice object hold the ActivityWorkRecord's multivalued attributes
 
Nested classes/interfaces inherited from class org.w3c.jdo2.AbstractObject
org.w3c.jdo2.AbstractObject.EmbeddedList<E>, org.w3c.jdo2.AbstractObject.EmbeddedSet<E>
 
Field Summary
static List<String> BASE_CLASS
          Define this class as base class
static List<String> CLASS
          Define the model class org::opencrx::kernel::activity1::ActivityWorkRecord
 
Constructor Summary
ActivityWorkRecord()
           
 
Method Summary
 ModifySecureObjectResult addOwningGroup(ModifyOwningGroupParams in)
           
 void addToAssignment(ResourceAssignment assignment)
          Sets a new value for the reference assignment.
 void addToAssignment(ResourceAssignment assignment, boolean idIsPersistent, String id)
          Set the object's composite association org:opencrx:kernel:activity1:AssignmentContainsWorkRecord.
 Void assignToMe()
           
 CheckPermissionsResult checkPermissions(CheckPermissionsParams in)
           
 ViewCapable getAccessGrantedByParent()
          Retrieves the value for the reference accessGrantedByParent.
 short getAccessLevelBrowse()
          Retrieves the value for the attribute accessLevelBrowse.
 short getAccessLevelDelete()
          Retrieves the value for the attribute accessLevelDelete.
 short getAccessLevelUpdate()
          Retrieves the value for the attribute accessLevelUpdate.
 BigDecimal getBillableAmount()
          Retrieves the possibly null value for the optional attribute billableAmount.
 short getBillingCurrency()
          Retrieves the value for the attribute billingCurrency.
<T extends Context>
Map<String,T>
getContext()
          Retrieves the Collection of objects referenced by context.
 Date getCreatedAt()
          Retrieves the value for the attribute createdAt.
 Set<String> getCreatedBy()
          Retrieves a set containing all the elements for the attribute createdBy.
 short getDepotSelector()
          Retrieves the value for the attribute depotSelector.
 String getDescription()
          Retrieves the possibly null value for the optional attribute description.
 short getDurationCalculationMode()
          Retrieves the value for the attribute durationCalculationMode.
 int getDurationHours()
          Retrieves the value for the attribute durationHours.
 int getDurationMinutes()
          Retrieves the value for the attribute durationMinutes.
 Date getEndedAt()
          Retrieves the possibly null value for the optional attribute endedAt.
 String getIdentity()
          Retrieves the value for the attribute identity.
 Date getModifiedAt()
          Retrieves the value for the attribute modifiedAt.
 Set<String> getModifiedBy()
          Retrieves a set containing all the elements for the attribute modifiedBy.
 String getName()
          Retrieves the value for the attribute name.
 List<String> getOwner()
          Retrieves a list containing all the elements for the attribute owner.
<T extends PrincipalGroup>
List<T>
getOwningGroup()
          Retrieves the Collection of objects referenced by owningGroup.
 User getOwningUser()
          Retrieves the value for the reference owningUser.
 Integer getPauseDurationHours()
          Retrieves the possibly null value for the optional attribute pauseDurationHours.
 Integer getPauseDurationMinutes()
          Retrieves the possibly null value for the optional attribute pauseDurationMinutes.
 BigDecimal getRate()
          Retrieves the possibly null value for the optional attribute rate.
 short getRateType()
          Retrieves the value for the attribute rateType.
 Date getStartedAt()
          Retrieves the possibly null value for the optional attribute startedAt.
<T extends View>
ObjectHasView.View<T>
getView()
          Retrieves a set containing all the elements for the reference view.
 CompoundBooking getWorkCb()
          Retrieves the value for the reference workCb.
 boolean isBillable()
          Retrieves the value for the attribute isBillable.
static ActivityWorkRecord.Identity newIdentity(ResourceAssignment.Identity assignment, QualifierType idType, String id)
           
protected  org.w3c.jdo2.AbstractObject.Slice newSlice(int index)
           
protected  List<String> openmdxjdoGetClass()
          Retrieve the model class
protected  String openmdxjdoGetObjectId()
          Retrieve the object's JDO identity key
protected  int openmdxjdoGetSize(int field)
           
protected
<E extends org.w3c.jdo2.AbstractObject.Slice>
SortedMap<Integer,E>
openmdxjdoGetSlices()
           
protected  void openmdxjdoSetSize(int field, int size)
           
static ActivityWorkRecord.Identity openmdxjdoToIdentity(ObjectId objectId)
           
 ModifySecureObjectResult removeAllOwningGroup(RemoveAllOwningGroupParams in)
           
 ModifySecureObjectResult removeOwningGroup(ModifyOwningGroupParams in)
           
 ModifySecureObjectResult replaceOwningGroup(ModifyOwningGroupsParams in)
           
 ModifySecureObjectResult setAccessLevel(SetAccessLevelParams in)
           
 void setAccessLevelBrowse(short accessLevelBrowse)
          Sets a new value for the attribute accessLevelBrowse.
 void setAccessLevelDelete(short accessLevelDelete)
          Sets a new value for the attribute accessLevelDelete.
 void setAccessLevelUpdate(short accessLevelUpdate)
          Sets a new value for the attribute accessLevelUpdate.
 void setBillable(boolean isBillable)
          Sets a new value for the attribute isBillable.
 void setBillingCurrency(short billingCurrency)
          Sets a new value for the attribute billingCurrency.
 void setDepotSelector(short depotSelector)
          Sets a new value for the attribute depotSelector.
 void setDescription(String description)
          Sets a new value for the attribute description.
 void setDurationCalculationMode(short durationCalculationMode)
          Sets a new value for the attribute durationCalculationMode.
 void setDurationHours(int durationHours)
          Sets a new value for the attribute durationHours.
 void setDurationMinutes(int durationMinutes)
          Sets a new value for the attribute durationMinutes.
 void setEndedAt(Date endedAt)
          Sets a new value for the attribute endedAt.
 void setName(String name)
          Sets a new value for the attribute name.
 ModifySecureObjectResult setOwningUser(SetOwningUserParams in)
           
 void setOwningUser(User owningUser)
          Sets a new value for the reference owningUser.
 void setPauseDurationHours(Integer pauseDurationHours)
          Sets a new value for the attribute pauseDurationHours.
 void setPauseDurationMinutes(Integer pauseDurationMinutes)
          Sets a new value for the attribute pauseDurationMinutes.
 void setRate(BigDecimal rate)
          Sets a new value for the attribute rate.
 void setRateType(short rateType)
          Sets a new value for the attribute rateType.
 void setStartedAt(Date startedAt)
          Sets a new value for the attribute startedAt.
 
Methods inherited from class org.w3c.jdo2.AbstractObject
openmdxjdoClassName, openmdxjdoGetIdentityBuilder, openmdxjdoGetList, openmdxjdoGetObjectsByParent, openmdxjdoGetSet, openmdxjdoGetSparseArray, openmdxjdoNewMap, openmdxjdoNewSlice, openmdxjdoSetArray, openmdxjdoSetCollection, openmdxjdoToArray, openmdxjdoToArray, openmdxjdoValidateElement
 
Methods inherited from class org.oasisopen.jdo2.Identifiable
jdoClass, modelClasses, openmdxjdoGetObject, openmdxjdoGetObjectById, openmdxjdoGetObjectId, openmdxjdoGetObjectSet, openmdxjdoNewObjectId, openmdxjdoNewObjectId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS

public static final List<String> CLASS
Define the model class org::opencrx::kernel::activity1::ActivityWorkRecord


BASE_CLASS

public static final List<String> BASE_CLASS
Define this class as base class

See Also:
ActivityWorkRecord.CLASS
Constructor Detail

ActivityWorkRecord

public ActivityWorkRecord()
Method Detail

openmdxjdoGetObjectId

protected String openmdxjdoGetObjectId()
Retrieve the object's JDO identity key

Specified by:
openmdxjdoGetObjectId in class org.oasisopen.jdo2.Identifiable
Returns:
the value of the object's JDO identity key

openmdxjdoGetSlices

protected final <E extends org.w3c.jdo2.AbstractObject.Slice> SortedMap<Integer,E> openmdxjdoGetSlices()
Overrides:
openmdxjdoGetSlices in class org.w3c.jdo2.AbstractObject

getDurationCalculationMode

public short getDurationCalculationMode()
Retrieves the value for the attribute durationCalculationMode.

Specified by:
getDurationCalculationMode in interface AbstractWorkRecord
Returns:
The non-null value for attribute durationCalculationMode.

setDurationCalculationMode

public void setDurationCalculationMode(short durationCalculationMode)
Sets a new value for the attribute durationCalculationMode.

Specified by:
setDurationCalculationMode in interface AbstractWorkRecord
Parameters:
durationCalculationMode - The non-null new value for attribute durationCalculationMode.

getRateType

public short getRateType()
Retrieves the value for the attribute rateType.

Specified by:
getRateType in interface AbstractWorkRecord
Returns:
The non-null value for attribute rateType.

setRateType

public void setRateType(short rateType)
Sets a new value for the attribute rateType.

Specified by:
setRateType in interface AbstractWorkRecord
Parameters:
rateType - The non-null new value for attribute rateType.

getAccessLevelDelete

public short getAccessLevelDelete()
Retrieves the value for the attribute accessLevelDelete.

Specified by:
getAccessLevelDelete in interface SecureObject
Returns:
The non-null value for attribute accessLevelDelete.

setAccessLevelDelete

public void setAccessLevelDelete(short accessLevelDelete)
Sets a new value for the attribute accessLevelDelete.

Specified by:
setAccessLevelDelete in interface SecureObject
Parameters:
accessLevelDelete - The non-null new value for attribute accessLevelDelete.

getModifiedAt

public Date getModifiedAt()
Retrieves the value for the attribute modifiedAt.

Specified by:
getModifiedAt in interface BasicObject
Returns:
The non-null value for attribute modifiedAt.

getModifiedBy

public final Set<String> getModifiedBy()
Retrieves a set containing all the elements for the attribute modifiedBy.

Specified by:
getModifiedBy in interface BasicObject
Returns:
A set containing all elements for this attribute.

getPauseDurationMinutes

public final Integer getPauseDurationMinutes()
Retrieves the possibly null value for the optional attribute pauseDurationMinutes.

Specified by:
getPauseDurationMinutes in interface AbstractWorkRecord
Returns:
The possibly null value for attribute pauseDurationMinutes.

setPauseDurationMinutes

public void setPauseDurationMinutes(Integer pauseDurationMinutes)
Sets a new value for the attribute pauseDurationMinutes.

Specified by:
setPauseDurationMinutes in interface AbstractWorkRecord
Parameters:
pauseDurationMinutes - The possibly null new value for attribute pauseDurationMinutes.

assignToMe

public Void assignToMe()
Specified by:
assignToMe in interface Assignable

getWorkCb

public CompoundBooking getWorkCb()
Retrieves the value for the reference workCb.

Specified by:
getWorkCb in interface AbstractWorkRecord
Returns:
The – possibly null – value for this reference.

getAccessLevelBrowse

public short getAccessLevelBrowse()
Retrieves the value for the attribute accessLevelBrowse.

Specified by:
getAccessLevelBrowse in interface SecureObject
Returns:
The non-null value for attribute accessLevelBrowse.

setAccessLevelBrowse

public void setAccessLevelBrowse(short accessLevelBrowse)
Sets a new value for the attribute accessLevelBrowse.

Specified by:
setAccessLevelBrowse in interface SecureObject
Parameters:
accessLevelBrowse - The non-null new value for attribute accessLevelBrowse.

getIdentity

public String getIdentity()
Retrieves the value for the attribute identity.

Specified by:
getIdentity in interface ExtentCapable
Returns:
The non-null value for attribute identity.

getRate

public final BigDecimal getRate()
Retrieves the possibly null value for the optional attribute rate.

Specified by:
getRate in interface AbstractWorkRecord
Returns:
The possibly null value for attribute rate.

setRate

public void setRate(BigDecimal rate)
Sets a new value for the attribute rate.

Specified by:
setRate in interface AbstractWorkRecord
Parameters:
rate - The possibly null new value for attribute rate.

getDepotSelector

public short getDepotSelector()
Retrieves the value for the attribute depotSelector.

Specified by:
getDepotSelector in interface AbstractWorkRecord
Returns:
The non-null value for attribute depotSelector.

setDepotSelector

public void setDepotSelector(short depotSelector)
Sets a new value for the attribute depotSelector.

Specified by:
setDepotSelector in interface AbstractWorkRecord
Parameters:
depotSelector - The non-null new value for attribute depotSelector.

isBillable

public boolean isBillable()
Retrieves the value for the attribute isBillable.

Specified by:
isBillable in interface AbstractWorkRecord
Returns:
The non-null value for attribute isBillable.

setBillable

public void setBillable(boolean isBillable)
Sets a new value for the attribute isBillable.

Specified by:
setBillable in interface AbstractWorkRecord
Parameters:
isBillable - The non-null new value for attribute isBillable.

getDescription

public final String getDescription()
Retrieves the possibly null value for the optional attribute description.

Specified by:
getDescription in interface AbstractWorkRecord
Returns:
The possibly null value for attribute description.

setDescription

public void setDescription(String description)
Sets a new value for the attribute description.

Specified by:
setDescription in interface AbstractWorkRecord
Parameters:
description - The possibly null new value for attribute description.

getCreatedAt

public Date getCreatedAt()
Retrieves the value for the attribute createdAt.

Specified by:
getCreatedAt in interface BasicObject
Returns:
The non-null value for attribute createdAt.

removeAllOwningGroup

public ModifySecureObjectResult removeAllOwningGroup(RemoveAllOwningGroupParams in)
Specified by:
removeAllOwningGroup in interface SecureObject

getName

public String getName()
Retrieves the value for the attribute name.

Specified by:
getName in interface AbstractWorkRecord
Returns:
The non-null value for attribute name.

setName

public void setName(String name)
Sets a new value for the attribute name.

Specified by:
setName in interface AbstractWorkRecord
Parameters:
name - The non-null new value for attribute name.

getBillingCurrency

public short getBillingCurrency()
Retrieves the value for the attribute billingCurrency.

Specified by:
getBillingCurrency in interface AbstractWorkRecord
Returns:
The non-null value for attribute billingCurrency.

setBillingCurrency

public void setBillingCurrency(short billingCurrency)
Sets a new value for the attribute billingCurrency.

Specified by:
setBillingCurrency in interface AbstractWorkRecord
Parameters:
billingCurrency - The non-null new value for attribute billingCurrency.

setOwningUser

public ModifySecureObjectResult setOwningUser(SetOwningUserParams in)
Specified by:
setOwningUser in interface SecureObject

getOwningGroup

public <T extends PrincipalGroup> List<T> getOwningGroup()
Retrieves the Collection of objects referenced by owningGroup.

Specified by:
getOwningGroup in interface SecureObject
Returns:
The Collection of referenced objects.

addOwningGroup

public ModifySecureObjectResult addOwningGroup(ModifyOwningGroupParams in)
Specified by:
addOwningGroup in interface SecureObject

getPauseDurationHours

public final Integer getPauseDurationHours()
Retrieves the possibly null value for the optional attribute pauseDurationHours.

Specified by:
getPauseDurationHours in interface AbstractWorkRecord
Returns:
The possibly null value for attribute pauseDurationHours.

setPauseDurationHours

public void setPauseDurationHours(Integer pauseDurationHours)
Sets a new value for the attribute pauseDurationHours.

Specified by:
setPauseDurationHours in interface AbstractWorkRecord
Parameters:
pauseDurationHours - The possibly null new value for attribute pauseDurationHours.

getEndedAt

public final Date getEndedAt()
Retrieves the possibly null value for the optional attribute endedAt.

Specified by:
getEndedAt in interface AbstractWorkRecord
Returns:
The possibly null value for attribute endedAt.

setEndedAt

public void setEndedAt(Date endedAt)
Sets a new value for the attribute endedAt.

Specified by:
setEndedAt in interface AbstractWorkRecord
Parameters:
endedAt - The possibly null new value for attribute endedAt.

getStartedAt

public final Date getStartedAt()
Retrieves the possibly null value for the optional attribute startedAt.

Specified by:
getStartedAt in interface AbstractWorkRecord
Returns:
The possibly null value for attribute startedAt.

setStartedAt

public void setStartedAt(Date startedAt)
Sets a new value for the attribute startedAt.

Specified by:
setStartedAt in interface AbstractWorkRecord
Parameters:
startedAt - The possibly null new value for attribute startedAt.

checkPermissions

public CheckPermissionsResult checkPermissions(CheckPermissionsParams in)
Specified by:
checkPermissions in interface SecureObject

removeOwningGroup

public ModifySecureObjectResult removeOwningGroup(ModifyOwningGroupParams in)
Specified by:
removeOwningGroup in interface SecureObject

getAccessLevelUpdate

public short getAccessLevelUpdate()
Retrieves the value for the attribute accessLevelUpdate.

Specified by:
getAccessLevelUpdate in interface SecureObject
Returns:
The non-null value for attribute accessLevelUpdate.

setAccessLevelUpdate

public void setAccessLevelUpdate(short accessLevelUpdate)
Sets a new value for the attribute accessLevelUpdate.

Specified by:
setAccessLevelUpdate in interface SecureObject
Parameters:
accessLevelUpdate - The non-null new value for attribute accessLevelUpdate.

getDurationMinutes

public int getDurationMinutes()
Retrieves the value for the attribute durationMinutes.

Specified by:
getDurationMinutes in interface AbstractWorkRecord
Returns:
The non-null value for attribute durationMinutes.

setDurationMinutes

public void setDurationMinutes(int durationMinutes)
Sets a new value for the attribute durationMinutes.

Specified by:
setDurationMinutes in interface AbstractWorkRecord
Parameters:
durationMinutes - The non-null new value for attribute durationMinutes.

getCreatedBy

public final Set<String> getCreatedBy()
Retrieves a set containing all the elements for the attribute createdBy.

Specified by:
getCreatedBy in interface BasicObject
Returns:
A set containing all elements for this attribute.

getBillableAmount

public final BigDecimal getBillableAmount()
Retrieves the possibly null value for the optional attribute billableAmount.

Specified by:
getBillableAmount in interface AbstractWorkRecord
Returns:
The possibly null value for attribute billableAmount.

getAccessGrantedByParent

public ViewCapable getAccessGrantedByParent()
Retrieves the value for the reference accessGrantedByParent.

Specified by:
getAccessGrantedByParent in interface SecureObject
Returns:
The – possibly null – value for this reference.

setAccessLevel

public ModifySecureObjectResult setAccessLevel(SetAccessLevelParams in)
Specified by:
setAccessLevel in interface SecureObject

getContext

public <T extends Context> Map<String,T> getContext()
Retrieves the Collection of objects referenced by context.

Specified by:
getContext in interface ContextCapable
Returns:
The Collection of referenced objects.

getOwner

public final List<String> getOwner()
Retrieves a list containing all the elements for the attribute owner.

Specified by:
getOwner in interface SecureObject
Returns:
A list containing all elements for this attribute.

replaceOwningGroup

public ModifySecureObjectResult replaceOwningGroup(ModifyOwningGroupsParams in)
Specified by:
replaceOwningGroup in interface SecureObject

getView

public <T extends View> ObjectHasView.View<T> getView()
Retrieves a set containing all the elements for the reference view.

Specified by:
getView in interface ViewCapable
Returns:
A set containing all the elements for this reference.

getDurationHours

public int getDurationHours()
Retrieves the value for the attribute durationHours.

Specified by:
getDurationHours in interface AbstractWorkRecord
Returns:
The non-null value for attribute durationHours.

setDurationHours

public void setDurationHours(int durationHours)
Sets a new value for the attribute durationHours.

Specified by:
setDurationHours in interface AbstractWorkRecord
Parameters:
durationHours - The non-null new value for attribute durationHours.

getOwningUser

public User getOwningUser()
Retrieves the value for the reference owningUser.

Specified by:
getOwningUser in interface SecureObject
Returns:
The – possibly null – value for this reference.

setOwningUser

public void setOwningUser(User owningUser)
Sets a new value for the reference owningUser.

Specified by:
setOwningUser in interface SecureObject
Parameters:
owningUser - The non-null new value for this reference.

openmdxjdoGetSize

protected int openmdxjdoGetSize(int field)
Overrides:
openmdxjdoGetSize in class org.w3c.jdo2.AbstractObject

openmdxjdoSetSize

protected void openmdxjdoSetSize(int field,
                                 int size)
Overrides:
openmdxjdoSetSize in class org.w3c.jdo2.AbstractObject

newSlice

protected org.w3c.jdo2.AbstractObject.Slice newSlice(int index)

openmdxjdoGetClass

protected List<String> openmdxjdoGetClass()
Retrieve the model class

Returns:
the model class
See Also:
ActivityWorkRecord.CLASS

addToAssignment

public void addToAssignment(ResourceAssignment assignment)
Sets a new value for the reference assignment.

Parameters:
assignment - The non-null new value for this reference.

addToAssignment

public void addToAssignment(ResourceAssignment assignment,
                            boolean idIsPersistent,
                            String id)
Set the object's composite association org:opencrx:kernel:activity1:AssignmentContainsWorkRecord.

Parameters:
assignment - The non-null new value for this object's composite owner.
idIsPersistent - Defines whether the id is persistent.
id - The non-null new value for this object's qualifier.

newIdentity

public static ActivityWorkRecord.Identity newIdentity(ResourceAssignment.Identity assignment,
                                                      QualifierType idType,
                                                      String id)

openmdxjdoToIdentity

public static ActivityWorkRecord.Identity openmdxjdoToIdentity(ObjectId objectId)


This software is published under the BSD license. Copyright © 2003-2008, CRIXP AG, Switzerland, All rights reserved. Use is subject to license terms.