public interface Sql
Modifier and Type | Method and Description |
---|---|
long |
delete(String sql)
Perform a DELETE statement on the database.
|
String |
escape(String text)
Escapes some text such that it can be used safely in sql statements.
|
long |
insert(String sql)
Perform an INSERT statement on the database.
|
Any |
select(String sql)
Perform a SELECT statement on the database.
|
Any |
selectOne(String sql)
Perform a SELECT statement on the database expecting a single row in return.
|
long |
update(String sql)
Perform an UPDATE statement on the database.
|
Any select(String sql)
sql
- the sql queryAny selectOne(String sql)
sql
- the sql querylong insert(String sql)
sql
- the sql querylong update(String sql)
sql
- the sql querylong delete(String sql)
sql
- the sql queryString escape(String text)
text
- the text to be escaped