--- /dev/null
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>de.laktatnebel.libs</groupId>
+ <artifactId>validatorlib</artifactId>
+ <version>2.1.1-SNAPSHOT</version>
+
+ <name>ValidatorLib</name>
+
+ <parent>
+ <groupId>de.laktatnebel.maven</groupId>
+ <artifactId>laktatnebellib</artifactId>
+ <version>2.1.7</version>
+ </parent>
+</project>
\ No newline at end of file
--- /dev/null
+package de.laktatnebel.libs.validatorlib;
+
+/**
+ * @author oleb
+ *
+ */
+public class SQLValidator {
+
+ /**
+ *
+ */
+ private SQLValidator() {
+ super();
+ }
+
+ /**
+ * @param sql
+ * @return
+ * boolean
+ */
+ public static boolean isValidWhere(final String sql) {
+ if (sql == null) {
+ return false;
+ }
+ if (sql.isEmpty()) {
+ return false;
+ }
+ return true;
+ }
+
+ /**
+ * @param sql
+ * @return
+ * boolean
+ */
+ public static boolean isValidOrderBy(final String sql) {
+ if (sql == null) {
+ return false;
+ }
+ if (sql.isEmpty()) {
+ return false;
+ }
+ return true;
+ }
+}