KickJava   Java API By Example, From Geeks To Geeks.

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


1 /** Generated Model - DO NOT CHANGE - Copyright (C) 1999-2003 Jorg Janke **/
2 package org.compiere.model;
3 import java.util.*;
4 import java.sql.*;
5 import java.math.*;
6 import java.io.Serializable JavaDoc;
7 import org.compiere.util.*;
8 /** Generated Model for AD_Task
9  ** @version $Id: X_AD_Task.java,v 1.27 2003/10/31 05:30:53 jjanke Exp $ **/

10 public class X_AD_Task extends PO
11 {
12 /** Standard Constructor **/
13 public X_AD_Task (Properties ctx, int AD_Task_ID)
14 {
15 super (ctx, AD_Task_ID);
16 /** if (AD_Task_ID == 0)
17 {
18 setAD_Task_ID (0);
19 setAccessLevel (null);
20 setEntityType (null);
21 setName (null);
22 setOS_Command (null);
23 }
24  **/

25 }
26 /** Load Constructor **/
27 public X_AD_Task (Properties ctx, ResultSet rs)
28 {
29 super (ctx, rs);
30 }
31 /** Load Meta Data **/
32 protected POInfo initPO (Properties ctx)
33 {
34 int AD_Table_ID = 118;
35 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID);
36 return poi;
37 }
38 public String JavaDoc toString()
39 {
40 StringBuffer JavaDoc sb = new StringBuffer JavaDoc ("X_AD_Task[").append(getID()).append("]");
41 return sb.toString();
42 }
43 void setAD_Task_ID (int AD_Task_ID)
44 {
45 setValueNoCheck ("AD_Task_ID", new Integer JavaDoc(AD_Task_ID));
46 }
47 public int getAD_Task_ID()
48 {
49 Integer JavaDoc ii = (Integer JavaDoc)getValue("AD_Task_ID");
50 if (ii == null) return 0;
51 return ii.intValue();
52 }
53 public static final String JavaDoc ACCESSLEVEL_Organization = "1";
54 public static final String JavaDoc ACCESSLEVEL_ClientPlusOrganization = "3";
55 public static final String JavaDoc ACCESSLEVEL_SystemOnly = "4";
56 public static final String JavaDoc ACCESSLEVEL_All = "7";
57 public static final String JavaDoc ACCESSLEVEL_ClientOnly = "2";
58 public static final String JavaDoc ACCESSLEVEL_SystemPlusClient = "6";
59 public void setAccessLevel (String JavaDoc AccessLevel)
60 {
61 if (AccessLevel.equals("1") || AccessLevel.equals("3") || AccessLevel.equals("4") || AccessLevel.equals("7") || AccessLevel.equals("2") || AccessLevel.equals("6"));
62  else throw new IllegalArgumentException JavaDoc ("AccessLevel Invalid value - Reference_ID=5 - 1 - 3 - 4 - 7 - 2 - 6");
63 if (AccessLevel == null) throw new IllegalArgumentException JavaDoc ("AccessLevel is mandatory");
64 setValue ("AccessLevel", AccessLevel);
65 }
66 public String JavaDoc getAccessLevel()
67 {
68 return (String JavaDoc)getValue("AccessLevel");
69 }
70 public void setDescription (String JavaDoc Description)
71 {
72 setValue ("Description", Description);
73 }
74 public String JavaDoc getDescription()
75 {
76 return (String JavaDoc)getValue("Description");
77 }
78 public static final String JavaDoc ENTITYTYPE_Dictionary = "D";
79 public static final String JavaDoc ENTITYTYPE_Compiere = "C";
80 public static final String JavaDoc ENTITYTYPE_UserMaintained = "U";
81 public static final String JavaDoc ENTITYTYPE_Applications = "A";
82 public void setEntityType (String JavaDoc EntityType)
83 {
84 if (EntityType.equals("D") || EntityType.equals("C") || EntityType.equals("U") || EntityType.equals("A"));
85  else throw new IllegalArgumentException JavaDoc ("EntityType Invalid value - Reference_ID=245 - D - C - U - A");
86 if (EntityType == null) throw new IllegalArgumentException JavaDoc ("EntityType is mandatory");
87 setValue ("EntityType", EntityType);
88 }
89 public String JavaDoc getEntityType()
90 {
91 return (String JavaDoc)getValue("EntityType");
92 }
93 public void setHelp (String JavaDoc Help)
94 {
95 setValue ("Help", Help);
96 }
97 public String JavaDoc getHelp()
98 {
99 return (String JavaDoc)getValue("Help");
100 }
101 public void setName (String JavaDoc Name)
102 {
103 if (Name == null) throw new IllegalArgumentException JavaDoc ("Name is mandatory");
104 setValue ("Name", Name);
105 }
106 public String JavaDoc getName()
107 {
108 return (String JavaDoc)getValue("Name");
109 }
110 public void setOS_Command (String JavaDoc OS_Command)
111 {
112 if (OS_Command == null) throw new IllegalArgumentException JavaDoc ("OS_Command is mandatory");
113 setValue ("OS_Command", OS_Command);
114 }
115 public String JavaDoc getOS_Command()
116 {
117 return (String JavaDoc)getValue("OS_Command");
118 }
119 }
120
Popular Tags