All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.modeshape.sequencer.ddl.dialect.derby.DerbyDdlLexicon Maven / Gradle / Ivy

The newest version!
/*
 * ModeShape (http://www.modeshape.org)
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.modeshape.sequencer.ddl.dialect.derby;

import static org.modeshape.sequencer.ddl.dialect.derby.DerbyDdlLexicon.Namespace.PREFIX;
import org.modeshape.sequencer.ddl.StandardDdlLexicon;

/**
 *
 */
public class DerbyDdlLexicon extends StandardDdlLexicon {

    public static class Namespace {
        public static final String URI = "http://www.modeshape.org/ddl/derby/1.0";
        public static final String PREFIX = "derbyddl";
    }

    /*
     * mixin types
     * 
     * SQL-92 Spec
     * 
     *      CREATE SCHEMA
     *      CREATE DOMAIN
     *      CREATE [ { GLOBAL | LOCAL } TEMPORARY ] TABLE
     *      CREATE VIEW         
     *      CREATE ASSERTION 
     *      CREATE CHARACTER SET 
     *      CREATE COLLATION 
     *      CREATE TRANSLATION
     * ===> CREATE FUNCTION
     * ===> CREATE INDEX
     * ===> CREATE PROCEDURE
     * ===> CREATE ROLE
     * ===> CREATE SYNONYM
     * ===> CREATE TRIGGER
     * 
     *      ALTER TABLE
     *
     * ===> GRANT
     * ===> LOCK TABLE
     * ===> RENAME TABLE
     * ===> RENAME INDEX
     * ===> SET
     * ===> DECLARE GLOBAL TEMPORARY TABLE
     */

    public static final String TYPE_CREATE_FUNCTION_STATEMENT = PREFIX + ":createFunctionStatement";
    public static final String TYPE_CREATE_INDEX_STATEMENT = PREFIX + ":createIndexStatement";
    public static final String TYPE_CREATE_PROCEDURE_STATEMENT = PREFIX + ":createProcedureStatement";
    public static final String TYPE_CREATE_ROLE_STATEMENT = PREFIX + ":createRoleStatement";
    public static final String TYPE_CREATE_SYNONYM_STATEMENT = PREFIX + ":createSynonymStatement";
    public static final String TYPE_CREATE_TRIGGER_STATEMENT = PREFIX + ":createTriggerStatement";
    public static final String TYPE_LOCK_TABLE_STATEMENT = PREFIX + ":lockTableStatement";
    public static final String TYPE_RENAME_TABLE_STATEMENT = PREFIX + ":renameTableStatement";
    public static final String TYPE_RENAME_INDEX_STATEMENT = PREFIX + ":renameIndexStatement";
    public static final String TYPE_DECLARE_GLOBAL_TEMPORARY_TABLE_STATEMENT = PREFIX + ":declareGlobalTemporaryTableStatement";

    public static final String TYPE_DROP_FUNCTION_STATEMENT = PREFIX + ":dropFunctionStatement";
    public static final String TYPE_DROP_INDEX_STATEMENT = PREFIX + ":dropIndexStatement";
    public static final String TYPE_DROP_PROCEDURE_STATEMENT = PREFIX + ":dropProcedureStatement";
    public static final String TYPE_DROP_ROLE_STATEMENT = PREFIX + ":dropRoleStatement";
    public static final String TYPE_DROP_SYNONYM_STATEMENT = PREFIX + ":dropSynonymStatement";
    public static final String TYPE_DROP_TRIGGER_STATEMENT = PREFIX + ":dropTriggerStatement";

    public static final String TYPE_FUNCTION_PARAMETER = PREFIX + ":functionParameter";
    public static final String TYPE_INDEX_COLUMN_REFERENCE = PREFIX + ":indexColumnReference";
    public static final String TYPE_GRANT_ON_FUNCTION_STATEMENT = PREFIX + ":grantOnFunctionStatement";
    public static final String TYPE_GRANT_ON_PROCEDURE_STATEMENT = PREFIX + ":grantOnProcedureStatement";
    public static final String TYPE_GRANT_ROLES_STATEMENT = PREFIX + ":grantRolesStatement";

    public static final String UNIQUE_INDEX = PREFIX + ":unique";
    public static final String ORDER = PREFIX + ":order";
    public static final String TABLE_NAME = PREFIX + ":tableName";
    public static final String ROLE_NAME = PREFIX + ":roleName";
    public static final String IS_TABLE_TYPE = PREFIX + ":isTableType";
    public static final String PARAMETER_STYLE = PREFIX + ":parameterStyle";
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy