Skip to content

Commit c1c250c

Browse files
committed
Added a picture and some formatting options.
1 parent 6619e2e commit c1c250c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
# JDXAndroidImagesExample
22
### A Simple Android Project Demonstrating Persistence of Binary (e.g., image) Data Using JDXA ORM
33

4-
Storing some binary (e.g., image or encoded bytes) data in a separate attribute along with 'normal' data in other attributes is an important object modeling requirement for many applications. This project exemplifies how some binary data, as part of an object, can easily be stored and retrieved using SQLite database and JDXA ORM.
4+
Storing some binary (e.g., image or encoded bytes) data in a separate attribute along with 'normal' data in other attributes is an important object modeling requirement for many applications. This project exemplifies how some binary data, as part of an object, can easily be stored and retrieved using SQLite database and JDXA ORM.
55

6-
Some highlights:
6+
##### Some highlights:
77
* The object model consists of a Person class that contains a byte[] attribute (named picture) to hold binary (image) data. Some US Presidents are instances of the Person class in this project.
88
* The binary data is stored in a 'blob' column of a database table. The other 'normal' data is stored in separate columns.
99
* The declarative mapping specification (in the file .../res/raw/images_example.jdx) is simple, intuitive, non-intrusive, and succinct.
1010
* API calls for CRUD operations are simple and flexible.
1111
* Although, in the example code, the images of the Person objects are obtained from the res\drawable folder through resource ids, there could be other sources of the pictures also (e.g. URLs or file names).
1212
* If the image data is persistently and reliably available from non-database sources (e.g. resource ids, file names, or URLs), one may just save the source location in the database instead of the actual image data. This project is intended to illustrate how JDXA ORM can be used to easily save binary data in a database.
1313

14-
To run this app in your own setup, please do the following:
14+
![Persons Pictures](https://softwaretree.com/v1/images/US_Presidents_Blended.jpg)
15+
16+
##### To run this app in your own setup, please do the following:
1517
* Clone this project on your desktop.
1618
* Get the JDXA SDK download instructions from [this link](http://softwaretree.com/v1/products/jdxa/download-jdxa.php).
1719
* You may download just the mini version of the SDK.
@@ -23,7 +25,7 @@ JDXA is a simple yet powerful, non-intrusive, flexible, and lightweight Object-R
2325

2426
Adhering to some well thought-out [KISS (Keep It Simple and Straightforward) principles](http://softwaretree.com/v1/KISSPrinciples.html), JDXA boosts developer productivity and reduces maintenance hassles by eliminating endless lines of tedious SQL code.
2527

26-
Some of the powerful and practical features of JDXA include:
28+
##### Some of the powerful and practical features of JDXA include:
2729
* Declarative mapping specification between an object model and a relational model is done textually using a simple grammar (no XML complexity).
2830
* Full flexibility in domain object modeling – one-to-one, one-to-many, and many-to-many relationships as well as class-hierarchies supported.
2931
* POJO (Plain Old Java Objects) friendly non-intrusive programming model, which does not require you to change your Java classes in any way:

0 commit comments

Comments
 (0)