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

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

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

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * A META SQL sub-element. It represents the name of a database table, which is a text without any semantic value for a
 * META SQL generation.
 * 
 * @author Vladimir Hudec
 */
class SqlDatabaseTable implements SqlMetaSimple {

    /**
     * The internal slf4j logger.
     */
    final Logger logger = LoggerFactory.getLogger(getClass());

    /**
     * The name of a database table.
     */
    private String name;

    /**
     * Creates a new instance. It's used from inside ANTLR parser.
     * 
     * @param name
     *            the name of a database table
     */
    SqlDatabaseTable(String name) {
        this.name = name;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public SqlProcessResult process(SqlProcessContext ctx) {
        return new SqlProcessResult(ctx, name);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy