Ejemplo n.º 1
0
 public static DataAccess createDataAccess(String dbName) {
   if (dataAccessService == null) {
     dataAccessService = new DataAccessObject(dbName);
     dataAccessService.open(Main.getDBPathName());
   }
   return dataAccessService;
 }
Ejemplo n.º 2
0
 public static DataAccess createDataAccess(DataAccess alternateDataAccessService) {
   if (dataAccessService == null) {
     dataAccessService = alternateDataAccessService;
     dataAccessService.open(Main.getDBPathName());
   }
   return dataAccessService;
 }