KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > model > MProduct


1 /******************************************************************************
2  * The contents of this file are subject to the Compiere License Version 1.1
3  * ("License"); You may not use this file except in compliance with the License
4  * You may obtain a copy of the License at http://www.compiere.org/license.html
5  * Software distributed under the License is distributed on an "AS IS" basis,
6  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
7  * the specific language governing rights and limitations under the License.
8  * The Original Code is Compiere ERP & CRM Smart Business Solution
9  * The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc.
10  * Portions created by Jorg Janke are Copyright (C) 1999-2003 Jorg Janke, parts
11  * created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved.
12  * Contributor(s): ______________________________________.
13  *****************************************************************************/

14 package org.compiere.model;
15
16 import java.sql.*;
17 import java.util.*;
18 import java.math.*;
19
20 import org.compiere.util.*;
21
22 /**
23  * Product Model
24  *
25  * @author Jorg Janke
26  * @version $Id: MProduct.java,v 1.1 2003/09/05 04:59:48 jjanke Exp $
27  */

28 public class MProduct extends X_M_Product
29 {
30
31     /**
32      * Standard Constructor
33      * @param ctx context
34      * @param M_Product_ID id
35      */

36     public MProduct (Properties ctx, int M_Product_ID)
37     {
38         super (ctx, M_Product_ID);
39         /** if (M_Product_ID == 0)
40         {
41              setC_TaxCategory_ID (0);
42              setC_UOM_ID (0);
43              setIsBOM (false);
44              setIsInvoicePrintDetails (false);
45              setIsPickListPrintDetails (false);
46              setIsPurchased (false);
47              setIsSold (false);
48              setIsStocked (false);
49              setIsSummary (false);
50              setIsVerified (false);
51              setM_Product_Category_ID (0);
52              setM_Product_ID (0);
53              setName (null);
54              setProcessing (null);
55              setProductType (null);
56              setValue (null);
57         }
58         **/

59     } // MProduct
60

61     /**
62      * Load constructor
63      * @param ctx context
64      * @param rs result set
65      */

66     public MProduct (Properties ctx, ResultSet rs)
67     {
68         super (ctx, rs);
69     } // MProduct
70

71
72 } // MProduct
73
Popular Tags