private String getJQLDeclared() {
		ModelAnnotation inserAnnotation = this.getAnnotation(BindSqlInsert.class);
		ModelAnnotation updateAnnotation = this.getAnnotation(BindSqlUpdate.class);
		ModelAnnotation selectAnnotation = this.getAnnotation(BindSqlSelect.class);
		ModelAnnotation deleteAnnotation = this.getAnnotation(BindSqlDelete.class);

		String jql = null;
		int counter = 0;

		if (selectAnnotation != null) {
			jql = selectAnnotation.getAttribute(AnnotationAttributeType.JQL);

			if (StringUtils.hasText(jql)) {
				counter++;

				AssertKripton.assertTrue(selectAnnotation.getAttributeCount() > 1, "Annotation %s in method %s.%s have more than one annotation with JQL attribute", selectAnnotation.getSimpleName(),
						this.getParent().getName(), this.getName());
			}
		}

		if (inserAnnotation != null) {
			jql = inserAnnotation.getAttribute(AnnotationAttributeType.JQL);
			if (StringUtils.hasText(jql)) {
				counter++;

				AssertKripton.assertTrue(inserAnnotation.getAttributeCount() > 1, "Annotation %s in method %s.%s have more than one annotation with JQL attribute", inserAnnotation.getSimpleName(),
						this.getParent().getName(), this.getName());
			}
		}

		if (updateAnnotation != null) {
			jql = updateAnnotation.getAttribute(AnnotationAttributeType.JQL);
			if (StringUtils.hasText(jql)) {
				counter++;

				AssertKripton.assertTrue(updateAnnotation.getAttributeCount() > 1, "Annotation %s in method %s.%s have more than one annotation with JQL attribute", updateAnnotation.getSimpleName(),
						this.getParent().getName(), this.getName());
			}
		}

		if (deleteAnnotation != null) {
			jql = deleteAnnotation.getAttribute(AnnotationAttributeType.JQL);
			if (StringUtils.hasText(jql)) {
				counter++;

				AssertKripton.assertTrue(deleteAnnotation.getAttributeCount() > 1, "Annotation %s in method %s.%s have more than one annotation with JQL attribute", deleteAnnotation.getSimpleName(),
						this.getParent().getName(), this.getName());
			}
		}

		AssertKripton.assertTrue(counter <= 1, "Method %s.%s have more than one annotation with JQL attribute", this.getParent().getName(), this.getName());

		// remove unscape charater (example \'%\' -> '%')
		jql = StringEscapeUtils.unescapeEcmaScript(jql);
		return jql;

	}
private String getJQLDeclared ( ) { ModelAnnotation inserAnnotation = this . getAnnotation ( BindSqlInsert . class ) ; ModelAnnotation updateAnnotation = this . getAnnotation ( BindSqlUpdate . class ) ; ModelAnnotation selectAnnotation = this . getAnnotation ( BindSqlSelect . class ) ; ModelAnnotation deleteAnnotation = this . getAnnotation ( BindSqlDelete . class ) ; String jql = null ; int counter = 0 ; if ( selectAnnotation != null ) { jql = selectAnnotation . getAttribute ( AnnotationAttributeType . JQL ) ; if ( StringUtils . hasText ( jql ) ) { counter ++ ; AssertKripton . assertTrue ( selectAnnotation . getAttributeCount ( ) > 1 , "Annotation %s in method %s.%s have more than one annotation with JQL attribute" , selectAnnotation . getSimpleName ( ) , this . getParent ( ) . getName ( ) , this . getName ( ) ) ; } } if ( inserAnnotation != null ) { jql = inserAnnotation . getAttribute ( AnnotationAttributeType . JQL ) ; if ( StringUtils . hasText ( jql ) ) { counter ++ ; AssertKripton . assertTrue ( inserAnnotation . getAttributeCount ( ) > 1 , "Annotation %s in method %s.%s have more than one annotation with JQL attribute" , inserAnnotation . getSimpleName ( ) , this . getParent ( ) . getName ( ) , this . getName ( ) ) ; } } if ( updateAnnotation != null ) { jql = updateAnnotation . getAttribute ( AnnotationAttributeType . JQL ) ; if ( StringUtils . hasText ( jql ) ) { counter ++ ; AssertKripton . assertTrue ( updateAnnotation . getAttributeCount ( ) > 1 , "Annotation %s in method %s.%s have more than one annotation with JQL attribute" , updateAnnotation . getSimpleName ( ) , this . getParent ( ) . getName ( ) , this . getName ( ) ) ; } } if ( deleteAnnotation != null ) { jql = deleteAnnotation . getAttribute ( AnnotationAttributeType . JQL ) ; if ( StringUtils . hasText ( jql ) ) { counter ++ ; AssertKripton . assertTrue ( deleteAnnotation . getAttributeCount ( ) > 1 , "Annotation %s in method %s.%s have more than one annotation with JQL attribute" , deleteAnnotation . getSimpleName ( ) , this . getParent ( ) . getName ( ) , this . getName ( ) ) ; } } AssertKripton . assertTrue ( counter <= 1 , "Method %s.%s have more than one annotation with JQL attribute" , this . getParent ( ) . getName ( ) , this . getName ( ) ) ; jql = StringEscapeUtils . unescapeEcmaScript ( jql ) ; return jql ; }
Gets the JQL declared.

@return the JQL declared