Skip to content

Commit

Permalink
doc(filter): add javadoc on filter operation
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-thorel-of committed Dec 21, 2023
1 parent 6d86f45 commit c028524
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
30 changes: 30 additions & 0 deletions src/main/java/fr/ouestfrance/querydsl/FilterOperation.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,70 @@
import fr.ouestfrance.querydsl.service.validators.impl.ComparableValidator;
import fr.ouestfrance.querydsl.service.validators.impl.StringValidator;

/**
* Operations allowed by querydsl
*/
public interface FilterOperation {

/**
* Not Equals Operation
*/
@ValidatedBy(ComparableValidator.class)
class NEQ implements FilterOperation {
}

/**
* Equals Operation
*/
@ValidatedBy(ComparableValidator.class)
class EQ implements FilterOperation {
}

/**
* Greater than Operation
*/
@ValidatedBy(ComparableValidator.class)
class GT implements FilterOperation {
}

/**
* Greater than or equals Operation
*/
@ValidatedBy(ComparableValidator.class)
class GTE implements FilterOperation {
}

/**
* Less than Operation
*/
@ValidatedBy(ComparableValidator.class)
class LT implements FilterOperation {
}

/**
* Less than or equals Operation
*/
@ValidatedBy(ComparableValidator.class)
class LTE implements FilterOperation {
}

/**
* Like Operation
*/
@ValidatedBy(StringValidator.class)
class LIKE implements FilterOperation {
}

/**
* Not Like Operation
*/
@ValidatedBy(CollectionValidator.class)
class IN implements FilterOperation {
}

/**
* Not In Operation
*/
@ValidatedBy(CollectionValidator.class)
class NOTIN implements FilterOperation {
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package fr.ouestfrance.querydsl.service.validators;

import fr.ouestfrance.querydsl.FilterOperation;

import java.lang.annotation.*;

/**
Expand Down

0 comments on commit c028524

Please sign in to comment.