1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422
| package com.redsamurai.model.views;
import oracle.adf.share.ADFContext;
import oracle.jbo.ApplicationModule;
import oracle.jbo.ViewObject;
import oracle.jbo.domain.Date;
import oracle.jbo.server.AttributeDefImpl;
import oracle.jbo.server.ViewRowImpl;
// ---------------------------------------------------------------------
// --- File generated by Oracle ADF Business Components Design Time.
// --- Mon Sep 02 14:13:52 GMT 2013
// --- Custom code may be added to this class.
// --- Warning: Do not modify method signatures of generated methods.
// ---------------------------------------------------------------------
public class EnteteRowImpl extends ViewRowImpl {
/**
* AttributesEnum: generated enum for identifying attributes and accessors. DO NOT MODIFY.
*/
public enum AttributesEnum {
matricule {
public Object get(EnteteRowImpl obj) {
return obj.getmatricule();
}
public void put(EnteteRowImpl obj, Object value) {
obj.setAttributeInternal(index(), value);
}
}
,
nom {
public Object get(EnteteRowImpl obj) {
return obj.getnom();
}
public void put(EnteteRowImpl obj, Object value) {
obj.setAttributeInternal(index(), value);
}
}
,
prenom {
public Object get(EnteteRowImpl obj) {
return obj.getprenom();
}
public void put(EnteteRowImpl obj, Object value) {
obj.setAttributeInternal(index(), value);
}
}
,
civilite {
public Object get(EnteteRowImpl obj) {
return obj.getcivilite();
}
public void put(EnteteRowImpl obj, Object value) {
obj.setAttributeInternal(index(), value);
}
}
,
login {
public Object get(EnteteRowImpl obj) {
return obj.getlogin();
}
public void put(EnteteRowImpl obj, Object value) {
obj.setAttributeInternal(index(), value);
}
}
,
pwd {
public Object get(EnteteRowImpl obj) {
return obj.getpwd();
}
public void put(EnteteRowImpl obj, Object value) {
obj.setAttributeInternal(index(), value);
}
}
,
status {
public Object get(EnteteRowImpl obj) {
return obj.getstatus();
}
public void put(EnteteRowImpl obj, Object value) {
obj.setAttributeInternal(index(), value);
}
}
,
lockdate {
public Object get(EnteteRowImpl obj) {
return obj.getlockdate();
}
public void put(EnteteRowImpl obj, Object value) {
obj.setAttributeInternal(index(), value);
}
}
,
date_debut {
public Object get(EnteteRowImpl obj) {
return obj.getdate_debut();
}
public void put(EnteteRowImpl obj, Object value) {
obj.setAttributeInternal(index(), value);
}
}
,
date_fin {
public Object get(EnteteRowImpl obj) {
return obj.getdate_fin();
}
public void put(EnteteRowImpl obj, Object value) {
obj.setAttributeInternal(index(), value);
}
}
,
pc_code {
public Object get(EnteteRowImpl obj) {
return obj.getpc_code();
}
public void put(EnteteRowImpl obj, Object value) {
obj.setAttributeInternal(index(), value);
}
}
,
pc_libelle {
public Object get(EnteteRowImpl obj) {
return obj.getpc_libelle();
}
public void put(EnteteRowImpl obj, Object value) {
obj.setAttributeInternal(index(), value);
}
}
,
pcc {
public Object get(EnteteRowImpl obj) {
return obj.getpcc();
}
public void put(EnteteRowImpl obj, Object value) {
obj.setAttributeInternal(index(), value);
}
}
,
adm {
public Object get(EnteteRowImpl obj) {
return obj.getadm();
}
public void put(EnteteRowImpl obj, Object value) {
obj.setAttributeInternal(index(), value);
}
}
,
pctype {
public Object get(EnteteRowImpl obj) {
return obj.getpctype();
}
public void put(EnteteRowImpl obj, Object value) {
obj.setAttributeInternal(index(), value);
}
}
,
profil_code {
public Object get(EnteteRowImpl obj) {
return obj.getprofil_code();
}
public void put(EnteteRowImpl obj, Object value) {
obj.setAttributeInternal(index(), value);
}
}
,
profil_liibelle {
public Object get(EnteteRowImpl obj) {
return obj.getprofil_liibelle();
}
public void put(EnteteRowImpl obj, Object value) {
obj.setAttributeInternal(index(), value);
}
}
;
private static AttributesEnum[] vals = null;
private static final int firstIndex = 0;
public abstract Object get(EnteteRowImpl object);
public abstract void put(EnteteRowImpl object, Object value);
public int index() {
return EnteteRowImpl.AttributesEnum.firstIndex() + ordinal();
}
public static final int firstIndex() {
return firstIndex;
}
public static int count() {
return EnteteRowImpl.AttributesEnum.firstIndex() + EnteteRowImpl.AttributesEnum.staticValues().length;
}
public static final AttributesEnum[] staticValues() {
if (vals == null) {
vals = EnteteRowImpl.AttributesEnum.values();
}
return vals;
}
}
public static final int MATRICULE = AttributesEnum.matricule.index();
public static final int NOM = AttributesEnum.nom.index();
public static final int PRENOM = AttributesEnum.prenom.index();
public static final int CIVILITE = AttributesEnum.civilite.index();
public static final int LOGIN = AttributesEnum.login.index();
public static final int PWD = AttributesEnum.pwd.index();
public static final int STATUS = AttributesEnum.status.index();
public static final int LOCKDATE = AttributesEnum.lockdate.index();
public static final int DATE_DEBUT = AttributesEnum.date_debut.index();
public static final int DATE_FIN = AttributesEnum.date_fin.index();
public static final int PC_CODE = AttributesEnum.pc_code.index();
public static final int PC_LIBELLE = AttributesEnum.pc_libelle.index();
public static final int PCC = AttributesEnum.pcc.index();
public static final int ADM = AttributesEnum.adm.index();
public static final int PCTYPE = AttributesEnum.pctype.index();
public static final int PROFIL_CODE = AttributesEnum.profil_code.index();
public static final int PROFIL_LIIBELLE = AttributesEnum.profil_liibelle.index();
/**
* This is the default constructor (do not remove).
*/
public EnteteRowImpl() {
}
/**
* Gets the attribute value for the calculated attribute matricule.
* @return the matricule
*/
public String getmatricule() {
return (String) getAttributeInternal(MATRICULE);
}
/**
* Gets the attribute value for the calculated attribute nom.
* @return the nom
*/
public String getnom() {
return (String) getAttributeInternal(NOM);
}
/**
* Gets the attribute value for the calculated attribute prenom.
* @return the prenom
*/
public String getprenom() {
return (String) getAttributeInternal(PRENOM);
}
/**
* Gets the attribute value for the calculated attribute civilite.
* @return the civilite
*/
public String getcivilite() {
return (String) getAttributeInternal(CIVILITE);
}
/**
* Gets the attribute value for the calculated attribute login.
* @return the login
*/
public String getlogin() {
return (String) getAttributeInternal(LOGIN);
}
/**
* Gets the attribute value for the calculated attribute pwd.
* @return the pwd
*/
public String getpwd() {
return (String) getAttributeInternal(PWD);
}
/**
* Gets the attribute value for the calculated attribute status.
* @return the status
*/
public String getstatus() {
return (String) getAttributeInternal(STATUS);
}
/**
* Gets the attribute value for the calculated attribute lockdate.
* @return the lockdate
*/
public Date getlockdate() {
return (Date) getAttributeInternal(LOCKDATE);
}
/**
* Gets the attribute value for the calculated attribute date_debut.
* @return the date_debut
*/
public Date getdate_debut() {
return (Date) getAttributeInternal(DATE_DEBUT);
}
/**
* Gets the attribute value for the calculated attribute date_fin.
* @return the date_fin
*/
public Date getdate_fin() {
return (Date) getAttributeInternal(DATE_FIN);
}
/**
* Gets the attribute value for the calculated attribute pc_code.
* @return the pc_code
*/
public String getpc_code() {
return (String) getAttributeInternal(PC_CODE);
}
/**
* Gets the attribute value for the calculated attribute pc_libelle.
* @return the pc_libelle
*/
public String getpc_libelle() {
return (String) getAttributeInternal(PC_LIBELLE);
}
/**
* Gets the attribute value for the calculated attribute pcc.
* @return the pcc
*/
public String getpcc() {
return (String) getAttributeInternal(PCC);
}
/**
* Gets the attribute value for the calculated attribute adm.
* @return the adm
*/
public String getadm() {
return (String) getAttributeInternal(ADM);
}
/**
* Gets the attribute value for the calculated attribute pctype.
* @return the pctype
*/
public String getpctype() {
return (String) getAttributeInternal(PCTYPE);
}
/**
* Gets the attribute value for the calculated attribute profil_code.
* @return the profil_code
*/
public String getprofil_code() {
return (String) getAttributeInternal(PROFIL_CODE);
}
/**
* Gets the attribute value for the calculated attribute profil_liibelle.
* @return the profil_liibelle
*/
public String getprofil_liibelle() {
return (String) getAttributeInternal(PROFIL_LIIBELLE);
}
/**
* getAttrInvokeAccessor: generated method. Do not modify.
* @param index the index identifying the attribute
* @param attrDef the attribute
* @return the attribute value
* @throws Exception
*/
protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef) throws Exception {
if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
return AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].get(this);
}
return super.getAttrInvokeAccessor(index, attrDef);
}
/**
* setAttrInvokeAccessor: generated method. Do not modify.
* @param index the index identifying the attribute
* @param value the value to assign to the attribute
* @param attrDef the attribute
* @throws Exception
*/
protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef) throws Exception {
if ((index >= AttributesEnum.firstIndex()) && (index < AttributesEnum.count())) {
AttributesEnum.staticValues()[index - AttributesEnum.firstIndex()].put(this, value);
return;
}
super.setAttrInvokeAccessor(index, value, attrDef);
}
public ViewObject getViewData() {
ApplicationModule am = this.getApplicationModule();
if ( am == null ) {
System.out.println("ApplicationModule is null");
}
else{
System.out.println("ApplicationModule is not null");
}
ViewObject vo = (ViewObject)am.findViewObject("Entete1");
vo.setNamedWhereClauseParam("p_user", "alj");
//vo.setNamedWhereClauseParam("p_user", ADFContext.getCurrent().getSecurityContext().getUserName());
vo.executeQuery();
return vo;
}
} |
Partager