1 package org.opencrx.kernel.activity1.cci; 14 15 public class AbstractWorkRecordImpl 16 extends org.openmdx.base.accessor.jmi.spi.RefObject_1 17 implements AbstractWorkRecord { 18 19 public AbstractWorkRecordImpl( 20 org.openmdx.base.accessor.generic.cci.Object_1_0 object, 21 javax.jmi.reflect.RefClass refClass 22 ) { 23 super(object, refClass); 24 } 25 26 public java.math.BigDecimal getBillableAmount ( 30 ) { 31 return (java.math.BigDecimal )this.refGetValue("billableAmount", 0); 32 } 33 protected void setBillableAmount( 37 java.math.BigDecimal newValue 38 ) { 39 refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:billableAmount", 0, newValue); 40 } 41 42 public short getBillingCurrency( 46 ) { 47 return getBillingCurrency(0); 48 } 49 50 protected short getBillingCurrency( 51 int index 52 ) { 53 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:billingCurrency", index)).shortValue(); 54 } 55 56 public void setBillingCurrency( 60 short newValue 61 ) { 62 setBillingCurrency(0, newValue); 63 } 64 65 protected void setBillingCurrency( 66 int index, 67 short newValue 68 ) { 69 refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:billingCurrency", index, new Short (newValue)); 70 } 71 public String getDescription ( 75 ) { 76 return (String )this.refGetValue("description", 0); 77 } 78 public void setDescription( 82 String newValue 83 ) { 84 refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:description", 0, newValue); 85 } 86 87 public short getDurationCalculationMode( 91 ) { 92 return getDurationCalculationMode(0); 93 } 94 95 protected short getDurationCalculationMode( 96 int index 97 ) { 98 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:durationCalculationMode", index)).shortValue(); 99 } 100 101 public void setDurationCalculationMode( 105 short newValue 106 ) { 107 setDurationCalculationMode(0, newValue); 108 } 109 110 protected void setDurationCalculationMode( 111 int index, 112 short newValue 113 ) { 114 refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:durationCalculationMode", index, new Short (newValue)); 115 } 116 public int getDurationHours( 120 ) { 121 return getDurationHours(0); 122 } 123 124 protected int getDurationHours( 125 int index 126 ) { 127 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:durationHours", index)).intValue(); 128 } 129 130 public void setDurationHours( 134 int newValue 135 ) { 136 setDurationHours(0, newValue); 137 } 138 139 protected void setDurationHours( 140 int index, 141 int newValue 142 ) { 143 refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:durationHours", index, new Integer (newValue)); 144 } 145 public int getDurationMinutes( 149 ) { 150 return getDurationMinutes(0); 151 } 152 153 protected int getDurationMinutes( 154 int index 155 ) { 156 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:durationMinutes", index)).intValue(); 157 } 158 159 public void setDurationMinutes( 163 int newValue 164 ) { 165 setDurationMinutes(0, newValue); 166 } 167 168 protected void setDurationMinutes( 169 int index, 170 int newValue 171 ) { 172 refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:durationMinutes", index, new Integer (newValue)); 173 } 174 public java.util.Date getEndedAt ( 178 ) { 179 return (java.util.Date )this.refGetValue("endedAt", 0); 180 } 181 public void setEndedAt( 185 java.util.Date newValue 186 ) { 187 refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:endedAt", 0, newValue); 188 } 189 190 public boolean isBillable( 194 ) { 195 return isBillable(0); 196 } 197 198 protected boolean isBillable( 199 int index 200 ) { 201 return ((Boolean )this.refGetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:isBillable", index)).booleanValue(); 202 } 203 204 public void setBillable( 208 boolean newValue 209 ) { 210 setBillable(0, newValue); 211 } 212 213 protected void setBillable( 214 int index, 215 boolean newValue 216 ) { 217 refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:isBillable", index, new Boolean (newValue)); 218 } 219 public String getName( 223 ) { 224 return getName(0); 225 } 226 227 protected String getName( 228 int index 229 ) { 230 return (String )this.refGetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:name", index); 231 } 232 233 public void setName( 237 String newValue 238 ) { 239 setName(0, newValue); 240 } 241 242 protected void setName( 243 int index, 244 String newValue 245 ) { 246 refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:name", index, newValue); 247 } 248 public Integer getPauseDurationHours ( 252 ) { 253 return (Integer )this.refGetValue("pauseDurationHours", 0); 254 } 255 public void setPauseDurationHours( 259 Integer newValue 260 ) { 261 refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:pauseDurationHours", 0, newValue); 262 } 263 264 public Integer getPauseDurationMinutes ( 268 ) { 269 return (Integer )this.refGetValue("pauseDurationMinutes", 0); 270 } 271 public void setPauseDurationMinutes( 275 Integer newValue 276 ) { 277 refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:pauseDurationMinutes", 0, newValue); 278 } 279 280 public java.math.BigDecimal getRate ( 284 ) { 285 return (java.math.BigDecimal )this.refGetValue("rate", 0); 286 } 287 public void setRate( 291 java.math.BigDecimal newValue 292 ) { 293 refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:rate", 0, newValue); 294 } 295 296 public short getRateType( 300 ) { 301 return getRateType(0); 302 } 303 304 protected short getRateType( 305 int index 306 ) { 307 return ((java.lang.Number )this.refGetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:rateType", index)).shortValue(); 308 } 309 310 public void setRateType( 314 short newValue 315 ) { 316 setRateType(0, newValue); 317 } 318 319 protected void setRateType( 320 int index, 321 short newValue 322 ) { 323 refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:rateType", index, new Short (newValue)); 324 } 325 public java.util.Date getStartedAt ( 329 ) { 330 return (java.util.Date )this.refGetValue("startedAt", 0); 331 } 332 public void setStartedAt( 336 java.util.Date newValue 337 ) { 338 refSetValue("org:opencrx:kernel:activity1:AbstractWorkRecord:startedAt", 0, newValue); 339 } 340 341 public org.opencrx.kernel.depot1.cci.CompoundBooking getWorkCb( 345 ) { 346 return (org.opencrx.kernel.depot1.cci.CompoundBooking)refGetValue( 347 "org:opencrx:kernel:activity1:AbstractWorkRecord:workCb" 348 ); 349 } 350 351 protected void setWorkCb( 355 org.opencrx.kernel.depot1.cci.CompoundBooking newValue 356 ) { 357 refSetValue( 358 "org:opencrx:kernel:activity1:AbstractWorkRecord:workCb", 359 newValue 360 ); 361 } 362 363 protected void removeWorkCb ( 367 ) { 368 refRemoveValue( 369 "org:opencrx:kernel:activity1:AbstractWorkRecord:workCb" 370 ); 371 } 372 public org.openmdx.base.cci.Void assignToMe( 376 org.openmdx.base.cci.Void params 377 ) throws javax.jmi.reflect.RefException { 378 java.util.List args = new java.util.ArrayList (); 379 args.add(params); 380 return (org.openmdx.base.cci.Void)refInvokeOperation( 381 "org:opencrx:kernel:base:Assignable:assignToMe", 382 args 383 ); 384 } 385 386 public org.openmdx.base.cci.Void assignToMe( 387 ) throws javax.jmi.reflect.RefException { 388 return assignToMe( 389 ((org.openmdx.base.cci.basePackage)refOutermostPackage().refPackage("org:openmdx:base")).createVoid( 390 ) 391 ); 392 } 393 394 } 398 | Popular Tags |