Class SQLConnection

java.lang.Object
me.mrnavastar.sqlib.sql.SQLConnection

public class SQLConnection extends Object
  • Constructor Details

    • SQLConnection

      public SQLConnection(String connectionUrl, Properties properties)
  • Method Details

    • close

      public void close()
    • executeCommand

      public PreparedStatement executeCommand(String sql, boolean autoClose, Object... params)
    • beginTransaction

      public void beginTransaction(boolean exclusive)
    • endTransaction

      public void endTransaction()
    • createTable

      public void createTable(Table table, boolean autoIncrementId)
    • createRow

      public int createRow(Table table, String id, boolean autoIncrementId)
    • deleteRow

      public void deleteRow(Table table, String id)
    • listPrimaryKeys

      public List<String> listPrimaryKeys(Table table)
    • readField

      public <T> T readField(Table table, Object primaryKey, String field, Class<T> type)
    • writeField

      public void writeField(Table table, Object primaryKey, String field, Object value)