public class Conexao extends Object
| Constructor and Description |
|---|
Conexao() |
| Modifier and Type | Method and Description |
|---|---|
String |
alterarMDB(List<Campo> campos,
String tabelaMDB,
String _id) |
void |
consulta(String sql) |
List<String> |
consultaMDB(List<Campo> filtros,
String tabelaMDB) |
List<String> |
consultaMDB(String _id,
String tabelaMDB) |
void |
executa(String sql) |
void |
fecharconexao() |
static Connection |
getConn() |
String |
getDatabase() |
static Conexao |
getInstance() |
ResultSet |
getRs() |
Statement |
getSmt() |
static String |
getTipoBancoDados() |
String |
inserirMDB(List<Campo> campos,
String tabelaMDB) |
String |
removeMDB(String tabelaMDB,
String _id) |
static void |
setConn(Connection aConn) |
void |
setDatabase(String database) |
void |
setRs(ResultSet rs) |
void |
setSmt(Statement smt) |
static void |
setTipoBancoDados(String _tipoBancoDados) |
public void consulta(String sql) throws Exception, IOException
ExceptionIOExceptionpublic void fecharconexao()
throws ErroException
ErroExceptionpublic static Conexao getInstance()
public String getDatabase()
public void setDatabase(String database)
public ResultSet getRs()
public void setRs(ResultSet rs)
public Statement getSmt()
public void setSmt(Statement smt)
public static Connection getConn()
public static void setConn(Connection aConn)
public static String getTipoBancoDados()
public static void setTipoBancoDados(String _tipoBancoDados)
public String inserirMDB(List<Campo> campos, String tabelaMDB) throws Exception
Exceptionpublic String alterarMDB(List<Campo> campos, String tabelaMDB, String _id) throws Exception
Exceptionpublic List<String> consultaMDB(String _id, String tabelaMDB) throws Exception, IOException
ExceptionIOExceptionpublic List<String> consultaMDB(List<Campo> filtros, String tabelaMDB) throws Exception, IOException
ExceptionIOExceptionCopyright © 2018. All rights reserved.