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_Bank extends PO 11 { 12 13 public X_C_Bank (Properties ctx, int C_Bank_ID) 14 { 15 super (ctx, C_Bank_ID); 16 24 } 25 26 public X_C_Bank (Properties ctx, ResultSet rs) 27 { 28 super (ctx, rs); 29 } 30 31 protected POInfo initPO (Properties ctx) 32 { 33 int AD_Table_ID = 296; 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_Bank[").append(getID()).append("]"); 40 return sb.toString(); 41 } 42 void setC_Bank_ID (int C_Bank_ID) 43 { 44 setValueNoCheck ("C_Bank_ID", new Integer (C_Bank_ID)); 45 } 46 public int getC_Bank_ID() 47 { 48 Integer ii = (Integer )getValue("C_Bank_ID"); 49 if (ii == null) return 0; 50 return ii.intValue(); 51 } 52 public void setC_Location_ID (int C_Location_ID) 53 { 54 if (C_Location_ID == 0) setValue ("C_Location_ID", null); 55 else 56 setValue ("C_Location_ID", new Integer (C_Location_ID)); 57 } 58 public int getC_Location_ID() 59 { 60 Integer ii = (Integer )getValue("C_Location_ID"); 61 if (ii == null) return 0; 62 return ii.intValue(); 63 } 64 public void setIsOwnBank (boolean IsOwnBank) 65 { 66 setValue ("IsOwnBank", new Boolean (IsOwnBank)); 67 } 68 public boolean isOwnBank() 69 { 70 Boolean bb = (Boolean )getValue("IsOwnBank"); 71 if (bb != null) return bb.booleanValue(); 72 return false; 73 } 74 public void setName (String Name) 75 { 76 if (Name == null) throw new IllegalArgumentException ("Name is mandatory"); 77 setValue ("Name", Name); 78 } 79 public String getName() 80 { 81 return (String )getValue("Name"); 82 } 83 public void setRoutingNo (String RoutingNo) 84 { 85 if (RoutingNo == null) throw new IllegalArgumentException ("RoutingNo is mandatory"); 86 setValue ("RoutingNo", RoutingNo); 87 } 88 public String getRoutingNo() 89 { 90 return (String )getValue("RoutingNo"); 91 } 92 public void setSwiftCode (String SwiftCode) 93 { 94 setValue ("SwiftCode", SwiftCode); 95 } 96 public String getSwiftCode() 97 { 98 return (String )getValue("SwiftCode"); 99 } 100 } 101 | Popular Tags |