Examples of NoSuchSchemaException


Examples of com.foundationdb.server.error.NoSuchSchemaException

        AkibanInformationSchema ais = ddlFunctions.getAIS(session);
        final String schemaName = dropSchema.getSchemaName();

        Schema curSchema = ais.getSchema(schemaName);
        if((curSchema == null) &&
           skipOrThrow(context, dropSchema.getExistenceCheck(), curSchema, new NoSuchSchemaException(schemaName))) {
            return;
        }
        // 1 == RESTRICT, meaning no drop if the schema isn't empty
        if (dropSchema.getDropBehavior() == StatementType.DROP_RESTRICT ||
                dropSchema.getDropBehavior() == StatementType.DROP_DEFAULT)
View Full Code Here

Examples of com.foundationdb.server.error.NoSuchSchemaException

                                     server.getProperty("user") : node.getSchemaName());
                if (server.getAIS().getSchema(schemaName) != null) {
                    server.setDefaultSchemaName(schemaName);
                }
                else {
                    throw new NoSuchSchemaException(schemaName);
                }
            }
            break;
        case BEGIN_TRANSACTION:
            server.beginTransaction();
View Full Code Here

Examples of com.foundationdb.server.error.NoSuchSchemaException

                String schemaName = constraintName.getSchemaName();
                if (schemaName == null)
                    schemaName = server.getDefaultSchemaName();
                Schema schema = server.getAIS().getSchema(schemaName);
                if (schema == null)
                    throw new NoSuchSchemaException(schemaName);
                ForeignKey foreignKey = null;
                for (Table table : schema.getTables().values()) {
                    ForeignKey tfk = table.getReferencingForeignKey(constraintName.getTableName());
                    if (tfk != null) {
                        if (foreignKey == null)
View Full Code Here

Examples of org.openmhealth.reference.exception.NoSuchSchemaException

      Registry.getInstance().getSchema(schemaId, schemaVersion);
   
    // Make sure the schema exists.
    if(schema == null) {
      throw
        new NoSuchSchemaException(
          "The schema with id '" +
            schemaId +
            "' and version '" +
            schemaVersion +
            "' does not exist.");
View Full Code Here

Examples of org.openmhealth.reference.exception.NoSuchSchemaException

      Registry
        .getInstance()
        .getSchemas(schemaId, version, 0, 1).count() == 0) {
     
      throw
        new NoSuchSchemaException(
          "The schema ID, '" +
            schemaId +
            "', and version, '" +
            version +
            "', pair is unknown.");
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.