Package overit.geocall.sql
Class FilterSql
java.lang.Object
overit.geocall.sql.FilterSql
Class that defines a SQL string with the map of the parameters of the filter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSql()Returns the string containing the sqlReturn the format of the sql stringvoidsetComment(String comment) Sets a commentvoidsetDescClass(String descClass) Sets a class descriptionvoidSets the filtervoidSets the filtervoidSets the sql string in a specific positionvoidSets the sql stringvoidsetTableLike(int index, String field) Sets the table likevoidsetTableLike(String field) Sets the table like
-
Constructor Details
-
FilterSql
public FilterSql()Main constructor -
FilterSql
Main constructor- Parameters:
params- The params
-
FilterSql
public FilterSql(int size) Main contructor- Parameters:
size- The size
-
FilterSql
Main constructor- Parameters:
size- The sizeparams- The params
-
-
Method Details
-
setComment
Sets a comment- Parameters:
comment- The comment
-
setDescClass
Sets a class description- Parameters:
descClass- The class description
-
setTable
Sets the sql string- Parameters:
sql- The sql string
-
setTable
Sets the sql string in a specific position- Parameters:
index- THe positionsql- The sql string
-
setTableLike
Sets the table like- Parameters:
field- The field of the params
-
setTableLike
Sets the table like- Parameters:
index- The positionfield- The field of the params
-
setFilter
Sets the filter- Parameters:
key- The key to addrowTable- The row of the table
-
setFilter
Sets the filter- Parameters:
key- The key to addrowTable- The array containing the rows of the table
-
getSql
Returns the string containing the sql- Returns:
- The string containing the sql
-
getSqlFormat
Return the format of the sql string- Returns:
- The format of the sql string
-