| java.lang.Object br.com.gfpshare.db.AbstractSQLParser
All known Subclasses: br.com.gfpshare.db.HSQLDBSQLParser, br.com.gfpshare.db.MSAccessSQLParser,
AbstractSQLParser | abstract public class AbstractSQLParser implements SQLParser(Code) | | author: Igor Regis da Silva Simoes |
Method Summary | |
public ParsedPreparedStatement | getDeleteSQL(String tableName, Map data, ArrayList<String> columnsName, ArrayList<SQLCondition> condicoesExtras, ArrayList<String> pkNames) | public ParsedPreparedStatement | getInsertSQL(String tableName, Map data, ArrayList<String> columnsName) | protected String | getOrderBy(String[] orderByColumnns, boolean[] crescente) | public ParsedPreparedStatement | getSelectSQL(String resultadoDesejado, String tableName, Map data, ArrayList<String> columnsName, String[] orderByColumnns, boolean[] crescente, ArrayList<SQLCondition> condicoesExtras) | public ParsedPreparedStatement | getUpdateSQL(String tableName, Map data, ArrayList<String> columnsName, ArrayList<String> pkNames) | protected ParsedPreparedStatement | getWhere(Map data, ArrayList<String> columnsName, String separator, ArrayList<SQLCondition> condicoesExtras) | public ParsedPreparedStatement | parse(ParsedPreparedStatement sql) |
AbstractSQLParser | public AbstractSQLParser()(Code) | | Cria uma nova instância de AbstractSQLParser
|
getOrderBy | protected String getOrderBy(String[] orderByColumnns, boolean[] crescente)(Code) | | Retorna uma clausula order by
Parameters: orderByColumnns - Colunas que comporão a clausula Parameters: crescente - ondens de cada coluna clausula order by |
getWhere | protected ParsedPreparedStatement getWhere(Map data, ArrayList<String> columnsName, String separator, ArrayList<SQLCondition> condicoesExtras)(Code) | | Retorna um clausula where
Parameters: data - Dados que comporão a clausula Parameters: columnsName - Nomes das colunas Parameters: separator - caracter separados entre as colunas Parameters: condicoesExtras - lista de consições extras clausula where |
|
|