public class Cannons_DAO extends Game_DAO
Modifier and Type | Field and Description |
---|---|
static Cannons_DAO |
SINGLETON |
EMPTY_ARRAY_OF_STRINGS
Constructor and Description |
---|
Cannons_DAO() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(JSONArray objArr)
Adds the json data to the database.
|
Cannon[] |
create()
Creates an array of cannon objects based on the parameter received
and the query made to the database.
|
public static final Cannons_DAO SINGLETON
public boolean add(JSONArray objArr) throws JSONException
JSONException
public Cannon[] create()