Package 

Class Sql

  • All Implemented Interfaces:

    
    public class Sql
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class Sql.Select
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final String sql
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract String getSql()
      abstract Sql replaceColumns(Map<String, String> columns) Allows creating an Sql object made from the current one but with replace column names (if any).
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getSql

         abstract String getSql()
      • replaceColumns

         abstract Sql replaceColumns(Map<String, String> columns)

        Allows creating an Sql object made from the current one but with replace column names (if any).

        For example, suppose that we have sql like select a, b from t where a > 1 order by a initially and call this method with mapOf("a" to "x"). Resulting sql would be select x, b from t where x > 1 order by x