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

com.kasinf.framework.rest.annotation.SearchableQuery Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.kasinf.framework.rest.annotation;


import com.kasinf.framework.rest.repository.callback.SearchCallback;

import java.lang.annotation.*;

/**
 * 覆盖默认的根据条件查询数据
 *
 * @author 凯鸿
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface SearchableQuery {

    /**
     * 覆盖默认的查询所有ql
     * @return String
     */
    String findAllQuery() default "";

    /**
     * 覆盖默认的统计所有ql
     * @return String
     */
    String countAllQuery() default "";

    /**
     * 给ql拼条件及赋值的回调类型
     *
     * @return com.vsoinf.core.curd.callback.SearchCallback子类
     */
    Class callbackClass() default SearchCallback.class;

    /**
     * 设置连接信息
     * @return {@link QueryJoin}
     */
    QueryJoin[] joins() default {};
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy