Fields Summary |
---|
private static final Map | INSTANCES |
private final int | level |
private final String | name |
public static final FlushMode | NEVERThe {@link Session} is never flushed unless {@link Session#flush}
is explicitly called by the application. This mode is very
efficient for read only transactions. |
public static final FlushMode | MANUALThe {@link Session} is only ever flushed when {@link Session#flush}
is explicitly called by the application. This mode is very
efficient for read only transactions. |
public static final FlushMode | COMMITThe {@link Session} is flushed when {@link Transaction#commit}
is called. |
public static final FlushMode | AUTOThe {@link Session} is sometimes flushed before query execution
in order to ensure that queries never return stale state. This
is the default flush mode. |
public static final FlushMode | ALWAYSThe {@link Session} is flushed before every query. This is
almost always unnecessary and inefficient. |