KickJava   Java API By Example, From Geeks To Geeks.

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


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 import java.io.Serializable JavaDoc;
20 import org.compiere.util.*;
21
22 /**
23  * Business Partner Contact Interest
24  *
25  * @author Jorg Janke
26  * @version $Id: MContactInterest.java,v 1.3 2003/07/06 18:39:44 jjanke Exp $
27  */

28 public class MContactInterest extends X_R_ContactInterest
29 {
30     /**
31      * Constructor
32      * @param ctx context
33      * @param R_InterestArea_ID interest area
34      * @param AD_User_ID partner contact
35      */

36     public MContactInterest (Properties ctx, int R_InterestArea_ID, int AD_User_ID)
37     {
38         super (ctx, 0);
39         setR_InterestArea_ID (R_InterestArea_ID);
40         setAD_User_ID (AD_User_ID);
41     } // MContactInterest
42

43     /**
44      * Create & Load existing Persistent Object.
45      * @param ctx context
46      * @param rs load from current result set position (no navigation, not closed)
47      */

48     public MContactInterest (Properties ctx, ResultSet rs)
49     {
50         super(ctx, rs);
51     } // MContactInterest
52

53     public String JavaDoc toString ()
54     {
55         StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("MContactInterest[")
56             .append("R_InterestArea_ID=").append(getR_InterestArea_ID())
57             .append(",AD_User_ID=").append(getAD_User_ID())
58             .append ("]");
59         return sb.toString ();
60     }
61
62 } // MContactInterest
63
Popular Tags