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_AD_Find extends PO 11 { 12 13 public X_AD_Find (Properties ctx, int AD_Find_ID) 14 { 15 super (ctx, AD_Find_ID); 16 26 } 27 28 public X_AD_Find (Properties ctx, ResultSet rs) 29 { 30 super (ctx, rs); 31 } 32 33 protected POInfo initPO (Properties ctx) 34 { 35 int AD_Table_ID = 404; 36 POInfo poi = POInfo.getPOInfo (ctx, AD_Table_ID); 37 return poi; 38 } 39 public String toString() 40 { 41 StringBuffer sb = new StringBuffer ("X_AD_Find[").append(getID()).append("]"); 42 return sb.toString(); 43 } 44 public void setAD_Column_ID (int AD_Column_ID) 45 { 46 setValue ("AD_Column_ID", new Integer (AD_Column_ID)); 47 } 48 public int getAD_Column_ID() 49 { 50 Integer ii = (Integer )getValue("AD_Column_ID"); 51 if (ii == null) return 0; 52 return ii.intValue(); 53 } 54 void setAD_Find_ID (int AD_Find_ID) 55 { 56 setValueNoCheck ("AD_Find_ID", new Integer (AD_Find_ID)); 57 } 58 public int getAD_Find_ID() 59 { 60 Integer ii = (Integer )getValue("AD_Find_ID"); 61 if (ii == null) return 0; 62 return ii.intValue(); 63 } 64 public static final String ANDOR_And = "A"; 65 public static final String ANDOR_Or = "O"; 66 public void setAndor (String Andor) 67 { 68 if (Andor.equals("A") || Andor.equals("O")); 69 else throw new IllegalArgumentException ("Andor Invalid value - Reference_ID=204 - A - O"); 70 if (Andor == null) throw new IllegalArgumentException ("Andor is mandatory"); 71 setValue ("Andor", Andor); 72 } 73 public String getAndor() 74 { 75 return (String )getValue("Andor"); 76 } 77 public void setFind_ID (BigDecimal Find_ID) 78 { 79 if (Find_ID == null) throw new IllegalArgumentException ("Find_ID is mandatory"); 80 setValue ("Find_ID", Find_ID); 81 } 82 public BigDecimal getFind_ID() 83 { 84 BigDecimal bd = (BigDecimal)getValue("Find_ID"); 85 if (bd == null) return Env.ZERO; 86 return bd; 87 } 88 public static final String OPERATION_Eq = "=="; 89 public static final String OPERATION_GtEq = ">="; 90 public static final String OPERATION_Gt = ">>"; 91 public static final String OPERATION_Le = "<<"; 92 public static final String OPERATION_Like = "~~"; 93 public static final String OPERATION_LeEq = "<="; 94 public static final String OPERATION_LeXGt = "AB"; 95 public static final String OPERATION_Sql = "SQ"; 96 public void setOperation (String Operation) 97 { 98 if (Operation.equals("==") || Operation.equals(">=") || Operation.equals(">>") || Operation.equals("<<") || Operation.equals("~~") || Operation.equals("<=") || Operation.equals("AB") || Operation.equals("SQ")); 99 else throw new IllegalArgumentException ("Operation Invalid value - Reference_ID=205 - == - >= - >> - << - ~~ - <= - AB - SQ"); 100 if (Operation == null) throw new IllegalArgumentException ("Operation is mandatory"); 101 setValue ("Operation", Operation); 102 } 103 public String getOperation() 104 { 105 return (String )getValue("Operation"); 106 } 107 public void setValue (String Value) 108 { 109 if (Value == null) throw new IllegalArgumentException ("Value is mandatory"); 110 setValue ("Value", Value); 111 } 112 public String getValue() 113 { 114 return (String )getValue("Value"); 115 } 116 public void setValue2 (String Value2) 117 { 118 setValue ("Value2", Value2); 119 } 120 public String getValue2() 121 { 122 return (String )getValue("Value2"); 123 } 124 } 125 | Popular Tags |