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