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_BankStatement extends PO 11 { 12 13 public X_C_BankStatement (Properties ctx, int C_BankStatement_ID) 14 { 15 super (ctx, C_BankStatement_ID); 16 28 } 29 30 public X_C_BankStatement (Properties ctx, ResultSet rs) 31 { 32 super (ctx, rs); 33 } 34 35 protected POInfo initPO (Properties ctx) 36 { 37 int AD_Table_ID = 392; 38 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 39 return poi; 40 } 41 public String toString() 42 { 43 StringBuffer sb = new StringBuffer ("X_C_BankStatement[").append(getID()).append("]"); 44 return sb.toString(); 45 } 46 public void setBeginningBalance (BigDecimal BeginningBalance) 47 { 48 setValue ("BeginningBalance", BeginningBalance); 49 } 50 public BigDecimal getBeginningBalance() 51 { 52 BigDecimal bd = (BigDecimal)getValue("BeginningBalance"); 53 if (bd == null) return Env.ZERO; 54 return bd; 55 } 56 public void setC_BankAccount_ID (int C_BankAccount_ID) 57 { 58 setValue ("C_BankAccount_ID", new Integer (C_BankAccount_ID)); 59 } 60 public int getC_BankAccount_ID() 61 { 62 Integer ii = (Integer )getValue("C_BankAccount_ID"); 63 if (ii == null) return 0; 64 return ii.intValue(); 65 } 66 void setC_BankStatement_ID (int C_BankStatement_ID) 67 { 68 setValueNoCheck ("C_BankStatement_ID", new Integer (C_BankStatement_ID)); 69 } 70 public int getC_BankStatement_ID() 71 { 72 Integer ii = (Integer )getValue("C_BankStatement_ID"); 73 if (ii == null) return 0; 74 return ii.intValue(); 75 } 76 public void setCreateFrom (String CreateFrom) 77 { 78 setValue ("CreateFrom", CreateFrom); 79 } 80 public String getCreateFrom() 81 { 82 return (String )getValue("CreateFrom"); 83 } 84 public void setDescription (String Description) 85 { 86 setValue ("Description", Description); 87 } 88 public String getDescription() 89 { 90 return (String )getValue("Description"); 91 } 92 public void setEndingBalance (BigDecimal EndingBalance) 93 { 94 if (EndingBalance == null) throw new IllegalArgumentException ("EndingBalance is mandatory"); 95 setValue ("EndingBalance", EndingBalance); 96 } 97 public BigDecimal getEndingBalance() 98 { 99 BigDecimal bd = (BigDecimal)getValue("EndingBalance"); 100 if (bd == null) return Env.ZERO; 101 return bd; 102 } 103 public void setIsManual (boolean IsManual) 104 { 105 setValue ("IsManual", new Boolean (IsManual)); 106 } 107 public boolean isManual() 108 { 109 Boolean bb = (Boolean )getValue("IsManual"); 110 if (bb != null) return bb.booleanValue(); 111 return false; 112 } 113 public void setName (String Name) 114 { 115 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 116 setValue ("Name", Name); 117 } 118 public String getName() 119 { 120 return (String )getValue("Name"); 121 } 122 public void setPosted (boolean Posted) 123 { 124 setValue ("Posted", new Boolean (Posted)); 125 } 126 public boolean isPosted() 127 { 128 Boolean bb = (Boolean )getValue("Posted"); 129 if (bb != null) return bb.booleanValue(); 130 return false; 131 } 132 public void setProcessed (boolean Processed) 133 { 134 setValue ("Processed", new Boolean (Processed)); 135 } 136 public boolean isProcessed() 137 { 138 Boolean bb = (Boolean )getValue("Processed"); 139 if (bb != null) return bb.booleanValue(); 140 return false; 141 } 142 public void setProcessing (String Processing) 143 { 144 setValue ("Processing", Processing); 145 } 146 public String getProcessing() 147 { 148 return (String )getValue("Processing"); 149 } 150 public void setStatementDate (Timestamp StatementDate) 151 { 152 if (StatementDate == null) throw new IllegalArgumentException ("StatementDate is mandatory"); 153 setValue ("StatementDate", StatementDate); 154 } 155 public Timestamp getStatementDate() 156 { 157 return (Timestamp)getValue("StatementDate"); 158 } 159 public void setStatementDifference (BigDecimal StatementDifference) 160 { 161 setValue ("StatementDifference", StatementDifference); 162 } 163 public BigDecimal getStatementDifference() 164 { 165 BigDecimal bd = (BigDecimal)getValue("StatementDifference"); 166 if (bd == null) return Env.ZERO; 167 return bd; 168 } 169 } 170 | Popular Tags |