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

com.javaoffers.batis.modelhelper.anno.fun.params.IfNotNull Maven / Gradle / Ivy

There is a newer version: 3.5.11.12
Show newest version
package com.javaoffers.batis.modelhelper.anno.fun.params;

import java.lang.annotation.ElementType;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * extended if: if (colName is not null, value, colName).
 * Can be combined with {@link IfNull}
 * @author mingJie
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
public @interface IfNotNull {
    public static String EXPR = " is not null ";
    /**
     * When not null, output this value
     */
    String value();

    /**
     * when null. output null by default.
     */
    String ifNull() default "null";
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy