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

org.apache.ibatis.annotations.Options Maven / Gradle / Ivy

Go to download

The MyBatis SQL mapper framework makes it easier to use a relational database with object-oriented applications. MyBatis couples objects with stored procedures or SQL statements using a XML descriptor or annotations. Simplicity is the biggest advantage of the MyBatis data mapper over object relational mapping tools.

There is a newer version: 3.5.19
Show newest version
package org.apache.ibatis.annotations;

import org.apache.ibatis.mapping.ResultSetType;
import org.apache.ibatis.mapping.StatementType;

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

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Options {
  public abstract boolean useCache() default true;

  public abstract boolean flushCache() default false;

  public abstract ResultSetType resultSetType() default ResultSetType.FORWARD_ONLY;

  public abstract StatementType statementType() default StatementType.PREPARED;

  public abstract int fetchSize() default -1;

  public abstract int timeout() default -1;

  public abstract boolean useGeneratedKeys() default false;

  public abstract String keyProperty() default "id";
  
  public abstract String keyColumn() default ""; 
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy