Package kirjastox.model

Examples of kirjastox.model.AudioRecordsDataAccessObject


        cancelBuyRecordButton.setVisible(show);
        buyingButton.setVisible(!show);
    }
   
    private void updateAudioRecordsPersistentStore() {
        AudioRecordsDataAccessObject recordsPersistentData =
                new AudioRecordsDataAccessObject();
        ArrayList<AudioRecord> newRecords =
                new ArrayList<>(audioRecords);
        recordsPersistentData.updateAll(newRecords);
        recordsPersistentData.save();
    }
View Full Code Here


        this.appInfoMessage ="Tervetuloa Kirjasto-sovellukseen.";

        BooksDataAccessObject booksPersistentData = new BooksDataAccessObject();           
        books = FXCollections.observableArrayList(booksPersistentData.getAll());
       
        AudioRecordsDataAccessObject audioRecordsPersistentData = new AudioRecordsDataAccessObject();
        audioRecords = FXCollections.observableArrayList(audioRecordsPersistentData.getAll());
       
        CustomersDataAccessObject customersPersistentData = new CustomersDataAccessObject();
        customers = FXCollections.observableArrayList(customersPersistentData.getAll());
    }
View Full Code Here

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

TOP

Related Classes of kirjastox.model.AudioRecordsDataAccessObject

Copyright © 2018 www.massapicom. 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.