public static JSONArray getJSONArray()
     throws JSONException, InstantiationException, IllegalAccessException, NamingException,
         SQLException, CoinDatabaseLoadException {
   JSONArray items = new JSONArray();
   for (OrganisationServiceState item : getAllStatic()) items.put(item.toJSONObject());
   return items;
 }
 public static JSONObject getJSONObject(long lId)
     throws CoinDatabaseLoadException, SQLException, NamingException, JSONException,
         InstantiationException, IllegalAccessException {
   OrganisationServiceState item = getOrganisationServiceState(lId);
   JSONObject data = item.toJSONObject();
   return data;
 }
 public static JSONArray getJSONArray(long lIdLanguage) throws Exception {
   JSONArray items = new JSONArray();
   for (OrganisationServiceState item : getAllStatic()) {
     item.setAbstractBeanLocalization(lIdLanguage);
     items.put(item.toJSONObject());
   }
   return items;
 }
 public static long storeFromJSONObject(JSONObject data) {
   try {
     OrganisationServiceState item = null;
     try {
       item = OrganisationServiceState.getOrganisationServiceState(data.getLong("lId"));
     } catch (Exception e) {
       item = new OrganisationServiceState();
       item.create();
     }
     item.setFromJSONObject(data);
     item.store();
     return item.getId();
   } catch (Exception e) {
     return 0;
   }
 }
 public static OrganisationServiceState getOrganisationServiceState(long lId)
     throws CoinDatabaseLoadException, SQLException, NamingException {
   OrganisationServiceState item = new OrganisationServiceState(lId);
   item.load();
   return item;
 }
 public static Vector<OrganisationServiceState> getAllWithWhereAndOrderByClauseStatic(
     String sWhereClause, String sOrderByClause)
     throws InstantiationException, IllegalAccessException, NamingException, SQLException {
   OrganisationServiceState item = new OrganisationServiceState();
   return item.getAllWithWhereAndOrderByClause(sWhereClause, sOrderByClause);
 }