Skip navigation links
A C D E F G H I L M N O P R S T U V _ 

A

AbstractDao<DbObject> - Class in com.humandevice.android.database.dao
Provides basic operations to save / restore object data in database.
AbstractDao(DatabaseTransformer<DbObject>) - Constructor for class com.humandevice.android.database.dao.AbstractDao
 
add(DbObject) - Method in class com.humandevice.android.database.dao.AbstractDao
 
add(DbObject[]) - Method in class com.humandevice.android.database.dao.AbstractDao
 
add(Collection<DbObject>) - Method in class com.humandevice.android.database.dao.AbstractDao
 
addColumn(SqlColumn) - Method in class com.humandevice.android.database.SqlTableFactory
 
addColumn(String, SqlColumnType) - Method in class com.humandevice.android.database.SqlTableFactory
Adds one column with specified columnName and type without any constrains
addOrReplace(DbObject) - Method in class com.humandevice.android.database.dao.AbstractDao
 
addOrReplace(DbObject[]) - Method in class com.humandevice.android.database.dao.AbstractDao
 
addOrReplace(Collection<DbObject>) - Method in class com.humandevice.android.database.dao.AbstractDao
 
asId(boolean) - Method in class com.humandevice.android.database.SqlColumn
 

C

cancelTransaction() - Method in class com.humandevice.android.database.dao.AbstractDao
Cancels transaction
close() - Method in class com.humandevice.android.database.SqlCursor
 
closeDatabase() - Static method in class com.humandevice.android.database.dao.AbstractDao
 
com.humandevice.android.database - package com.humandevice.android.database
 
com.humandevice.android.database.annotations - package com.humandevice.android.database.annotations
 
com.humandevice.android.database.dao - package com.humandevice.android.database.dao
 
com.humandevice.android.database.model - package com.humandevice.android.database.model
 
com.humandevice.android.database.tools - package com.humandevice.android.database.tools
 
convertCursor(SqlCursor) - Method in class com.humandevice.android.database.dao.AbstractDao
Converts multiple results into list
count(String, String...) - Method in class com.humandevice.android.database.dao.AbstractDao
Counts rows
createQuery() - Method in class com.humandevice.android.database.SqlTableFactory
 
createTable(SQLiteDatabase) - Method in class com.humandevice.android.database.SqlTableFactory
Executes generated code in order to create table
cursor - Variable in class com.humandevice.android.database.SqlCursor.Row
 

D

DatabaseAnnotationHelper - Class in com.humandevice.android.database.tools
Helps extracting annotations values
DatabaseAnnotationHelper() - Constructor for class com.humandevice.android.database.tools.DatabaseAnnotationHelper
 
DatabaseConfiguration - Class in com.humandevice.android.database
Works a bit like configuration file - you have to provide database info and order for creating daos.
DatabaseConfiguration() - Constructor for class com.humandevice.android.database.DatabaseConfiguration
 
DatabaseHelper - Class in com.humandevice.android.database
Works a bit like configuration file - you have to provide database info and order for creating daos.
DatabaseHelper(Application, DatabaseConfiguration) - Constructor for class com.humandevice.android.database.DatabaseHelper
 
DatabaseTransformer<Model> - Interface in com.humandevice.android.database.dao
Interface for converting between entity and database values
delete(DbObject) - Method in class com.humandevice.android.database.dao.AbstractDao
Removes entity from database if implements LocalIdentifiable
delete(String, String...) - Method in class com.humandevice.android.database.dao.AbstractDao
 
deleteAll() - Method in class com.humandevice.android.database.dao.AbstractDao
Clears table
deleteColumn(String) - Method in class com.humandevice.android.database.SqlTableFactory
Delete column by specified name.
deserializeModel(SqlCursor.Row, Model) - Method in class com.humandevice.android.database.dao.ReflectDatabaseTransformer
 

E

enableLogging() - Method in class com.humandevice.android.database.DatabaseConfiguration
 
endTransaction() - Method in class com.humandevice.android.database.dao.AbstractDao
If AbstractDao.cancelTransaction() wasn't called, it will succeed
EntityWithId - Class in com.humandevice.android.database.model
By Mikołaj Styś Convenient implementation of LocalIdentifiable
EntityWithId() - Constructor for class com.humandevice.android.database.model.EntityWithId
 
EntityWithId(long) - Constructor for class com.humandevice.android.database.model.EntityWithId
 
equals(Object) - Method in class com.humandevice.android.database.SqlColumn
 
existInDatabase() - Method in class com.humandevice.android.database.model.EntityWithId
 

F

foreignKey(String, String) - Method in class com.humandevice.android.database.SqlColumn
 
foreignKey(String, String, SqlForeignKeyActions, SqlForeignKeyActions) - Method in class com.humandevice.android.database.SqlColumn
Create relation to specified column in specified table.

G

getAll() - Method in class com.humandevice.android.database.dao.AbstractDao
 
getAllFields(Class<?>) - Static method in class com.humandevice.android.database.tools.ReflectTypeUtils
 
getById(long) - Method in class com.humandevice.android.database.dao.AbstractDao
Returns entity that contains this key
getColumn(String) - Method in class com.humandevice.android.database.SqlTableFactory
Get column by specified name.
getDatabaseId() - Method in class com.humandevice.android.database.model.EntityWithId
 
getDatabaseId() - Method in interface com.humandevice.android.database.model.LocalIdentifiable
 
getDatabaseName() - Method in class com.humandevice.android.database.DatabaseConfiguration
 
getDatabaseName(Field) - Method in class com.humandevice.android.database.tools.DatabaseAnnotationHelper
 
getDatabaseVersion() - Method in class com.humandevice.android.database.DatabaseConfiguration
 
getDouble(String) - Method in class com.humandevice.android.database.SqlCursor.Row
 
getDouble(int) - Method in class com.humandevice.android.database.SqlCursor.Row
 
getEnumDatabaseName(Field, Object) - Method in class com.humandevice.android.database.tools.DatabaseAnnotationHelper
 
getEnumDatabaseName(Enum<?>) - Method in class com.humandevice.android.database.tools.DatabaseAnnotationHelper
 
getEnumFromDatabaseName(Field, String) - Method in class com.humandevice.android.database.tools.DatabaseAnnotationHelper
 
getFloat(String) - Method in class com.humandevice.android.database.SqlCursor.Row
 
getFloat(int) - Method in class com.humandevice.android.database.SqlCursor.Row
 
getIncludedDaos() - Method in class com.humandevice.android.database.DatabaseHelper
 
getInteger(String) - Method in class com.humandevice.android.database.SqlCursor.Row
 
getList(String, String...) - Method in class com.humandevice.android.database.dao.AbstractDao
Abstract list query that helps create queries
getLong(int) - Method in class com.humandevice.android.database.SqlCursor.Row
 
getLong(String) - Method in class com.humandevice.android.database.SqlCursor.Row
 
getOneResult(String, String...) - Method in class com.humandevice.android.database.dao.AbstractDao
Abstract one result query
getParameterClass() - Method in class com.humandevice.android.database.dao.ReflectDao
Obtains typed class if this class is subtyped.
getReadableDatabase() - Method in class com.humandevice.android.database.dao.AbstractDao
 
getRow() - Method in class com.humandevice.android.database.SqlCursor
 
getSize() - Method in class com.humandevice.android.database.SqlCursor
Get cursor size. 0 if cursor is empty or not exists.
getSize() - Method in class com.humandevice.android.database.SqlCursor.Row
 
getSqlName() - Method in enum com.humandevice.android.database.SqlForeignKeyActions
 
getString(String) - Method in class com.humandevice.android.database.SqlCursor.Row
 
getTableDeclaration() - Method in class com.humandevice.android.database.dao.ReflectDao
Override if you need to manually change table declaration
getTableName() - Method in class com.humandevice.android.database.dao.AbstractDao
 
getTableName() - Method in class com.humandevice.android.database.dao.ReflectDao
Override, if you want to change table name
getWritableDatabase() - Method in class com.humandevice.android.database.dao.AbstractDao
 

H

hasNext() - Method in class com.humandevice.android.database.SqlCursor
 
hasRows() - Method in class com.humandevice.android.database.SqlCursor
 
hasValueFor(String) - Method in class com.humandevice.android.database.SqlCursor.Row
 
hasValueFor(int) - Method in class com.humandevice.android.database.SqlCursor.Row
 

I

Id - Annotation Type in com.humandevice.android.database.annotations
States that this field should be treated as Primary Key (integer).
ID - Static variable in class com.humandevice.android.database.dao.AbstractDao
 
initDaos() - Method in class com.humandevice.android.database.DatabaseConfiguration
 
insert(DbObject, SQLiteDatabase, int) - Method in class com.humandevice.android.database.dao.AbstractDao
Prepares values using transformer.
INVALID_ID - Static variable in interface com.humandevice.android.database.model.LocalIdentifiable
 
isAutoincrement(Field) - Method in class com.humandevice.android.database.tools.DatabaseAnnotationHelper
 
isBoolean(Class) - Static method in class com.humandevice.android.database.tools.ReflectTypeUtils
 
isByteArray(Class) - Static method in class com.humandevice.android.database.tools.ReflectTypeUtils
 
isDate(Class) - Static method in class com.humandevice.android.database.tools.ReflectTypeUtils
 
isDouble(Class) - Static method in class com.humandevice.android.database.tools.ReflectTypeUtils
 
isEnum(Class) - Static method in class com.humandevice.android.database.tools.ReflectTypeUtils
 
isFixedPrecision(Class) - Static method in class com.humandevice.android.database.tools.ReflectTypeUtils
 
isFloat(Class) - Static method in class com.humandevice.android.database.tools.ReflectTypeUtils
 
isFloatingPoint(Class) - Static method in class com.humandevice.android.database.tools.ReflectTypeUtils
 
isLong(Class) - Static method in class com.humandevice.android.database.tools.ReflectTypeUtils
 
isString(Class) - Static method in class com.humandevice.android.database.tools.ReflectTypeUtils
 
iterator() - Method in class com.humandevice.android.database.SqlCursor
 

L

LocalIdentifiable - Interface in com.humandevice.android.database.model
Interface states that implementing model have primary key for database.

M

mCursor - Variable in class com.humandevice.android.database.SqlCursor
 
mTransformer - Variable in class com.humandevice.android.database.dao.AbstractDao
 

N

name - Variable in class com.humandevice.android.database.SqlColumn
 
next() - Method in class com.humandevice.android.database.SqlCursor
Moves cursor to next row

O

onConfigure(SQLiteDatabase, AbstractDao[]) - Method in class com.humandevice.android.database.DatabaseConfiguration
 
onConfigure(SQLiteDatabase) - Method in class com.humandevice.android.database.DatabaseHelper
 
onCreate(SQLiteDatabase, AbstractDao[]) - Method in class com.humandevice.android.database.DatabaseConfiguration
 
onCreate(SQLiteDatabase) - Method in class com.humandevice.android.database.DatabaseHelper
 
onDelete(SQLiteDatabase, AbstractDao[]) - Method in class com.humandevice.android.database.DatabaseConfiguration
 
onDowngrade(SQLiteDatabase, int, int, AbstractDao[]) - Method in class com.humandevice.android.database.DatabaseConfiguration
 
onDowngrade(SQLiteDatabase, int, int) - Method in class com.humandevice.android.database.DatabaseHelper
 
onPostCreate(SQLiteDatabase) - Method in class com.humandevice.android.database.dao.AbstractDao
Invoked after all AbstractDao.onTableCreate(SQLiteDatabase) methods are invoked
onPostCreate(SQLiteDatabase, AbstractDao[]) - Method in class com.humandevice.android.database.DatabaseConfiguration
 
onTableCreate(SQLiteDatabase) - Method in class com.humandevice.android.database.dao.AbstractDao
Method is used to create necessary tables for this dao.
onTableCreate(SQLiteDatabase) - Method in class com.humandevice.android.database.dao.ReflectDao
 
onUpgrade(SQLiteDatabase, int, int, AbstractDao[]) - Method in class com.humandevice.android.database.DatabaseConfiguration
 
onUpgrade(SQLiteDatabase, int, int) - Method in class com.humandevice.android.database.DatabaseHelper
 

P

prepareValues(DbObject) - Method in class com.humandevice.android.database.dao.AbstractDao
 
primaryKey() - Method in class com.humandevice.android.database.SqlColumn
 

R

ReflectDao<DbObject> - Class in com.humandevice.android.database.dao
Automatically converts annotated Entity to SQL values and provides table name.
ReflectDao() - Constructor for class com.humandevice.android.database.dao.ReflectDao
Use this constructor if ReflectDao is used for extended class.
ReflectDao(Class<DbObject>) - Constructor for class com.humandevice.android.database.dao.ReflectDao
Use this constructor if you directly instantiates ReflectDao.
ReflectDatabaseTransformer<Model> - Class in com.humandevice.android.database.dao
Reflective implementation of DatabaseTransformer
ReflectDatabaseTransformer() - Constructor for class com.humandevice.android.database.dao.ReflectDatabaseTransformer
 
ReflectDatabaseTransformer(Class<Model>) - Constructor for class com.humandevice.android.database.dao.ReflectDatabaseTransformer
 
ReflectTypeUtils - Class in com.humandevice.android.database.tools
Utils for reflect transformations
ReflectTypeUtils() - Constructor for class com.humandevice.android.database.tools.ReflectTypeUtils
 
remove() - Method in class com.humandevice.android.database.SqlCursor
 
Row(Cursor) - Constructor for class com.humandevice.android.database.SqlCursor.Row
 

S

sDatabaseHelper - Static variable in class com.humandevice.android.database.dao.AbstractDao
 
serializeModel(Model, ContentValues) - Method in class com.humandevice.android.database.dao.ReflectDatabaseTransformer
 
setAutoincrement(boolean) - Method in class com.humandevice.android.database.SqlColumn
 
setDatabase(SQLiteDatabase) - Method in class com.humandevice.android.database.dao.AbstractDao
 
setDatabaseConfiguration(Application, DatabaseConfiguration) - Static method in class com.humandevice.android.database.dao.AbstractDao
 
setDatabaseId(long) - Method in class com.humandevice.android.database.model.EntityWithId
 
setDatabaseId(long) - Method in interface com.humandevice.android.database.model.LocalIdentifiable
 
setEntityClass(Class<Model>) - Method in class com.humandevice.android.database.dao.ReflectDatabaseTransformer
 
setNativeCursor(Cursor) - Method in class com.humandevice.android.database.SqlCursor
 
setNotNull(boolean) - Method in class com.humandevice.android.database.SqlColumn
 
setPrimaryKey(boolean) - Method in class com.humandevice.android.database.SqlColumn
 
setUnique(boolean) - Method in class com.humandevice.android.database.SqlColumn
 
SqlColumn - Class in com.humandevice.android.database
Simple class containing column info.
SqlColumn() - Constructor for class com.humandevice.android.database.SqlColumn
 
SqlColumn(String, SqlColumnType) - Constructor for class com.humandevice.android.database.SqlColumn
 
SqlColumn(Cursor) - Constructor for class com.humandevice.android.database.SqlColumn
Constructor does not close cursor nor changes its state
SqlColumnType - Enum in com.humandevice.android.database
SQLite column types.
SqlCursor - Class in com.humandevice.android.database
Wraps android native cursor to provide some additional functions like iteration.
SqlCursor(Cursor) - Constructor for class com.humandevice.android.database.SqlCursor
 
SqlCursor() - Constructor for class com.humandevice.android.database.SqlCursor
 
SqlCursor.Row - Class in com.humandevice.android.database
Represents on row of cursor's data
SqlForeignKeyActions - Enum in com.humandevice.android.database
List all sqllite on Delete / on Update actions
SqlTableFactory - Class in com.humandevice.android.database
Sql table declaration helper.
SqlTableFactory(String) - Constructor for class com.humandevice.android.database.SqlTableFactory
 
startTransaction() - Method in class com.humandevice.android.database.dao.AbstractDao
Applies to ALL database operations - invariant to used DAO

T

Table - Annotation Type in com.humandevice.android.database.annotations
Table name for Model Reflect Table.
toString() - Method in enum com.humandevice.android.database.SqlForeignKeyActions
 
type - Variable in class com.humandevice.android.database.SqlColumn
 

U

unique() - Method in class com.humandevice.android.database.SqlColumn
Makes column unique
update(DbObject) - Method in class com.humandevice.android.database.dao.AbstractDao
Updates entity in database
update(ContentValues, String, String...) - Method in class com.humandevice.android.database.dao.AbstractDao
 

V

valueOf(String) - Static method in enum com.humandevice.android.database.SqlColumnType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.humandevice.android.database.SqlForeignKeyActions
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.humandevice.android.database.SqlColumnType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.humandevice.android.database.SqlForeignKeyActions
Returns an array containing the constants of this enum type, in the order they are declared.

_

_id - Variable in class com.humandevice.android.database.model.EntityWithId
 
A C D E F G H I L M N O P R S T U V _ 
Skip navigation links