public static enum Options.FlushCachePolicy extends Enum<Options.FlushCachePolicy>
Options.flushCache()
.
The default is DEFAULT
Enum Constant and Description |
---|
DEFAULT
false for select statement; true for insert/update/delete statement. |
FALSE
Does not flush cache regardless of the statement type.
|
TRUE
Flushes cache regardless of the statement type.
|
Modifier and Type | Method and Description |
---|---|
static Options.FlushCachePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Options.FlushCachePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Options.FlushCachePolicy DEFAULT
false
for select statement; true
for insert/update/delete statement.public static final Options.FlushCachePolicy TRUE
public static final Options.FlushCachePolicy FALSE
public static Options.FlushCachePolicy[] values()
for (Options.FlushCachePolicy c : Options.FlushCachePolicy.values()) System.out.println(c);
public static Options.FlushCachePolicy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2009–2020 MyBatis.org. All rights reserved.