Class QueryCache


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

      Constructors 
      Constructor Description
      QueryCache​(java.lang.String colQuoteChar)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getColumnQuoteChar()  
      java.lang.String getQuery​(java.lang.String key, java.lang.String rawQuery)
      Gets a quoted query from the cache, inserting it if not already there.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QueryCache

        public QueryCache​(java.lang.String colQuoteChar)
    • Method Detail

      • getColumnQuoteChar

        public java.lang.String getColumnQuoteChar()
      • getQuery

        public java.lang.String getQuery​(java.lang.String key,
                                         java.lang.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.