Examples of Person


Examples of quickdb.model.Person

        System.out.println("testSaveSimpleObject");
        this.testSaveSimpleObject();
    }

    public void testSaveSimpleObject() {
        Person person = new Person("LeeLoo", 1);
        boolean value = admin.save(person);

        System.out.println(value);
    }
View Full Code Here

Examples of quickstart.model.Person

        return Action.SUCCESS;
    }

    public String save() {
        this.service.save(person);
        this.person = new Person();
        return execute();
    }
View Full Code Here

Examples of sample.domain.Person

import sample.domain.Person;

public class TableModel extends ObjectTableModel<Person> {

  public Person newObject() {
    return new Person();
  }
View Full Code Here

Examples of samples.Person

                                                         username,
                                                         password);
            // CREATE PERSON AND SERIALIZE
            PersonSerializer.init(con);
            GregorianCalendar cal = new GregorianCalendar(2000,10,5);
            Person p = new Person("ter","555-11-2222",cal.getTime(), 9);
            p.roles = new String[] {"ceo", "janitor"};
            cal.set(2001, 01, 01);
            Date a = new Date(cal.getTimeInMillis());
            cal.set(2002, 02, 02);
            p.vacation = new Date[] {a, cal.getTime()};
            PersonSerializer.savePerson(con, p);        // SAVE Person TO DB
            // READ PERSON BACK IN
            String q="SELECT * FROM Person WHERE ID=1"; // GET FIRST Person
            Statement stat = con.createStatement();
            ResultSet rs = stat.executeQuery(q);
            rs.next();
            Person back = PersonSerializer.nextPerson(con, rs);
            System.out.println("read back: "+back);
            rs.close();
           
            con.close();
            System.out.println("OK");
View Full Code Here

Examples of simplenlg.features.Person

      NLGElement verbElement) {
    NLGElement currentElement = null;
    List<NLGElement> subjects = phrase
        .getFeatureAsElementList(InternalFeature.SUBJECTS);
    boolean pluralSubjects = false;
    Person person = null;

    if (subjects != null) {
      switch (subjects.size()) {
      case 0:
        break;
View Full Code Here

Examples of sk.davinci.demows.entities.Person

    public static List<Person> getPersons() {
        return persons;
    }

    public static Person getPerson(String surname) {
        Person person = null;
        for (int i = 0; i < persons.size(); i++) {
            if (persons.get(i).getSurname().equals(surname)) {
                person = persons.get(i);
                break;
            }
View Full Code Here

Examples of su.litvak.moviedb.entity.Person

        for (PersonPanel pp : lstPP) {
            if (pp.fld.getText().trim().isEmpty()) {
                continue;
            }

            Person p = new Person();
            p.name = pp.fld.getText().trim();
            newPersons.add(p);
        }

        for (Iterator<Person> it = persons.iterator(); it.hasNext(); ) {
View Full Code Here

Examples of support.Person

    }

    @Test
    public void testForSortBy() {
        Person joe = new Person("Joe", 10000, 34);
        Person amanda = new Person("Amanda", 70000, 24);
        Person chloe = new Person("Chloe", 10000, 30);

        List<Person> inputList = new LinkedList<Person>();
        inputList.add(joe);
        inputList.add(amanda);
        inputList.add(chloe);
View Full Code Here

Examples of team.Person

    @Parameterized.Parameters(name = "{0}") // {0} = toString() of object
    public static java.util.Collection<Object[]> generateData() {

        ArrayList<Person> persons = new ArrayList<>();
        persons.add(new Person("aaa", new BigDecimal(1.1), "soccer", "jumping"));
        persons.add(new Person("bbbb", new BigDecimal(2.56), "running"));
        persons.add(new Person("cccc", new BigDecimal(2.91)));
        persons.add(new Person("ddddd", new BigDecimal(8.39), "flying", "running"));

        return Arrays.asList(new Object[][]{
                {new OriginalTeam(persons)},
                {new team.LambdaTeam(persons)},
        });
View Full Code Here

Examples of test.comp.Person

    {
        ItsNatHTMLDocument itsNatDoc = null;
        ItsNatHTMLComponentManager componentMgr = itsNatDoc.getItsNatHTMLComponentManager();

        ItsNatFreeLabel comp = (ItsNatFreeLabel)componentMgr.createItsNatComponentById("labelId","freeLabel",null);
        try { comp.setValue(new Person("Jose M.","Arranz")); }
        catch(PropertyVetoException ex) { throw new RuntimeException(ex); }

        ItsNatLabelEditor editor = new PersonCustomLabelEditor();
        comp.setItsNatLabelEditor(editor);
    }
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.