Package commonj.sdo

Examples of commonj.sdo.DataObject.detach()


     
      List departments = company.getList(COMPANY_DEPARTMENT);
      DataObject department = (DataObject) departments.get(0);
      List employees = department.getList(DEPARTMENT_EMPLOYEES);
      DataObject employeeFromList = (DataObject) employees.get(2);
      employeeFromList.detach();

      DataObject newEmployee = department.createDataObject(DEPARTMENT_EMPLOYEES);

      newEmployee.set(EMPLOYEE_NAME, "Al Smith");
      newEmployee.set(EMPLOYEE_SN, "E0005");
View Full Code Here


             * In order to remove that employee from the data graph, we could
             */

            // remove the employee from the list of employees
            System.out.println("Removing employee " + employeeFromXPath.getString("name") + " from list of employees");
            employeeFromXPath.detach();

            /*
             * And, finally, to create a new employee:
             */
            // create a new employee
View Full Code Here

            // Get the employee at index 1 on the list
            DataObject employeeFromList = (DataObject) employees.get(2);

            // remove the employee from the graph
            System.out.println("Removing employee " + employeeFromList.getString("name") + " from list of employees");
            employeeFromList.detach();

            // create a new employee
            System.out.println("Creating new employee (manager) Al Smith and adding to list");
            DataObject newEmployee = department.createDataObject(DEPARTMENT_EMPLOYEES);
View Full Code Here

     
      List departments = company.getList(COMPANY_DEPARTMENT);
      DataObject department = (DataObject) departments.get(0);
      List employees = department.getList(DEPARTMENT_EMPLOYEES);
      DataObject employeeFromList = (DataObject) employees.get(2);
      employeeFromList.detach();

      DataObject newEmployee = department.createDataObject(DEPARTMENT_EMPLOYEES);

      newEmployee.set(EMPLOYEE_NAME, "Al Smith");
      newEmployee.set(EMPLOYEE_SN, "E0005");
View Full Code Here

             * In order to remove that employee from the data graph, we could
             */

            // remove the employee from the list of employees
            System.out.println("Removing employee " + employeeFromXPath.getString("name") + " from list of employees");
            employeeFromXPath.detach();

            /*
             * And, finally, to create a new employee:
             */
            // create a new employee
View Full Code Here

            // Get the employee at index 1 on the list
            DataObject employeeFromList = (DataObject) employees.get(2);

            // remove the employee from the graph
            System.out.println("Removing employee " + employeeFromList.getString("name") + " from list of employees");
            employeeFromList.detach();

            // create a new employee
            System.out.println("Creating new employee (manager) Al Smith and adding to list");
            DataObject newEmployee = department.createDataObject(DEPARTMENT_EMPLOYEES);
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.