ePerion Gallery
1.2
ePerion gallery application for the europeean ePerion project. This is an android application which manage a smart gallery where you can modify picture colors, sort the pictures and visualize any picture on Google Map.
|
Public Member Functions | |
PicturesDBAdapter (Context context) | |
void | open () |
void | close () |
SQLiteDatabase | getDatabase () |
void | dropPictureTable () |
Picture | getPicture (int id) |
ArrayList< Picture > | getAllPicturesOrderByDate () |
ArrayList< Picture > | getAllPicturesOrderByLocation () |
ArrayList< Picture > | getAllPicturesOrderByName () |
ArrayList< Picture > | getAllPictures () |
void | insertPicture (Picture pic) |
void | updatePicture (int id, Picture pictureToUpdate) |
void | removePicture (int id) |
void | removePicture (String name) |
Database adapter which allows retrieve, update or insert picture attributes from the database.
com.android.ePerion.gallery.database.PicturesDBAdapter.PicturesDBAdapter | ( | Context | context | ) |
Construct the database adapter in the current context.
context | Activity context. |
void com.android.ePerion.gallery.database.PicturesDBAdapter.close | ( | ) |
Close the database.
void com.android.ePerion.gallery.database.PicturesDBAdapter.dropPictureTable | ( | ) |
Delete all rows which belong to the picture table.
ArrayList<Picture> com.android.ePerion.gallery.database.PicturesDBAdapter.getAllPictures | ( | ) |
Get all the pictures from the database.
ArrayList<Picture> com.android.ePerion.gallery.database.PicturesDBAdapter.getAllPicturesOrderByDate | ( | ) |
Get all the pictures order by the date.
ArrayList<Picture> com.android.ePerion.gallery.database.PicturesDBAdapter.getAllPicturesOrderByLocation | ( | ) |
Get all the pictures order by the location where the pictures were taken.
ArrayList<Picture> com.android.ePerion.gallery.database.PicturesDBAdapter.getAllPicturesOrderByName | ( | ) |
Get all the pictures order by their name.
SQLiteDatabase com.android.ePerion.gallery.database.PicturesDBAdapter.getDatabase | ( | ) |
Get the current database.
Picture com.android.ePerion.gallery.database.PicturesDBAdapter.getPicture | ( | int | id | ) |
void com.android.ePerion.gallery.database.PicturesDBAdapter.insertPicture | ( | Picture | pic | ) |
Insert a new picture in the picture database.
pic | the pic |
void com.android.ePerion.gallery.database.PicturesDBAdapter.open | ( | ) |
Open the database.
void com.android.ePerion.gallery.database.PicturesDBAdapter.removePicture | ( | int | id | ) |
Remove the selected picture with its ID.
id | Picture ID. |
void com.android.ePerion.gallery.database.PicturesDBAdapter.removePicture | ( | String | name | ) |
Remove the selected picture from its Uri.
name | the name |
void com.android.ePerion.gallery.database.PicturesDBAdapter.updatePicture | ( | int | id, |
Picture | pictureToUpdate | ||
) |
Update a row thanks to its ID and the new picture attributes.
id | Row ID. |
pictureToUpdate | Picture object with the new attributes. |