Examples of findSchema()


Examples of nexj.core.meta.integration.format.xml.schema.SchemaUniverse.findSchema()

         "<element name=\"references\" type=\"is1:XML_Inherit_Schema_Reference\"/>" +
         "</schema>",
         m_resultWriter.toString());

      m_resultWriter = new StringWriter();
      schema = universe.findSchema("is3");
      xsdExporter.exportSchema(schema, m_resultWriter);

      assertEquals(
         "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
         "<schema xmlns=\"http://www.w3.org/2001/XMLSchema\"" +
View Full Code Here

Examples of nexj.core.meta.integration.format.xml.schema.SchemaUniverse.findSchema()

      m_writer.setNamespace(XML.XML_NS);

      for (int i = 0; i < sPrefixArray.length; i++)
      {
         String sPrefix = sPrefixArray[i];
         String sURI = universe.findSchema(sPrefix).getURI();

         m_writer.writeAttribute(sPrefix, sURI);
      }

      m_writer.setNamespace(null);
View Full Code Here

Examples of org.apache.directory.server.core.schema.SchemaPartitionDao.findSchema()

                   
                    try
                    {
                        // Try to retrieve the AT in the registries
                        AttributeType at = registries.getAttributeTypeRegistry().lookup( index.getAttributeId() );
                        schemaName = dao.findSchema( at.getOid() );
                    }
                    catch ( Exception e )
                    {
                        // It does not exists: just use the attribute ID
                        schemaName = dao.findSchema( index.getAttributeId() );
View Full Code Here

Examples of org.apache.directory.server.core.schema.SchemaPartitionDao.findSchema()

                        schemaName = dao.findSchema( at.getOid() );
                    }
                    catch ( Exception e )
                    {
                        // It does not exists: just use the attribute ID
                        schemaName = dao.findSchema( index.getAttributeId() );
                    }
                   
                    if ( schemaName == null )
                    {
                        throw new NamingException( "Index on unidentified attribute: " + index.toString() );
View Full Code Here

Examples of org.h2.engine.Database.findSchema()

        session.commit(true);
        Database db = session.getDatabase();
        if (!oldSchema.canDrop()) {
            throw DbException.get(ErrorCode.SCHEMA_CAN_NOT_BE_DROPPED_1, oldSchema.getName());
        }
        if (db.findSchema(newSchemaName) != null || newSchemaName.equals(oldSchema.getName())) {
            throw DbException.get(ErrorCode.SCHEMA_ALREADY_EXISTS_1, newSchemaName);
        }
        session.getUser().checkAdmin();
        db.renameDatabaseObject(session, oldSchema, newSchemaName);
        ArrayList<SchemaObject> all = db.getAllSchemaObjects();
View Full Code Here

Examples of org.h2.engine.Database.findSchema()

    public int update() {
        session.getUser().checkAdmin();
        session.commit(true);
        Database db = session.getDatabase();
        Schema schema = db.findSchema(schemaName);
        if (schema == null) {
            if (!ifExists) {
                throw DbException.get(ErrorCode.SCHEMA_NOT_FOUND_1, schemaName);
            }
        } else {
View Full Code Here

Examples of org.h2.engine.Database.findSchema()

        session.getUser().checkAdmin();
        session.commit(true);
        Database db = session.getDatabase();
        User user = db.getUser(authorization);
        user.checkAdmin();
        if (db.findSchema(schemaName) != null) {
            if (ifNotExists) {
                return 0;
            }
            throw DbException.get(ErrorCode.SCHEMA_ALREADY_EXISTS_1, schemaName);
        }
View Full Code Here

Examples of org.h2.engine.Database.findSchema()

            object = db.findRole(objectName);
            errorCode = ErrorCode.ROLE_NOT_FOUND_1;
            break;
        case DbObject.SCHEMA:
            schemaName = null;
            object = db.findSchema(objectName);
            errorCode = ErrorCode.SCHEMA_NOT_FOUND_1;
            break;
        case DbObject.SEQUENCE:
            object = db.getSchema(schemaName).getSequence(objectName);
            break;
View Full Code Here

Examples of org.h2.engine.Database.findSchema()

    public int update() {
        session.getUser().checkAdmin();
        session.commit(true);
        Database db = session.getDatabase();
        Schema schema = db.findSchema(schemaName);
        if (schema == null) {
            if (!ifExists) {
                throw DbException.get(ErrorCode.SCHEMA_NOT_FOUND_1, schemaName);
            }
        } else {
View Full Code Here

Examples of org.h2.engine.Database.findSchema()

    }

    public int update() {
        session.commit(true);
        Database db = session.getDatabase();
        if (db.findSchema(newSchemaName) != null || newSchemaName.equals(oldSchema.getName())) {
            throw DbException.get(ErrorCode.SCHEMA_ALREADY_EXISTS_1, newSchemaName);
        }
        session.getUser().checkAdmin();
        db.renameDatabaseObject(session, oldSchema, newSchemaName);
        ArrayList<SchemaObject> all = db.getAllSchemaObjects();
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.