Package ai.libs.jaicore.db.sql
Class ASqlBasedAdapter
- java.lang.Object
-
- ai.libs.jaicore.db.sql.ASqlBasedAdapter
-
- All Implemented Interfaces:
IDatabaseAdapter
,java.io.Serializable
,java.lang.AutoCloseable
,org.api4.java.common.control.ILoggingCustomizable
public abstract class ASqlBasedAdapter extends java.lang.Object implements IDatabaseAdapter
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
KEY_EQUALS_VALUE_TO_BE_SET
protected static java.lang.String
STR_SPACE_AND
protected static java.lang.String
STR_SPACE_WHERE
-
Constructor Summary
Constructors Modifier Constructor Description protected
ASqlBasedAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
delete(java.lang.String table, java.util.Map<java.lang.String,? extends java.lang.Object> conditions)
Deletes all rows from the table that match the given conditions-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ai.libs.jaicore.db.IDatabaseAdapter
checkConnection, close, createTable, doesTableExist, executeQueriesAtomically, getResultsOfQuery, getResultsOfQuery, getResultsOfQuery, getRowsOfTable, getRowsOfTable, insert, insert, insert, insert, insertMultiple, insertMultiple, query, update, update, update, update
-
-
-
-
Field Detail
-
KEY_EQUALS_VALUE_TO_BE_SET
protected static final java.lang.String KEY_EQUALS_VALUE_TO_BE_SET
- See Also:
- Constant Field Values
-
STR_SPACE_AND
protected static final java.lang.String STR_SPACE_AND
- See Also:
- Constant Field Values
-
STR_SPACE_WHERE
protected static final java.lang.String STR_SPACE_WHERE
- See Also:
- Constant Field Values
-
-
Method Detail
-
delete
public int delete(java.lang.String table, java.util.Map<java.lang.String,? extends java.lang.Object> conditions) throws java.sql.SQLException
Description copied from interface:IDatabaseAdapter
Deletes all rows from the table that match the given conditions- Specified by:
delete
in interfaceIDatabaseAdapter
- Returns:
- the number of deleted rows.
- Throws:
java.sql.SQLException
-
-