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

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

There is a newer version: 2.13
Show newest version
package com.lithium.ldn.starql.validation;

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

public class NoOpValidator implements QlSelectStatementValidator, QlConstraintsClauseValidator {

	@Override
	public void validate(QlSelectStatement statement)
			throws QueryValidationException {
		if (statement == null) {
			throw new IllegalArgumentException("statement must not be null");
		}
		// Do nothing
	}

	@Override
	public void validate(QlWhereClause constraintsClause)
			throws QueryValidationException {
		if (constraintsClause == null) {
			throw new IllegalArgumentException("statement must not be null");
		}
		// Do nothing
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy