Examples of Phone


Examples of org.hibernate.ejb.metamodel.Phone

  public void testEqualityComparisonEntityConversion() {
    EntityManager em = getOrCreateEntityManager();
    em.getTransaction().begin();
    Address address = new Address( "Street Id", "Fake Street", "Fake City", "Fake State", "Fake Zip" );
    Phone phone1 = new Phone( "1", "555", "0001", address );
    Phone phone2 = new Phone( "2", "555", "0002", address );
    Phone phone3 = new Phone( "3", "555", "0003", address );
    Phone phone4 = new Phone( "4", "555", "0004" );

    Collection<Phone> phones = new ArrayList<Phone>( 3 );
    phones.add( phone1 );
    phones.add( phone2 );
    phones.add( phone3 );
View Full Code Here

Examples of org.jboss.as.test.integration.jpa.hibernate.envers.Phone

    public void testRevisionsfromAuditJoinTable() throws Exception {

        SLSBAudit slsbAudit = lookup("SLSBAudit", SLSBAudit.class);

        Customer c1 = slsbAudit.createCustomer("MADHUMITA", "SADHUKHAN", "WORK", "+420", "543789654");
        Phone p1 = c1.getPhones().get(1);
        p1.setType("Emergency");
        slsbAudit.updatePhone(p1);
        c1.setSurname("Mondal");
        slsbAudit.updateCustomer(c1);
        c1.setFirstname("Steve");
        c1.setSurname("Jobs");
View Full Code Here

Examples of org.objectweb.speedo.pobjects.sequence.id.Phone

    PersistenceManager pm = pmf.getPersistenceManager();
    pm.getObjectIdClass(Phone.class);
    //get the sequence
    Sequence s = pm.getSequence(PHONE_SEQ);
    assertNotNull("Sequence " + PHONE_SEQ + " should not be null.", s);
    Phone p1 = new Phone();
    p1.setName("phone 1");
    Phone p2 = new Phone();
    p2.setName("phone 2");
    //make persistent
    pm.currentTransaction().begin();
    pm.makePersistent(p1);
    pm.makePersistent(p2);
    pm.currentTransaction().commit();
View Full Code Here

Examples of org.objectweb.speedo.pobjects.sequence.id.Phone

      long timeAllocate = System.currentTimeMillis();
      pm.currentTransaction().begin();
      //allocate
      s.allocate(ADDITIONAL);
      for (int i = 0; i < ADDITIONAL ; i++) {
        phones[i] = new Phone();
        phones[i].setName("phone " + i);
      }
      //make persistent
      pm.makePersistentAll(phones);
      pm.currentTransaction().commit();
      timeAllocate = System.currentTimeMillis() - timeAllocate;
      long timeNext = System.currentTimeMillis();
      pm.currentTransaction().begin();
      for (int i = ADDITIONAL; i < ADDITIONAL*2 ; i++) {
        phones[i - ADDITIONAL] = new Phone();
        phones[i - ADDITIONAL].setName("phone " + i);
      }
      //make persistent
      pm.makePersistentAll(phones);
      pm.currentTransaction().commit();
View Full Code Here

Examples of org.plugtree.training.simplevalidation.model.Phone

    @Test
    public void noErrorsValidation() {
        Person person = new Person("salaboy");
        person.addAddress(new Address(person.getId(), "7th", 123, "92013"));
        person.addPhone(new Phone(person.getId(), "555-1235"));

        StatefulKnowledgeSession ksession = createKSession();
        KnowledgeRuntimeLoggerFactory.newConsoleLogger(ksession);

        for (Address address : person.getAddresses()) {
View Full Code Here

Examples of org.uddi.api_v2.Phone

                List<Phone> r = new ArrayList<Phone>();
                if (phone == null) {
                        return r;
                }
                for (int i = 0; i < phone.size(); i++) {
                        Phone x = new Phone();
                        x.setUseType(phone.get(i).getUseType());
                        x.setValue(phone.get(i).getValue());
                        r.add(x);
                }
               
                return r;
        }
View Full Code Here

Examples of org.uddi.api_v3.Phone

    address.getAddressLine().add(addressLineOne);
    address.getAddressLine().add(addressLineTwo);
    address.getAddressLine().add(addressLineThree);
   
    //Contacts phone number details
    Phone phone = new Phone();
    phone.setUseType("Hotline");
    phone.setValue(data.getUSPhoneNumber());
   
    //Contact object
    Contact contact = new Contact();
    contact.setUseType("CEO");
    contact.getPersonName().add(personName);
View Full Code Here

Examples of samples.addr.Phone

    public class Run implements Runnable {
        public void run() {
            try {
                for (int i = 0; i < 4; ++i) {
                    Address address = new Address();
                    Phone phone = new Phone();
                    address.setStreetNum(var++);
                    address.setStreetName("2");
                    address.setCity("3");
                    address.setState(StateType.TX);
                    address.setZip(var++);
                    phone.setAreaCode(11);
                    phone.setExchange("22");
                    phone.setNumber("33");
                    address.setPhoneNumber(phone);
                   
                    binding.addEntry("hi", address);
                    Address addressRet = binding.getAddressFromName("hi");
                    // succeeded, count it.
View Full Code Here

Examples of test.wsdl.qualify2.Phone

            throw new junit.framework.AssertionFailedError("JAX-RPC ServiceException caught: " + jre);
        }
        assertTrue("binding is null", binding != null);

        try {
            test.wsdl.qualify2.Phone phone = new Phone();
            phone.setAge(35);
            phone.setAreaCode(505);
            phone.setColor("red");
            phone.setExchange("555");
            phone.setHair("brown");
            phone.setNumber("1212");
           
            Phone result = binding.echoPhone(phone);
           
            // Check the response
            assertTrue(result.equals(phone));

            // Validate XML reponse to make sure attributes are properly
            // qualified or not per the WSDL
            MessageContext mc = null;
            try {
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.