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

com.lithium.ldn.starql.validation.QlSelectStatementValidator Maven / Gradle / Ivy

package com.lithium.ldn.starql.validation;

import com.lithium.ldn.starql.exceptions.QueryValidationException;
import com.lithium.ldn.starql.models.QlSelectStatement;

public interface QlSelectStatementValidator {

	/**
	 * Performs validation on the provided statement. Note that validators might do varying levels
	 * of validation for performance reasons. Using a validator on a select statement does not
	 * guarentee that the statement is valid, but only for the cases that the validators is designed
	 * to check. See documentation of implementations for cases checked by the validator.
	 * 
	 * @param statement The statement to be validated. Must not be {@code null}.
	 * @throws QueryValidationException Thrown if an invalid state exists in the query.
	 */
	void validate(QlSelectStatement statement) throws QueryValidationException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy