public interface ISQLiteConnector
Clients may use SQLiteConnectorImpl
as a default implementation.
SQLiteConnectorImpl
Modifier and Type | Method and Description |
---|---|
void |
createTable()
Creates a new table if it's not existing.
|
void |
delete(java.lang.Object primaryKey)
Deletes a object identified by it's primary key value.
|
void |
deleteAll()
Deletes all objects from within this table.
|
int |
getCount()
Returns the number of stored elements.
|
java.lang.String |
getTableName()
Returns the name of the table.
|
void |
insertOrUpdate(java.lang.Object[] data)
Inserts, or if already existing updates, a given object.
|
java.lang.Object[] |
selectAll()
Returns all contained elements as an array of
Object s. |
void createTable() throws com.softwareag.mobile.runtime.database.DatabaseException
getTableName()
as the
table name identifier.com.softwareag.mobile.runtime.database.DatabaseException
java.lang.String getTableName()
int getCount() throws com.softwareag.mobile.runtime.database.DatabaseException
com.softwareag.mobile.runtime.database.DatabaseException
java.lang.Object[] selectAll() throws com.softwareag.mobile.runtime.database.DatabaseException
Object
s.com.softwareag.mobile.runtime.database.DatabaseException
void insertOrUpdate(java.lang.Object[] data) throws com.softwareag.mobile.runtime.database.DatabaseException
data[0]
as value for the primary key.data
- com.softwareag.mobile.runtime.database.DatabaseException
void delete(java.lang.Object primaryKey) throws com.softwareag.mobile.runtime.database.DatabaseException
primaryKey
- com.softwareag.mobile.runtime.database.DatabaseException
void deleteAll() throws com.softwareag.mobile.runtime.database.DatabaseException
com.softwareag.mobile.runtime.database.DatabaseException