Class FilterSql

java.lang.Object
overit.geocall.sql.FilterSql

public class FilterSql extends Object
Class that defines a SQL string with the map of the parameters of the filter
  • Constructor Details

    • FilterSql

      public FilterSql()
      Main constructor
    • FilterSql

      public FilterSql(HashMap params)
      Main constructor
      Parameters:
      params - The params
    • FilterSql

      public FilterSql(int size)
      Main contructor
      Parameters:
      size - The size
    • FilterSql

      public FilterSql(int size, HashMap params)
      Main constructor
      Parameters:
      size - The size
      params - The params
  • Method Details

    • setComment

      public void setComment(String comment)
      Sets a comment
      Parameters:
      comment - The comment
    • setDescClass

      public void setDescClass(String descClass)
      Sets a class description
      Parameters:
      descClass - The class description
    • setTable

      public void setTable(String sql)
      Sets the sql string
      Parameters:
      sql - The sql string
    • setTable

      public void setTable(int index, String sql)
      Sets the sql string in a specific position
      Parameters:
      index - THe position
      sql - The sql string
    • setTableLike

      public void setTableLike(String field)
      Sets the table like
      Parameters:
      field - The field of the params
    • setTableLike

      public void setTableLike(int index, String field)
      Sets the table like
      Parameters:
      index - The position
      field - The field of the params
    • setFilter

      public void setFilter(String key, int rowTable)
      Sets the filter
      Parameters:
      key - The key to add
      rowTable - The row of the table
    • setFilter

      public void setFilter(String key, int[] rowTable)
      Sets the filter
      Parameters:
      key - The key to add
      rowTable - The array containing the rows of the table
    • getSql

      public String getSql()
      Returns the string containing the sql
      Returns:
      The string containing the sql
    • getSqlFormat

      public String getSqlFormat()
      Return the format of the sql string
      Returns:
      The format of the sql string