Package br.com.visualmidia.persistence.add

Examples of br.com.visualmidia.persistence.add.AddCourse


            List<String> coursesList = new ArrayList<String>();
            for (int i = 0; i < items.length; i++) {
              coursesList.add(items[i].getText());
            }
            system.execute(new AddCourse(id, descriptionText
                .getText(), numberOfLessonsText.getText(),
                durationText.getText(), new Money(valueText
                    .getText()).getFloatValue(), false,
                coursesList));
            coursesCotrolCenter.updateCoursesTable();
View Full Code Here


              id = (String) system
                  .query(new GetAndLockCourseId());
            } else {
              id = course.getId();
            }
            system.execute(new AddCourse(id, descriptionText
                .getText(), numberOfLessonsText.getText(),
                durationText.getText(), new Money(valueText
                    .getText()).getFloatValue(),
                extraMaterialCheck.getSelection()));
            coursesCotrolCenter.updateCoursesTable();
View Full Code Here

    private void addEmployeeDefault() throws Exception {
//        system.executeAndQuery(new AddAndReturnEmployee((String) system.query(new GetPersonID()), "Funcion�rio Padr�o", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", null, "Secret�ria", "", new HashMap <String, List <String>> (), "01/01/2005", "Usu�rio padr�o do sistema", "", "", "", new ArrayList <FinancialInfo> (), "", "", new ArrayList <String> (), "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""));
    }

  private void addCoursesDefault() {
    system.execute(new AddCourse("1", "3D - Studio", "16", "2", 0f, true));
    system.execute(new AddCourse("2", "Access 2000", "17", "2", 0f, true));
      system.execute(new AddCourse("3", "Access 2003", "16", "2", 0f, true));
        system.execute(new AddCourse("4", "AutoCAD - Desenho Arquitet�nico", "32", "4", 0f, true));
        system.execute(new AddCourse("5", "Como Conquistar Emprego", "5", "1", 0f, true));
        system.execute(new AddCourse("6", "Como Vender mais e melhor", "16", "2", 0f, true));
        system.execute(new AddCourse("7", "Assistente Cont�bil", "22", "3", 0f, true));
        system.execute(new AddCourse("8", "Auxiliar Administrativo", "30", "4", 0f, true));
        system.execute(new AddCourse("9", "CorelDRAW 12", "30", "4", 0f, true));
        system.execute(new AddCourse("10", "CorelDRAW 9", "30", "4", 0f, true));
        system.execute(new AddCourse("11", "Digita��o Completa", "136", "3", 0f, false));
        system.execute(new AddCourse("12", "Dreamweaver", "20", "3", 0f, true));
        system.execute(new AddCourse("13", "Excel 2000", "12", "2", 0f, true));
        system.execute(new AddCourse("14", "Excel 2003", "12", "2", 0f, true));
        system.execute(new AddCourse("15", "Fireworks", "23", "1", 0f, false));
        system.execute(new AddCourse("16", "Flash 5", "16", "2", 0f, true));
        system.execute(new AddCourse("17", "Internet", "16", "2", 0f, true));
        system.execute(new AddCourse("18", "Introdu��o + Digita��o B�sica", "5", "1", 0f, false));
        system.execute(new AddCourse("19", "L�gica De Programa��o e Visual Basic", "25", "3", 0f, true));
        system.execute(new AddCourse("20", "Multim�dia", "8", "1", 0f, true));
        system.execute(new AddCourse("21", "Photoshop", "30", "4", 0f, true));
        system.execute(new AddCourse("22", "Power Point 2000", "18", "2", 0f, true));
        system.execute(new AddCourse("23", "Power Point 2003", "8", "1", 0f, true));
        system.execute(new AddCourse("24", "Publisher", "16", "2", 0f, true));
        system.execute(new AddCourse("25", "Assistente de Recursos Humanos", "16", "2", 0f, true));
        system.execute(new AddCourse("26", "Windows 98", "20", "2", 0f, true));
        system.execute(new AddCourse("27", "Windows XP", "13", "2", 0f, true));
        system.execute(new AddCourse("28", "Word 2000", "18", "2", 0f, true));
        system.execute(new AddCourse("29", "Word 2003", "12", "2", 0f, true));
       
        List<String> pack1 = new ArrayList<String>();
        pack1.add("Introdu��o + Digita��o B�sica");
        pack1.add("Windows XP");
        pack1.add("Word 2003");
        pack1.add("Multim�dia");
        pack1.add("Internet");
        pack1.add("Excel 2003");
        pack1.add("Power Point 2003");
        pack1.add("Access 2003");
        pack1.add("CorelDRAW 12");
        pack1.add("Photoshop");
        system.execute(new AddCourse("30", "OP. Computador Office 2003", "184", "23", 0f, false, pack1));

        List<String> pack2 = new ArrayList<String>();
        pack2.add("Auxiliar Administrativo");
        pack2.add("Flash 5");
        pack2.add("Dreamweaver");
        pack2.add("L�gica De Programa��o e Visual Basic");
        pack2.add("Como Conquistar Emprego");
        pack2.add("Como Vender mais e melhor");
        pack2.add("Assistente de Recursos Humanos");
        pack2.add("Assistente Cont�bil");
        system.execute(new AddCourse("31", "T�cnico de Comp. J�nior", "184", "23", 0f, false, pack2));
  }
View Full Code Here

   
    public void testSimplePersistence() throws Exception {

        Prevayler prevaylerToSave = PrevaylerFactory.createPrevayler(new PrevalentSystem(), dataDirectory);
       
        AddCourse addCourse = new AddCourse("1","Photoshop","100","10", 5, false);
        prevaylerToSave.execute(addCourse);
       
        String fName = "AAA";
        AddAndReturnStudent addStudent = new AddAndReturnStudent((String) GDSystem.getInstance().query(new GetPersonID()), "milhouse", fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, fName, null, new ArrayList<Occurrence>());
        prevaylerToSave.execute(addStudent);
View Full Code Here

    public void testAll() throws Exception{    
       
        Prevayler prevaylerToSave = PrevaylerFactory.createPrevayler(new PrevalentSystem(), dataDirectory);
       
        AddCourse addCourse = new AddCourse("1","Photoshop","100","10",5,true);       
        prevaylerToSave.execute(addCourse);
       
        prevaylerToSave = null;
       
        prevaylerToRead = PrevaylerFactory.createPrevayler(new PrevalentSystem(), dataDirectory);       
View Full Code Here

TOP

Related Classes of br.com.visualmidia.persistence.add.AddCourse

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.