Examples of updateSchema()


Examples of org.fenixedu.academic.dto.alumni.AlumniJobBean.updateSchema()

    public ActionForward createBusinessAreaPostback(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {

        AlumniJobBean viewStateBean = (AlumniJobBean) getObjectFromViewState("jobCreateBean");
        viewStateBean.updateSchema();
        RenderUtils.invalidateViewState("jobCreateBean");
        request.setAttribute("jobCreateBean", viewStateBean);
        return mapping.findForward("manageProfessionalInformation");
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.alumni.AlumniJobBean.updateSchema()

    public ActionForward updateBusinessAreaPostback(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {

        AlumniJobBean viewStateBean = (AlumniJobBean) getObjectFromViewState("jobUpdateBean");
        viewStateBean.updateSchema();
        RenderUtils.invalidateViewState("jobUpdateBean");
        request.setAttribute("jobUpdateBean", viewStateBean);
        return mapping.findForward("manageProfessionalInformation");
    }
View Full Code Here

Examples of org.geotools.data.memory.MemoryDataStore.updateSchema()

        MemoryDataStore ds = service.resolve(MemoryDataStore.class, new NullProgressMonitor());
        List<String> typeNamesList = Arrays.asList(ds.getTypeNames());
        String localPart = featureType.getName().getLocalPart();
        if (typeNamesList.contains(localPart)) {
            try {
                ds.updateSchema(localPart, featureType);
            } catch (Exception e) {
                // some datastores do not support schema update, try a name change
                // create the feature type
                String name = checkSameName(typeNamesList, localPart);
                SimpleFeatureTypeBuilder b = new SimpleFeatureTypeBuilder();
View Full Code Here

Examples of org.wso2.carbon.governance.api.schema.SchemaManager.updateSchema()

        assertTrue(registry.resourceExists("/schemas/org/bar/purchasing/purchasing.xsd"));

        OMElement schemaElement = newSchema.getSchemaElement();
        schemaElement.addAttribute("targetNamespace", "http://ww2.wso2.org/schema-test", null);
        schemaElement.declareNamespace("http://ww2.wso2.org/schema-test", "tns");
        schemaManager.updateSchema(newSchema);

        assertEquals("/schemas/org/wso2/ww2/schema_test/purchasing.xsd", newSchema.getPath());
        assertFalse(registry.resourceExists("/test_schemas/org/bar/purchasing.xsd"));

        // doing an update without changing anything.
View Full Code Here

Examples of org.wso2.carbon.governance.api.schema.SchemaManager.updateSchema()

        assertEquals("/schemas/org/wso2/ww2/schema_test/purchasing.xsd", newSchema.getPath());
        assertFalse(registry.resourceExists("/test_schemas/org/bar/purchasing.xsd"));

        // doing an update without changing anything.
        schemaManager.updateSchema(newSchema);

        assertEquals("/schemas/org/wso2/ww2/schema_test/purchasing.xsd", newSchema.getPath());
        assertEquals("0.01", newSchema.getAttribute("version"));

        newSchema = schemaManager.getSchema(schema.getId());
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.