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

com.quhaodian.data.page.Search Maven / Gradle / Ivy

The newest version!
package com.quhaodian.data.page;

import com.quhaodian.data.page.Filter.Operator;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 搜索条件
 *
 * @author ada
 */

@Target( {ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Search {
  
  /**
   * 表达式操作符
   *
   * @return
   */
  Operator operator() default Operator.eq;
  
  /**
   * bean对象属性
   *
   * @return
   */
  String name() default "";
  
  /**
   * 表达式前缀
   */
  String prefix() default "";
  
  /**
   * 计算条件,且和或,默认为且
   */
  Condition condition() default Condition.AND;
  
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy