Add code to load bug categories and patterns from the FindBugs messages.xml file.
[cfb.git] / prod / net / jaekl / cfb / db / Operation.java
1 package net.jaekl.cfb.db;
2
3 public enum Operation {
4         EQUAL(" = ? ", true), 
5         LESS_THAN(" < ? ", true), 
6         GREATER_THAN(" > ? ", true), 
7         NULL(" is null ", false), 
8         NOT_NULL(" is not null ", false);
9         
10         String m_sql;
11         boolean m_hasParam;
12         
13         Operation(String sql, boolean hasParam) {
14                 m_sql = sql;
15                 m_hasParam = hasParam;
16         }
17         
18         public String getSql() { return m_sql; }
19         public boolean hasParam() { return m_hasParam; }
20 }