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

org.sqlproc.engine.impl.SqlMetaElement Maven / Gradle / Ivy

There is a newer version: 3.6.1
Show newest version
package org.sqlproc.engine.impl;

/**
 * The parents of all ANTLR grammar based elements for META SQL.
 * 
 * @author Vladimir Hudec
 */
interface SqlMetaElement {

    static final char IDENT_SEPARATOR = '_';
    static final char IDENT_PREFIX = ':';
    static final int lIDENT_PREFIX = 1;
    static final char CONST_PREFIX = '$';
    static final int lCONST_PREFIX = 1;

    static final String AND_PREFIX = "AND ";
    static final String OR_PREFIX = "OR ";
    static final String WHERE_PREFIX = "WHERE ";
    static final String SET_PREFIX = "SET ";
    static final String VALUES_PREFIX = "VALUES";

    /**
     * The main contract for a dynamic ANSI SQL Query generation. Also known as a META SQL processing.
     * 
     * The composite pattern main contract. All ANTLR grammar based elements must implement this contract.
     * 
     * @param ctx
     *            the crate for all input parameters and the context of processing
     */
    SqlProcessResult process(SqlProcessContext ctx);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy