[ 2528434 ] ModelInterfaceGenerator: generate getters for common fields

https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2528434&group_id=176962

libero: generated PP_Product_Planning model as a demo
This commit is contained in:
teo_sarca 2009-01-23 08:33:39 +00:00
parent 26ce6b55f9
commit 945cfeefc4
2 changed files with 69 additions and 11 deletions

View File

@ -20,6 +20,7 @@
package org.eevolution.model; package org.eevolution.model;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.sql.Timestamp;
import org.compiere.model.*; import org.compiere.model.*;
import org.compiere.util.KeyNamePair; import org.compiere.util.KeyNamePair;
@ -44,6 +45,14 @@ public interface I_PP_Product_Planning
/** Load Meta Data */ /** Load Meta Data */
/** Column name AD_Client_ID */
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
/** Get Client.
* Client/Tenant for this installation.
*/
public int getAD_Client_ID();
/** Column name AD_Org_ID */ /** Column name AD_Org_ID */
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID"; public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
@ -72,6 +81,22 @@ public interface I_PP_Product_Planning
public I_AD_Workflow getAD_Workflow() throws RuntimeException; public I_AD_Workflow getAD_Workflow() throws RuntimeException;
/** Column name Created */
public static final String COLUMNNAME_Created = "Created";
/** Get Created.
* Date this record was created
*/
public Timestamp getCreated();
/** Column name CreatedBy */
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
/** Get Created By.
* User who created this records
*/
public int getCreatedBy();
/** Column name DD_NetworkDistribution_ID */ /** Column name DD_NetworkDistribution_ID */
public static final String COLUMNNAME_DD_NetworkDistribution_ID = "DD_NetworkDistribution_ID"; public static final String COLUMNNAME_DD_NetworkDistribution_ID = "DD_NetworkDistribution_ID";
@ -96,13 +121,30 @@ public interface I_PP_Product_Planning
*/ */
public BigDecimal getDeliveryTime_Promised(); public BigDecimal getDeliveryTime_Promised();
/** Column name IsActive */
public static final String COLUMNNAME_IsActive = "IsActive";
/** Set Active.
* The record is active in the system
*/
public void setIsActive (boolean IsActive);
/** Get Active.
* The record is active in the system
*/
public boolean isActive();
/** Column name IsCreatePlan */ /** Column name IsCreatePlan */
public static final String COLUMNNAME_IsCreatePlan = "IsCreatePlan"; public static final String COLUMNNAME_IsCreatePlan = "IsCreatePlan";
/** Set Is Create Plan */ /** Set Create Plan.
* Indicates whether planned orders will be generated by MRP
*/
public void setIsCreatePlan (boolean IsCreatePlan); public void setIsCreatePlan (boolean IsCreatePlan);
/** Get Is Create Plan */ /** Get Create Plan.
* Indicates whether planned orders will be generated by MRP
*/
public boolean isCreatePlan(); public boolean isCreatePlan();
/** Column name IsMPS */ /** Column name IsMPS */
@ -316,6 +358,22 @@ public interface I_PP_Product_Planning
/** Get Transfert Time */ /** Get Transfert Time */
public BigDecimal getTransfertTime(); public BigDecimal getTransfertTime();
/** Column name Updated */
public static final String COLUMNNAME_Updated = "Updated";
/** Get Updated.
* Date this record was updated
*/
public Timestamp getUpdated();
/** Column name UpdatedBy */
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
/** Get Updated By.
* User who updated this records
*/
public int getUpdatedBy();
/** Column name WorkingTime */ /** Column name WorkingTime */
public static final String COLUMNNAME_WorkingTime = "WorkingTime"; public static final String COLUMNNAME_WorkingTime = "WorkingTime";

View File

@ -34,7 +34,7 @@ public class X_PP_Product_Planning extends PO implements I_PP_Product_Planning,
/** /**
* *
*/ */
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 20081221L;
/** Standard Constructor */ /** Standard Constructor */
public X_PP_Product_Planning (Properties ctx, int PP_Product_Planning_ID, String trxName) public X_PP_Product_Planning (Properties ctx, int PP_Product_Planning_ID, String trxName)
@ -174,15 +174,18 @@ public class X_PP_Product_Planning extends PO implements I_PP_Product_Planning,
return bd; return bd;
} }
/** Set Is Create Plan. /** Set Create Plan.
@param IsCreatePlan Is Create Plan */ @param IsCreatePlan
Indicates whether planned orders will be generated by MRP
*/
public void setIsCreatePlan (boolean IsCreatePlan) public void setIsCreatePlan (boolean IsCreatePlan)
{ {
set_Value (COLUMNNAME_IsCreatePlan, Boolean.valueOf(IsCreatePlan)); set_Value (COLUMNNAME_IsCreatePlan, Boolean.valueOf(IsCreatePlan));
} }
/** Get Is Create Plan. /** Get Create Plan.
@return Is Create Plan */ @return Indicates whether planned orders will be generated by MRP
*/
public boolean isCreatePlan () public boolean isCreatePlan ()
{ {
Object oo = get_Value(COLUMNNAME_IsCreatePlan); Object oo = get_Value(COLUMNNAME_IsCreatePlan);
@ -446,10 +449,7 @@ public class X_PP_Product_Planning extends PO implements I_PP_Product_Planning,
public void setOrder_Policy (String Order_Policy) public void setOrder_Policy (String Order_Policy)
{ {
if (Order_Policy == null || Order_Policy.equals("FOQ") || Order_Policy.equals("LFL") || Order_Policy.equals("POQ")); if (Order_Policy == null || Order_Policy.equals("FOQ") || Order_Policy.equals("LFL") || Order_Policy.equals("POQ")); else throw new IllegalArgumentException ("Order_Policy Invalid value - " + Order_Policy + " - Reference_ID=53228 - FOQ - LFL - POQ"); set_Value (COLUMNNAME_Order_Policy, Order_Policy);
else throw new IllegalArgumentException ("Order_Policy Invalid value - " + Order_Policy + " - Reference_ID=53228 - FOQ - LFL - POQ");
set_Value (COLUMNNAME_Order_Policy, Order_Policy);
} }
/** Get Order Policy. /** Get Order Policy.