KickJava   Java API By Example, From Geeks To Geeks.

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


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.util.*;
17 import java.sql.*;
18 import java.math.*;
19
20 /**
21  * Process Instance Parameter Model
22  *
23  * @author Jorg Janke
24  * @version $Id: MPInstance_Para.java,v 1.3 2003/09/27 01:22:18 jjanke Exp $
25  */

26 public class MPInstance_Para extends X_AD_PInstance_Para
27 {
28
29     public MPInstance_Para (Properties ctx, int AD_PInstance_Para_ID)
30     {
31         super (ctx, AD_PInstance_Para_ID);
32         /**
33         if (AD_PInstance_Para_ID == 0)
34         {
35             setAD_PInstance_ID (0);
36             setSeqNo (0);
37         }
38         */

39     }
40     public MPInstance_Para (Properties ctx, int AD_PInstance_ID, int SeqNo)
41     {
42         super (ctx, 0);
43         setAD_PInstance_ID (AD_PInstance_ID);
44         setSeqNo (SeqNo);
45     }
46
47     public MPInstance_Para (Properties ctx, ResultSet rs)
48     {
49         super (ctx, rs);
50     }
51
52     public String JavaDoc toString ()
53     {
54         StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("MPInstance_Para[")
55             .append (getID ())
56             .append ("]");
57         return sb.toString ();
58     }
59
60     public void setP_Number (int P_Number)
61     {
62         setP_Number (new BigDecimal(P_Number));
63     }
64
65     public void setP_Number_To (int P_Number_To)
66     {
67         setP_Number_To (new BigDecimal(P_Number_To));
68     }
69
70 } // MPInstance_Para
71
Popular Tags