Code example for DatatypeFactory

Methods: newXMLGregorianCalendar

0
 
    static XMLGregorianCalendar sqlDateToXMLCal(java.sql.Date sqlDate) {
        java.util.Date jDate = new java.util.Date(sqlDate.getTime());
        GregorianCalendar calendar = new GregorianCalendar();
        calendar.setTime(jDate);
        return df.newXMLGregorianCalendar(calendar);
    } 
 
    static void checkEmployeeRecordType(EmployeeRecordType ert)
            throws DataProcessingFault { 
        checkNotEmpty(ert.getFirstName(), "First Name");
        checkNotEmpty(ert.getLastName(), "Last Name");
        checkNotEmpty(ert.getDepartmentId(), "Department Id");
        checkNotEmpty(ert.getHiredate(), "Hiredate");
    } 
 
    static void checkEmployeeIDExists(Integer employeeId)
            throws DataProcessingFault { 
        try { 
            checkNotEmpty(employeeId, "Employee Id");
Connect your IDE to all the code out there  Get Codota for Java