public class WloSqlOpenHelper
extends android.database.sqlite.SQLiteOpenHelper
| Constructor and Description |
|---|
WloSqlOpenHelper(android.content.Context context) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearCalcifiedPartTakings() |
void |
close() |
<M extends BaseModel> |
deleteData(M model) |
void |
deleteMeasurement(MeasurementModel measurement) |
android.database.Cursor |
getAllCalcifiedPartTakings() |
android.database.Cursor |
getAllCalcifiedPartTakings(String scientificSpeciesId) |
android.database.Cursor |
getAllCategories() |
android.database.Cursor |
getAllCategoryWeigths(String scientificSpeciesId) |
android.database.Cursor |
getAllCommercialSpecies(String metierId) |
android.database.Cursor |
getAllContexts() |
android.database.Cursor |
getAllLocations(String contextId) |
android.database.Cursor |
getAllMeasurements(String scientificSpeciesId) |
android.database.Cursor |
getAllMeasurementsForCommercialSpecies(String commercialSpeciesId) |
android.database.Cursor |
getAllMetiers(String vesselId) |
android.database.Cursor |
getAllQualitativeValues() |
android.database.Cursor |
getAllQualitativeValues(String categoryId) |
android.database.Cursor |
getAllRefCommercialSpecies() |
android.database.Cursor |
getAllRefLocations() |
android.database.Cursor |
getAllRefMensurations() |
android.database.Cursor |
getAllRefMetiers() |
android.database.Cursor |
getAllRefPresentations() |
android.database.Cursor |
getAllRefScientificSpecies() |
android.database.Cursor |
getAllRefStates() |
android.database.Cursor |
getAllRefVessels() |
android.database.Cursor |
getAllScientificSpecies(String commercialSpeciesId) |
android.database.Cursor |
getAllSortCategories() |
android.database.Cursor |
getAllVessels(String locationId) |
android.database.Cursor |
getCategoryWeight(String scientificSpeciesId,
String category1Id,
String category2Id,
String category3Id) |
void |
onCreate(android.database.sqlite.SQLiteDatabase db) |
void |
onDowngrade(android.database.sqlite.SQLiteDatabase db,
int oldVersion,
int newVersion) |
void |
onOpen(android.database.sqlite.SQLiteDatabase db) |
void |
onUpgrade(android.database.sqlite.SQLiteDatabase db,
int oldVersion,
int newVersion) |
<M extends BaseModel> |
saveData(Collection<M> models) |
<M extends BaseModel> |
saveData(M model) |
static <E> List<E> |
transformCursorIntoCollection(android.database.Cursor cursor,
com.google.common.base.Function<android.database.Cursor,E> function) |
public static final String DATABASE_NAME
public static final int DATABASE_VERSION
public static final String TEXT_TYPE
public static final String INTEGER_TYPE
public static final String NUMERIC_TYPE
public static final String REAL_TYPE
public static final String COMMA_SEP
public static final String NOT_NULL
protected static final String SQL_CREATE_CONTEXTS
protected static final String SQL_DELETE_CONTEXTS
protected static final String SQL_CREATE_LOCATIONS
protected static final String SQL_DELETE_LOCATIONS
protected static final String SQL_CREATE_VESSELS
protected static final String SQL_DELETE_VESSELS
protected static final String SQL_CREATE_METIERS
protected static final String SQL_DELETE_METIERS
protected static final String SQL_CREATE_COMMERCIAL_SPECIES
protected static final String SQL_DELETE_COMMERCIAL_SPECIES
protected static final String SQL_CREATE_SCIENTIFIC_SPECIES
protected static final String SQL_DELETE_SCIENTIFIC_SPECIES
protected static final String SQL_CREATE_MEASUREMENTS
protected static final String SQL_DELETE_MEASUREMENTS
protected static final String SQL_CREATE_CATEGORY_WEIGHTS
protected static final String SQL_DELETE_CATEGORY_WEIGHTS
protected static final String SQL_CREATE_CALCIFIED_PART_TAKINGS
protected static final String SQL_DELETE_CALCIFIED_PART_TAKINGS
protected static final String SQL_CREATE_CATEGORIES
protected static final String SQL_DELETE_CATEGORIES
protected static final String SQL_CREATE_QUALITATIVE_VALUES
protected static final String SQL_DELETE_QUALITATIVE_VALUES
protected static final String SQL_CREATE_REF_COMMERCIAL_SPECIES
protected static final String SQL_DELETE_REF_COMMERCIAL_SPECIES
protected static final String SQL_CREATE_REF_LOCATIONS
protected static final String SQL_DELETE_REF_LOCATIONS
protected static final String SQL_CREATE_REF_MENSURATIONS
protected static final String SQL_DELETE_REF_MENSURATIONS
protected static final String SQL_CREATE_REF_METIERS
protected static final String SQL_DELETE_REF_METIERS
protected static final String SQL_CREATE_REF_PRESENTATIONS
protected static final String SQL_DELETE_REF_PRESENTATIONS
protected static final String SQL_CREATE_REF_SCIENTIFIC_SPECIES
protected static final String SQL_DELETE_REF_SCIENTIFIC_SPECIES
protected static final String SQL_CREATE_REF_STATES
protected static final String SQL_DELETE_REF_STATES
protected static final String SQL_CREATE_REF_VESSELS
protected static final String SQL_DELETE_REF_VESSELS
public void onCreate(android.database.sqlite.SQLiteDatabase db)
onCreate in class android.database.sqlite.SQLiteOpenHelperpublic void onUpgrade(android.database.sqlite.SQLiteDatabase db,
int oldVersion,
int newVersion)
onUpgrade in class android.database.sqlite.SQLiteOpenHelperpublic void onDowngrade(android.database.sqlite.SQLiteDatabase db,
int oldVersion,
int newVersion)
onDowngrade in class android.database.sqlite.SQLiteOpenHelperpublic void onOpen(android.database.sqlite.SQLiteDatabase db)
onOpen in class android.database.sqlite.SQLiteOpenHelperpublic void close()
close in class android.database.sqlite.SQLiteOpenHelperpublic android.database.Cursor getAllContexts()
public android.database.Cursor getAllLocations(String contextId)
public android.database.Cursor getAllVessels(String locationId)
public android.database.Cursor getAllMetiers(String vesselId)
public android.database.Cursor getAllCommercialSpecies(String metierId)
public android.database.Cursor getAllSortCategories()
public android.database.Cursor getAllMeasurementsForCommercialSpecies(String commercialSpeciesId)
public android.database.Cursor getAllScientificSpecies(String commercialSpeciesId)
public android.database.Cursor getAllMeasurements(String scientificSpeciesId)
public void deleteMeasurement(MeasurementModel measurement)
public android.database.Cursor getAllCategoryWeigths(String scientificSpeciesId)
public android.database.Cursor getCategoryWeight(String scientificSpeciesId, String category1Id, String category2Id, String category3Id)
public android.database.Cursor getAllCalcifiedPartTakings()
public android.database.Cursor getAllCalcifiedPartTakings(String scientificSpeciesId)
public void clearCalcifiedPartTakings()
public android.database.Cursor getAllCategories()
public android.database.Cursor getAllQualitativeValues()
public android.database.Cursor getAllQualitativeValues(String categoryId)
public android.database.Cursor getAllRefCommercialSpecies()
public android.database.Cursor getAllRefLocations()
public android.database.Cursor getAllRefMensurations()
public android.database.Cursor getAllRefMetiers()
public android.database.Cursor getAllRefPresentations()
public android.database.Cursor getAllRefScientificSpecies()
public android.database.Cursor getAllRefStates()
public android.database.Cursor getAllRefVessels()
public <M extends BaseModel> void saveData(M model)
public <M extends BaseModel> void saveData(Collection<M> models)
public <M extends BaseModel> void deleteData(M model)
public static <E> List<E> transformCursorIntoCollection(android.database.Cursor cursor, com.google.common.base.Function<android.database.Cursor,E> function)
Copyright © 2013–2014 CodeLutin. All rights reserved.