// --------------------------------------------------------------------- // --- File generated by Oracle ADF Business Components Design Time. // --- Tue May 22 13:05:30 GMT+04:00 2012 // --- Custom code may be added to this class. // --- Warning: Do not modify method signatures of generated methods. // --------------------------------------------------------------------- public class LibUserVoRowImpl extends TemplateViewRow { /** AttributesEnum: generated enum for identifying attributes and accessors. Do not modify. */ public enum AttributesEnum { Enable { public Object get(LibUserVoRowImpl obj) { return obj.getEnable(); } public void put(LibUserVoRowImpl obj, Object value) { obj.setEnable((Number) value); } }, Labcol { public Object get(LibUserVoRowImpl obj) { return obj.getLabcol(); } public void put(LibUserVoRowImpl obj, Object value) { obj.setLabcol((Number) value); } }, Name { public Object get(LibUserVoRowImpl obj) { return obj.getName(); } public void put(LibUserVoRowImpl obj, Object value) { obj.setName((String) value); } }, Password { public Object get(LibUserVoRowImpl obj) { return obj.getPassword(); } public void put(LibUserVoRowImpl obj, Object value) { obj.setPassword((String) value); } }, UserName { public Object get(LibUserVoRowImpl obj) { return obj.getUserName(); } public void put(LibUserVoRowImpl obj, Object value) { obj.setUserName((String) value); } }, LibUserRoleVo { public Object get(LibUserVoRowImpl obj) { return obj.getLibUserRoleVo(); } public void put(LibUserVoRowImpl obj, Object value) { obj.setAttributeInternal(index(), value); } }, Library { public Object get(LibUserVoRowImpl obj) { return obj.getLibrary(); } public void put(LibUserVoRowImpl obj, Object value) { obj.setAttributeInternal(index(), value); } }, LibRoleVO1 { public Object get(LibUserVoRowImpl obj) { return obj.getLibRoleVO1(); } public void put(LibUserVoRowImpl obj, Object value) { obj.setAttributeInternal(index(), value); } }, LibRoleVO { public Object get(LibUserVoRowImpl obj) { return obj.getLibRoleVO(); } public void put(LibUserVoRowImpl obj, Object value) { obj.setAttributeInternal(index(), value); } }, Library1 { public Object get(LibUserVoRowImpl obj) { return obj.getLibrary1(); } public void put(LibUserVoRowImpl obj, Object value) { obj.setAttributeInternal(index(), value); } }; private static AttributesEnum[] vals = null; private static int firstIndex = 0; public abstract Object get(LibUserVoRowImpl object); public abstract void put(LibUserVoRowImpl object, Object value); public int index() { return AttributesEnum.firstIndex() + ordinal(); } public static int firstIndex() { return firstIndex; } public static int count() { return AttributesEnum.firstIndex() + AttributesEnum.staticValues().length; } public static AttributesEnum[] staticValues() { if (vals == null) { vals = AttributesEnum.values(); } return vals; } } public static final int ENABLE = AttributesEnum.Enable.index(); public static final int LABCOL = AttributesEnum.Labcol.index(); public static final int NAME = AttributesEnum.Name.index(); public static final int PASSWORD = AttributesEnum.Password.index(); public static final int USERNAME = AttributesEnum.UserName.index(); public static final int LIBUSERROLEVO = AttributesEnum.LibUserRoleVo.index(); public static final int LIBRARY = AttributesEnum.Library.index(); public static final int LIBROLEVO1 = AttributesEnum.LibRoleVO1.index(); public static final int LIBROLEVO = AttributesEnum.LibRoleVO.index(); public static final int LIBRARY1 = AttributesEnum.Library1.index(); /** This is the default constructor (do not remove). */ public LibUserVoRowImpl() {} /** * Gets LibUser entity object. * * @return the LibUser */ public EntityImpl getLibUser() { return (EntityImpl) getEntity(0); } /** * Gets the attribute value for ENABLE using the alias name Enable. * * @return the ENABLE */ public Number getEnable() { return (Number) getAttributeInternal(ENABLE); } /** * Sets <code>value</code> as attribute value for ENABLE using the alias name Enable. * * @param value value to set the ENABLE */ public void setEnable(Number value) { setAttributeInternal(ENABLE, value); } /** * Gets the attribute value for LABCOL using the alias name Labcol. * * @return the LABCOL */ public Number getLabcol() { return (Number) getAttributeInternal(LABCOL); } /** * Sets <code>value</code> as attribute value for LABCOL using the alias name Labcol. * * @param value value to set the LABCOL */ public void setLabcol(Number value) { setAttributeInternal(LABCOL, value); } /** * Gets the attribute value for NAME using the alias name Name. * * @return the NAME */ public String getName() { return (String) getAttributeInternal(NAME); } /** * Sets <code>value</code> as attribute value for NAME using the alias name Name. * * @param value value to set the NAME */ public void setName(String value) { setAttributeInternal(NAME, value); } /** * Gets the attribute value for PASSWORD using the alias name Password. * * @return the PASSWORD */ public String getPassword() { return (String) getAttributeInternal(PASSWORD); } /** * Sets <code>value</code> as attribute value for PASSWORD using the alias name Password. * * @param value value to set the PASSWORD */ public void setPassword(String value) { setAttributeInternal(PASSWORD, value); } /** * Gets the attribute value for USER_NAME using the alias name UserName. * * @return the USER_NAME */ public String getUserName() { return (String) getAttributeInternal(USERNAME); } /** * Sets <code>value</code> as attribute value for USER_NAME using the alias name UserName. * * @param value value to set the USER_NAME */ public void setUserName(String value) { setAttributeInternal(USERNAME, value); } /** Gets the associated <code>RowIterator</code> using master-detail link LibUserRoleVo. */ public RowIterator getLibUserRoleVo() { return (RowIterator) getAttributeInternal(LIBUSERROLEVO); } /** Gets the associated <code>RowIterator</code> using master-detail link Library. */ public RowIterator getLibrary() { return (RowIterator) getAttributeInternal(LIBRARY); } /** Gets the associated <code>RowIterator</code> using master-detail link LibRoleVO1. */ public RowIterator getLibRoleVO1() { return (RowIterator) getAttributeInternal(LIBROLEVO1); } /** Gets the associated <code>RowIterator</code> using master-detail link LibRoleVO. */ public RowIterator getLibRoleVO() { return (RowIterator) getAttributeInternal(LIBROLEVO); } /** Gets the view accessor <code>RowSet</code> Library1. */ public RowSet getLibrary1() { return (RowSet) getAttributeInternal(LIBRARY1); } /** * 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); } }
// --------------------------------------------------------------------- // --- File generated by Oracle ADF Business Components Design Time. // --- Mon Jul 22 00:41:39 PDT 2013 // --- Custom code may be added to this class. // --- Warning: Do not modify method signatures of generated methods. // --------------------------------------------------------------------- public class ManufactureServiceLovRowImpl extends TemplateViewRow { /** AttributesEnum: generated enum for identifying attributes and accessors. DO NOT MODIFY. */ public enum AttributesEnum { Id { public Object get(ManufactureServiceLovRowImpl obj) { return obj.getId(); } public void put(ManufactureServiceLovRowImpl obj, Object value) { obj.setId((Number) value); } }, Name { public Object get(ManufactureServiceLovRowImpl obj) { return obj.getName(); } public void put(ManufactureServiceLovRowImpl obj, Object value) { obj.setName((String) value); } }, SupplierStatus { public Object get(ManufactureServiceLovRowImpl obj) { return obj.getSupplierStatus(); } public void put(ManufactureServiceLovRowImpl obj, Object value) { obj.setSupplierStatus((Number) value); } }, SupplierType { public Object get(ManufactureServiceLovRowImpl obj) { return obj.getSupplierType(); } public void put(ManufactureServiceLovRowImpl obj, Object value) { obj.setSupplierType((Number) value); } }, ActFname { public Object get(ManufactureServiceLovRowImpl obj) { return obj.getActFname(); } public void put(ManufactureServiceLovRowImpl obj, Object value) { obj.setActFname((String) value); } }, ActLname { public Object get(ManufactureServiceLovRowImpl obj) { return obj.getActLname(); } public void put(ManufactureServiceLovRowImpl obj, Object value) { obj.setActLname((String) value); } }, SmartName { public Object get(ManufactureServiceLovRowImpl obj) { return obj.getSmartName(); } public void put(ManufactureServiceLovRowImpl obj, Object value) { obj.setSmartName((String) value); } }; private static AttributesEnum[] vals = null; private static final int firstIndex = 0; public abstract Object get(ManufactureServiceLovRowImpl object); public abstract void put(ManufactureServiceLovRowImpl object, Object value); public int index() { return AttributesEnum.firstIndex() + ordinal(); } public static final int firstIndex() { return firstIndex; } public static int count() { return AttributesEnum.firstIndex() + AttributesEnum.staticValues().length; } public static final AttributesEnum[] staticValues() { if (vals == null) { vals = AttributesEnum.values(); } return vals; } } public static final int ID = AttributesEnum.Id.index(); public static final int NAME = AttributesEnum.Name.index(); public static final int SUPPLIERSTATUS = AttributesEnum.SupplierStatus.index(); public static final int SUPPLIERTYPE = AttributesEnum.SupplierType.index(); public static final int ACTFNAME = AttributesEnum.ActFname.index(); public static final int ACTLNAME = AttributesEnum.ActLname.index(); public static final int SMARTNAME = AttributesEnum.SmartName.index(); /** This is the default constructor (do not remove). */ public ManufactureServiceLovRowImpl() {} /** * Gets the attribute value for the calculated attribute Id. * * @return the Id */ public Number getId() { return (Number) getAttributeInternal(ID); } /** * Sets <code>value</code> as the attribute value for the calculated attribute Id. * * @param value value to set the Id */ public void setId(Number value) { setAttributeInternal(ID, value); } /** * Gets the attribute value for the calculated attribute Name. * * @return the Name */ public String getName() { return (String) getAttributeInternal(NAME); } /** * Sets <code>value</code> as the attribute value for the calculated attribute Name. * * @param value value to set the Name */ public void setName(String value) { setAttributeInternal(NAME, value); } /** * Gets the attribute value for the calculated attribute SupplierStatus. * * @return the SupplierStatus */ public Number getSupplierStatus() { return (Number) getAttributeInternal(SUPPLIERSTATUS); } /** * Sets <code>value</code> as the attribute value for the calculated attribute SupplierStatus. * * @param value value to set the SupplierStatus */ public void setSupplierStatus(Number value) { setAttributeInternal(SUPPLIERSTATUS, value); } /** * Gets the attribute value for the calculated attribute SupplierType. * * @return the SupplierType */ public Number getSupplierType() { return (Number) getAttributeInternal(SUPPLIERTYPE); } /** * Sets <code>value</code> as the attribute value for the calculated attribute SupplierType. * * @param value value to set the SupplierType */ public void setSupplierType(Number value) { setAttributeInternal(SUPPLIERTYPE, value); } /** * Gets the attribute value for the calculated attribute ActFname. * * @return the ActFname */ public String getActFname() { return (String) getAttributeInternal(ACTFNAME); } /** * Sets <code>value</code> as the attribute value for the calculated attribute ActFname. * * @param value value to set the ActFname */ public void setActFname(String value) { setAttributeInternal(ACTFNAME, value); } /** * Gets the attribute value for the calculated attribute ActLname. * * @return the ActLname */ public String getActLname() { return (String) getAttributeInternal(ACTLNAME); } /** * Sets <code>value</code> as the attribute value for the calculated attribute ActLname. * * @param value value to set the ActLname */ public void setActLname(String value) { setAttributeInternal(ACTLNAME, value); } /** * Gets the attribute value for the calculated attribute SmartName. * * @return the SmartName */ public String getSmartName() { // return (String) getAttributeInternal(SMARTNAME); if (new Number(2).equals(getSupplierStatus())) { return getActFname() + " " + getActLname(); } return getName(); } /** * Sets <code>value</code> as the attribute value for the calculated attribute SmartName. * * @param value value to set the SmartName */ public void setSmartName(String value) { setAttributeInternal(SMARTNAME, value); } /** * 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); } }