1 2 package org.compiere.model; 3 import java.util.*; 4 import java.sql.*; 5 import java.math.*; 6 import java.io.Serializable ; 7 import org.compiere.util.*; 8 10 public class X_C_CycleStep extends PO 11 { 12 13 public X_C_CycleStep (Properties ctx, int C_CycleStep_ID) 14 { 15 super (ctx, C_CycleStep_ID); 16 25 } 26 27 public X_C_CycleStep (Properties ctx, ResultSet rs) 28 { 29 super (ctx, rs); 30 } 31 32 protected POInfo initPO (Properties ctx) 33 { 34 int AD_Table_ID = 590; 35 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 36 return poi; 37 } 38 public String toString() 39 { 40 StringBuffer sb = new StringBuffer ("X_C_CycleStep[").append(getID()).append("]"); 41 return sb.toString(); 42 } 43 void setC_CycleStep_ID (int C_CycleStep_ID) 44 { 45 setValueNoCheck ("C_CycleStep_ID", new Integer (C_CycleStep_ID)); 46 } 47 public int getC_CycleStep_ID() 48 { 49 Integer ii = (Integer )getValue("C_CycleStep_ID"); 50 if (ii == null) return 0; 51 return ii.intValue(); 52 } 53 void setC_Cycle_ID (int C_Cycle_ID) 54 { 55 setValueNoCheck ("C_Cycle_ID", new Integer (C_Cycle_ID)); 56 } 57 public int getC_Cycle_ID() 58 { 59 Integer ii = (Integer )getValue("C_Cycle_ID"); 60 if (ii == null) return 0; 61 return ii.intValue(); 62 } 63 public void setName (String Name) 64 { 65 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 66 setValue ("Name", Name); 67 } 68 public String getName() 69 { 70 return (String )getValue("Name"); 71 } 72 public void setRelativeWeight (BigDecimal RelativeWeight) 73 { 74 if (RelativeWeight == null) throw new IllegalArgumentException ("RelativeWeight is mandatory"); 75 setValue ("RelativeWeight", RelativeWeight); 76 } 77 public BigDecimal getRelativeWeight() 78 { 79 BigDecimal bd = (BigDecimal)getValue("RelativeWeight"); 80 if (bd == null) return Env.ZERO; 81 return bd; 82 } 83 public void setSeqNo (int SeqNo) 84 { 85 setValue ("SeqNo", new Integer (SeqNo)); 86 } 87 public int getSeqNo() 88 { 89 Integer ii = (Integer )getValue("SeqNo"); 90 if (ii == null) return 0; 91 return ii.intValue(); 92 } 93 } 94
| Popular Tags
|