KickJava   Java API By Example, From Geeks To Geeks.

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


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
19 /**
20  * Product Attribute Set
21  *
22  * @author Jorg Janke
23  * @version $Id: MAttributeInstance.java,v 1.1 2003/08/26 17:30:35 jjanke Exp $
24  */

25 public class MAttributeInstance extends X_M_AttributeInstance
26 {
27     /**
28      * Standard Constructor
29      * @param ctx context
30      * @param M_AttributeInstance_ID id
31      */

32     public MAttributeInstance (Properties ctx, int M_AttributeInstance_ID)
33     {
34         super (ctx, M_AttributeInstance_ID);
35         /** if (M_AttributeInstance_ID == 0)
36         {
37         setM_AttributeSetInstance_ID (0);
38         setM_Attribute_ID (0);
39         }
40         **/

41     } // MAttributeInstance
42

43     /**
44      * Load Cosntructor
45      * @param ctx context
46      * @param rs result set
47      */

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

53     /**
54      * String Value Constructior
55      * @param ctx context
56      * @param M_Attribute_ID attribute
57      * @param M_AttributeSetInstance_ID instance
58      * @param Value string value
59      */

60     public MAttributeInstance (Properties ctx, int M_Attribute_ID, int M_AttributeSetInstance_ID, String JavaDoc Value)
61     {
62         super (ctx, 0);
63         setM_Attribute_ID (M_Attribute_ID);
64         setM_AttributeSetInstance_ID (M_AttributeSetInstance_ID);
65         setValue (Value);
66     } // MAttributeInstance
67

68     /**
69      * Selection Value Constructior
70      * @param ctx context
71      * @param M_Attribute_ID attribute
72      * @param M_AttributeSetInstance_ID instance
73      * @param M_AttributeValue_ID selection
74      * @param Value String representation for fast display
75      */

76     public MAttributeInstance (Properties ctx, int M_Attribute_ID, int M_AttributeSetInstance_ID, int M_AttributeValue_ID, String JavaDoc Value)
77     {
78         super (ctx, 0);
79         setM_Attribute_ID (M_Attribute_ID);
80         setM_AttributeSetInstance_ID (M_AttributeSetInstance_ID);
81         setM_AttributeValue_ID (M_AttributeValue_ID);
82         setValue (Value);
83     } // MAttributeInstance
84

85     /**
86      * String Representation
87      * @return info
88      */

89     public String JavaDoc toString()
90     {
91         return getValue();
92     } // toString
93

94 } // MAttributeInstance
95
Popular Tags