Model classes for the last generated tables

This commit is contained in:
Carlos Ruiz 2008-05-30 00:32:53 +00:00
parent 12e8fe3f30
commit bb17d5aaf8
4 changed files with 132 additions and 35 deletions

View File

@ -103,6 +103,28 @@ public interface I_PP_MRP
public I_C_Order getC_Order() throws Exception;
/** Column name DD_OrderLine_ID */
public static final String COLUMNNAME_DD_OrderLine_ID = "DD_OrderLine_ID";
/** Set Distribution Order Line */
public void setDD_OrderLine_ID (int DD_OrderLine_ID);
/** Get Distribution Order Line */
public int getDD_OrderLine_ID();
public org.eevolution.model.I_DD_OrderLine getDD_OrderLine() throws Exception;
/** Column name DD_Order_ID */
public static final String COLUMNNAME_DD_Order_ID = "DD_Order_ID";
/** Set Distribution Order */
public void setDD_Order_ID (int DD_Order_ID);
/** Get Distribution Order */
public int getDD_Order_ID();
public org.eevolution.model.I_DD_Order getDD_Order() throws Exception;
/** Column name DateConfirm */
public static final String COLUMNNAME_DateConfirm = "DateConfirm";

View File

@ -58,6 +58,19 @@ public interface I_PP_Order_BOMLine
/** Load Meta Data */
/** Column name AD_User_ID */
public static final String COLUMNNAME_AD_User_ID = "AD_User_ID";
/** Set User/Contact.
* User within the system - Internal or Business Partner Contact
*/
public void setAD_User_ID (int AD_User_ID);
/** Get User/Contact.
* User within the system - Internal or Business Partner Contact
*/
public int getAD_User_ID();
/** Column name Assay */
public static final String COLUMNNAME_Assay = "Assay";
@ -458,19 +471,6 @@ public interface I_PP_Order_BOMLine
*/
public BigDecimal getScrap();
/** Column name UserID */
public static final String COLUMNNAME_UserID = "UserID";
/** Set User ID.
* User ID or account number
*/
public void setUserID (int UserID);
/** Get User ID.
* User ID or account number
*/
public int getUserID();
/** Column name ValidFrom */
public static final String COLUMNNAME_ValidFrom = "ValidFrom";

View File

@ -197,6 +197,78 @@ public class X_PP_MRP extends PO implements I_PP_MRP, I_Persistent
return ii.intValue();
}
public org.eevolution.model.I_DD_OrderLine getDD_OrderLine() throws Exception
{
Class<?> clazz = MTable.getClass(org.eevolution.model.I_DD_OrderLine.Table_Name);
org.eevolution.model.I_DD_OrderLine result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (org.eevolution.model.I_DD_OrderLine)constructor.newInstance(new Object[] {getCtx(), new Integer(getDD_OrderLine_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set Distribution Order Line.
@param DD_OrderLine_ID Distribution Order Line */
public void setDD_OrderLine_ID (int DD_OrderLine_ID)
{
if (DD_OrderLine_ID < 1)
set_Value (COLUMNNAME_DD_OrderLine_ID, null);
else
set_Value (COLUMNNAME_DD_OrderLine_ID, Integer.valueOf(DD_OrderLine_ID));
}
/** Get Distribution Order Line.
@return Distribution Order Line */
public int getDD_OrderLine_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_DD_OrderLine_ID);
if (ii == null)
return 0;
return ii.intValue();
}
public org.eevolution.model.I_DD_Order getDD_Order() throws Exception
{
Class<?> clazz = MTable.getClass(org.eevolution.model.I_DD_Order.Table_Name);
org.eevolution.model.I_DD_Order result = null;
try {
Constructor<?> constructor = null;
constructor = clazz.getDeclaredConstructor(new Class[]{Properties.class, int.class, String.class});
result = (org.eevolution.model.I_DD_Order)constructor.newInstance(new Object[] {getCtx(), new Integer(getDD_Order_ID()), get_TrxName()});
} catch (Exception e) {
log.log(Level.SEVERE, "(id) - Table=" + Table_Name + ",Class=" + clazz, e);
log.saveError("Error", "Table=" + Table_Name + ",Class=" + clazz);
throw e;
}
return result;
}
/** Set Distribution Order.
@param DD_Order_ID Distribution Order */
public void setDD_Order_ID (int DD_Order_ID)
{
if (DD_Order_ID < 1)
set_Value (COLUMNNAME_DD_Order_ID, null);
else
set_Value (COLUMNNAME_DD_Order_ID, Integer.valueOf(DD_Order_ID));
}
/** Get Distribution Order.
@return Distribution Order */
public int getDD_Order_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_DD_Order_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set DateConfirm.
@param DateConfirm DateConfirm */
public void setDateConfirm (Timestamp DateConfirm)

View File

@ -94,6 +94,31 @@ public class X_PP_Order_BOMLine extends PO implements I_PP_Order_BOMLine, I_Pers
return sb.toString();
}
/** AD_User_ID AD_Reference_ID=286 */
public static final int AD_USER_ID_AD_Reference_ID=286;
/** Set User/Contact.
@param AD_User_ID
User within the system - Internal or Business Partner Contact
*/
public void setAD_User_ID (int AD_User_ID)
{
if (AD_User_ID < 1)
set_Value (COLUMNNAME_AD_User_ID, null);
else
set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
}
/** Get User/Contact.
@return User within the system - Internal or Business Partner Contact
*/
public int getAD_User_ID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Quantity Assay.
@param Assay
Indicated the Quantity Assay to use into Quality Order
@ -903,28 +928,6 @@ public class X_PP_Order_BOMLine extends PO implements I_PP_Order_BOMLine, I_Pers
return bd;
}
/** UserID AD_Reference_ID=286 */
public static final int USERID_AD_Reference_ID=286;
/** Set User ID.
@param UserID
User ID or account number
*/
public void setUserID (int UserID)
{
set_Value (COLUMNNAME_UserID, Integer.valueOf(UserID));
}
/** Get User ID.
@return User ID or account number
*/
public int getUserID ()
{
Integer ii = (Integer)get_Value(COLUMNNAME_UserID);
if (ii == null)
return 0;
return ii.intValue();
}
/** Set Valid from.
@param ValidFrom
Valid from including this date (first day)