java.lang.Object
com.inductiveautomation.ignition.gateway.util.QueryCache

public class QueryCache extends Object
Stores queries prepared for execution - that is, with columns quoted, etc.
  • Constructor Details

    • QueryCache

      public QueryCache(String colQuoteChar)
  • Method Details

    • getColumnQuoteChar

      public String getColumnQuoteChar()
    • getQuery

      public String getQuery(String key, String rawQuery)
      Gets a quoted query from the cache, inserting it if not already there. If key is null, it won't be stored, just quoted and returned. Raw query is expected to surround column names with $. Like, SELECT $id$ FROM table.