Examples of save()


Examples of jsky.catalog.astrocat.AstroCatConfig.save()

                Object o = getValue();
                if (o instanceof Exception) {
                    DialogUtil.error((Exception) o);
                } else {
                    setVisible(false);
                    config.save();
                    _fireChangeEvent();
                }
            }
        }.start();
    }
View Full Code Here

Examples of k8.util.PixelStoreState.save()

      h = newH;
      level++;
    }

    // Restore original glPixelStore state
    pss.save();
  }

  /**
   * Method bytesPerPixel.
   *
 
View Full Code Here

Examples of kirjastox.model.AudioRecordsDataAccessObject.save()

        AudioRecordsDataAccessObject recordsPersistentData =
                new AudioRecordsDataAccessObject();
        ArrayList<AudioRecord> newRecords =
                new ArrayList<>(audioRecords);
        recordsPersistentData.updateAll(newRecords);
        recordsPersistentData.save();
    }
}
View Full Code Here

Examples of kirjastox.model.BooksDataAccessObject.save()

    public void updateBooksPersistentStore(){
        // Tässä päivitetään ja tallennetaan muutokset tiedostoon
        BooksDataAccessObject booksPersistentData = new BooksDataAccessObject();
        ArrayList<Book> updatedBooks = new ArrayList<Book>(books);
        booksPersistentData.updateAll(updatedBooks);
        booksPersistentData.save();
    }
   
    public void updateAudioRecordsPersistentStore(){
        // Tässä päivitetään ja tallennetaan muutokset tiedostoon
        AudioRecordsDataAccessObject audioRecordPersistentData = new AudioRecordsDataAccessObject();
View Full Code Here

Examples of kirjastox.model.CustomersDataAccessObject.save()

        int index = customersPersistentData.getCustomerIndexByCardNumber(cardNumber);
        this.customers.get(index).loanBook(loanBook);
       
        ArrayList<Customer> updatedCustomers = new ArrayList<Customer>(customers);
        customersPersistentData.updateAll(updatedCustomers);
        customersPersistentData.save();
    }
   
    public void setBookReturned(Book returningBook){
        int bookIndex = this.getBooks().indexOf(returningBook);
        Book bookTitle = this.getBooks().get(bookIndex);
View Full Code Here

Examples of krati.core.StoreConfig.save()

        assertTrue(Arrays.equals("value".getBytes(), store.get("key".getBytes())));
        store.close();
       
        config.setDataHandler(new DefaultDataStoreHandler());
        assertTrue(config.getDataHandler() != null);
        config.save();
       
        StoreConfig config2 = new StoreConfig(dir, 10000);
        assertTrue(config2.getDataHandler() == null);
       
        store = new DynamicDataStore(config2);
View Full Code Here

Examples of krati.core.StorePartitionConfig.save()

        double hashLoadFactor = StoreParams.HASH_LOAD_FACTOR_DEFAULT - 0.07;
        config.setHashLoadFactor(hashLoadFactor);
        assertEquals(hashLoadFactor, config.getHashLoadFactor());
       
        config.validate();
        config.save();
       
        StorePartitionConfig config2 = new StorePartitionConfig(getHomeDir(), partitionStart, partitionCount);
       
        assertEquals(config.isIndexesCached(), config2.isIndexesCached());
        assertEquals(config.getIndexesCached(), config2.getIndexesCached());
View Full Code Here

Examples of krati.core.array.entry.PreFillEntryLong.save()

       
        for(int i = cnt - 1; i >= 0; i--) {
            String fileName = getEntryFileName(startId + i);
            File file = new File(testDir, fileName);
            PreFillEntryLong entry = new PreFillEntryLong(100);
            entry.save(file);
            entryList.add(entry);
        }
       
        EntryUtility.sortEntriesById(entryList);
       
View Full Code Here

Examples of lesson07.storage.DatabaseStorage.save()

        for(int i = 1; i <= 20; i++) {
            Cat cat = new Cat();
            cat.setName("cat" + i);
            cat.setAge(i);
            storage.save(cat);
        }

        cats = storage.list(Cat.class);
        if (cats.size() != 20) throw new Exception("Number of cats in storage should be 20!");
View Full Code Here

Examples of lesson07.storage.Storage.save()

        for(int i = 1; i <= 20; i++) {
            Cat cat = new Cat();
            cat.setName("cat" + i);
            cat.setAge(i);
            storage.save(cat);
        }

        cats = storage.list(Cat.class);
        if (cats.size() != 20) throw new Exception("Number of cats in storage should be 20!");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.