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_RevenueRecognition extends PO 11 { 12 13 public X_C_RevenueRecognition (Properties ctx, int C_RevenueRecognition_ID) 14 { 15 super (ctx, C_RevenueRecognition_ID); 16 24 } 25 26 public X_C_RevenueRecognition (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 336; 34 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 35 return poi; 36 } 37 public String toString() 38 { 39 StringBuffer sb = new StringBuffer ("X_C_RevenueRecognition[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 void setC_RevenueRecognition_ID (int C_RevenueRecognition_ID) 43 { 44 setValueNoCheck ("C_RevenueRecognition_ID", new Integer (C_RevenueRecognition_ID)); 45 } 46 public int getC_RevenueRecognition_ID() 47 { 48 Integer ii = (Integer )getValue("C_RevenueRecognition_ID"); 49 if (ii == null) return 0; 50 return ii.intValue(); 51 } 52 public void setDescription (String Description) 53 { 54 setValue ("Description", Description); 55 } 56 public String getDescription() 57 { 58 return (String )getValue("Description"); 59 } 60 public void setIsTimeBased (boolean IsTimeBased) 61 { 62 setValue ("IsTimeBased", new Boolean (IsTimeBased)); 63 } 64 public boolean isTimeBased() 65 { 66 Boolean bb = (Boolean )getValue("IsTimeBased"); 67 if (bb != null) return bb.booleanValue(); 68 return false; 69 } 70 public void setName (String Name) 71 { 72 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 73 setValue ("Name", Name); 74 } 75 public String getName() 76 { 77 return (String )getValue("Name"); 78 } 79 public void setNoMonths (int NoMonths) 80 { 81 setValue ("NoMonths", new Integer (NoMonths)); 82 } 83 public int getNoMonths() 84 { 85 Integer ii = (Integer )getValue("NoMonths"); 86 if (ii == null) return 0; 87 return ii.intValue(); 88 } 89 public static final String RECOGNITIONFREQUENCY_Month = "M"; 90 public static final String RECOGNITIONFREQUENCY_Quarter = "Q"; 91 public static final String RECOGNITIONFREQUENCY_Year = "Y"; 92 public void setRecognitionFrequency (String RecognitionFrequency) 93 { 94 if (RecognitionFrequency.equals("M") || RecognitionFrequency.equals("Q") || RecognitionFrequency.equals("Y")); 95 else throw new IllegalArgumentException ("RecognitionFrequency Invalid value - Reference_ID=196 - M - Q - Y"); 96 if (RecognitionFrequency == null) throw new IllegalArgumentException ("RecognitionFrequency is mandatory"); 97 setValue ("RecognitionFrequency", RecognitionFrequency); 98 } 99 public String getRecognitionFrequency() 100 { 101 return (String )getValue("RecognitionFrequency"); 102 } 103 } 104 | Popular Tags |