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

org.hibernate.hql.internal.logging.Log_$logger Maven / Gradle / Ivy

There is a newer version: 1.5.0.Final
Show newest version

package org.hibernate.hql.internal.logging;

import java.io.Serializable;
import java.util.List;
import javax.annotation.Generated;
import org.antlr.runtime.RecognitionException;
import org.jboss.logging.BasicLogger;
import org.jboss.logging.DelegatingBasicLogger;
import org.jboss.logging.Logger;


/**
 * Warning this class consists of generated code.
 * 
 */
@Generated(value = "org.jboss.logging.processor.generator.model.MessageLoggerImplementor", date = "2015-08-25T17:34:07+0300")
public class Log_$logger
    extends DelegatingBasicLogger
    implements Serializable, Log, BasicLogger
{

    private final static long serialVersionUID = 1L;
    private final static java.lang.String FQCN = Log_$logger.class.getName();
    private final static java.lang.String getInvalidQuerySyntaxException1 = "HQL000001: The query %s is not valid.";
    private final static java.lang.String getInvalidQuerySyntaxException2 = "HQL000002: The query %s is not valid; Parser error messages: %s.";
    private final static java.lang.String getUnsupportedPredicateTypeException = "HQL000003: The predicate %s is not of type %s.";
    private final static java.lang.String getNotMoreThanOnePredicateInRootOfWhereClauseAllowedException = "HQL000004: The predicate %s can not be added since there may be only one root predicate.";
    private final static java.lang.String getNotMoreThanOnePredicateInNegationAllowedException = "HQL000005: The predicate %s can not be added since there may be only one sub-predicate in a NOT predicate.";
    private final static java.lang.String getInvalidQuerySyntaxDueToUnconsumedTokensException = "HQL000006: The query %s is not valid; Found unconsumed token(s): %s.";
    private final static java.lang.String getUnknownAliasException = "HQL000007: Unknown alias: %s.";
    private final static java.lang.String getNoAggregationsInGroupByClauseException = "HQL000008: Cannot have aggregate functions in GROUP BY clause : %s.";
    private final static java.lang.String getNoAggregationsInWhereClauseException = "HQL000009: Cannot have aggregate functions in WHERE clause : %s.";
    private final static java.lang.String getAggregationCanOnlyBeAppliedToPropertyReferencesException = "HQL000010: %s aggregation can only be applied to property references.";

    public Log_$logger(final Logger log) {
        super(log);
    }

    public final org.hibernate.hql.ParsingException getInvalidQuerySyntaxException(final java.lang.String query, final RecognitionException cause) {
        org.hibernate.hql.ParsingException result = new org.hibernate.hql.ParsingException(java.lang.String.format(getInvalidQuerySyntaxException1$str(), query), cause);
        java.lang.StackTraceElement[] st = result.getStackTrace();
        result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
        return result;
    }

    protected java.lang.String getInvalidQuerySyntaxException1$str() {
        return getInvalidQuerySyntaxException1;
    }

    public final org.hibernate.hql.ParsingException getInvalidQuerySyntaxException(final java.lang.String query, final List parserErrorMessages) {
        org.hibernate.hql.ParsingException result = new org.hibernate.hql.ParsingException(java.lang.String.format(getInvalidQuerySyntaxException2$str(), query, parserErrorMessages));
        java.lang.StackTraceElement[] st = result.getStackTrace();
        result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
        return result;
    }

    protected java.lang.String getInvalidQuerySyntaxException2$str() {
        return getInvalidQuerySyntaxException2;
    }

    public final java.lang.IllegalArgumentException getUnsupportedPredicateTypeException(final Object predicate, final java.lang.String targetTypeName) {
        java.lang.IllegalArgumentException result = new java.lang.IllegalArgumentException(java.lang.String.format(getUnsupportedPredicateTypeException$str(), predicate, targetTypeName));
        java.lang.StackTraceElement[] st = result.getStackTrace();
        result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
        return result;
    }

    protected java.lang.String getUnsupportedPredicateTypeException$str() {
        return getUnsupportedPredicateTypeException;
    }

    public final java.lang.IllegalStateException getNotMoreThanOnePredicateInRootOfWhereClauseAllowedException(final org.hibernate.hql.ast.spi.predicate.Predicate predicate) {
        java.lang.IllegalStateException result = new java.lang.IllegalStateException(java.lang.String.format(getNotMoreThanOnePredicateInRootOfWhereClauseAllowedException$str(), predicate));
        java.lang.StackTraceElement[] st = result.getStackTrace();
        result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
        return result;
    }

    protected java.lang.String getNotMoreThanOnePredicateInRootOfWhereClauseAllowedException$str() {
        return getNotMoreThanOnePredicateInRootOfWhereClauseAllowedException;
    }

    public final java.lang.IllegalStateException getNotMoreThanOnePredicateInNegationAllowedException(final org.hibernate.hql.ast.spi.predicate.Predicate predicate) {
        java.lang.IllegalStateException result = new java.lang.IllegalStateException(java.lang.String.format(getNotMoreThanOnePredicateInNegationAllowedException$str(), predicate));
        java.lang.StackTraceElement[] st = result.getStackTrace();
        result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
        return result;
    }

    protected java.lang.String getNotMoreThanOnePredicateInNegationAllowedException$str() {
        return getNotMoreThanOnePredicateInNegationAllowedException;
    }

    public final org.hibernate.hql.ParsingException getInvalidQuerySyntaxDueToUnconsumedTokensException(final java.lang.String query, final java.lang.String unconsumedTokens) {
        org.hibernate.hql.ParsingException result = new org.hibernate.hql.ParsingException(java.lang.String.format(getInvalidQuerySyntaxDueToUnconsumedTokensException$str(), query, unconsumedTokens));
        java.lang.StackTraceElement[] st = result.getStackTrace();
        result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
        return result;
    }

    protected java.lang.String getInvalidQuerySyntaxDueToUnconsumedTokensException$str() {
        return getInvalidQuerySyntaxDueToUnconsumedTokensException;
    }

    public final org.hibernate.hql.ParsingException getUnknownAliasException(final java.lang.String unknownAlias) {
        org.hibernate.hql.ParsingException result = new org.hibernate.hql.ParsingException(java.lang.String.format(getUnknownAliasException$str(), unknownAlias));
        java.lang.StackTraceElement[] st = result.getStackTrace();
        result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
        return result;
    }

    protected java.lang.String getUnknownAliasException$str() {
        return getUnknownAliasException;
    }

    public final org.hibernate.hql.ParsingException getNoAggregationsInGroupByClauseException(final java.lang.String aggregationType) {
        org.hibernate.hql.ParsingException result = new org.hibernate.hql.ParsingException(java.lang.String.format(getNoAggregationsInGroupByClauseException$str(), aggregationType));
        java.lang.StackTraceElement[] st = result.getStackTrace();
        result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
        return result;
    }

    protected java.lang.String getNoAggregationsInGroupByClauseException$str() {
        return getNoAggregationsInGroupByClauseException;
    }

    public final org.hibernate.hql.ParsingException getNoAggregationsInWhereClauseException(final java.lang.String aggregationType) {
        org.hibernate.hql.ParsingException result = new org.hibernate.hql.ParsingException(java.lang.String.format(getNoAggregationsInWhereClauseException$str(), aggregationType));
        java.lang.StackTraceElement[] st = result.getStackTrace();
        result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
        return result;
    }

    protected java.lang.String getNoAggregationsInWhereClauseException$str() {
        return getNoAggregationsInWhereClauseException;
    }

    public final org.hibernate.hql.ParsingException getAggregationCanOnlyBeAppliedToPropertyReferencesException(final java.lang.String aggregationType) {
        org.hibernate.hql.ParsingException result = new org.hibernate.hql.ParsingException(java.lang.String.format(getAggregationCanOnlyBeAppliedToPropertyReferencesException$str(), aggregationType));
        java.lang.StackTraceElement[] st = result.getStackTrace();
        result.setStackTrace(java.util.Arrays.copyOfRange(st, 1, st.length));
        return result;
    }

    protected java.lang.String getAggregationCanOnlyBeAppliedToPropertyReferencesException$str() {
        return getAggregationCanOnlyBeAppliedToPropertyReferencesException;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy