| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.hibernate.FlushMode
public final class FlushMode
Represents a flushing strategy. The flush process synchronizes database state with session state by detecting state changes and executing SQL statements.
Session.setFlushMode(FlushMode), 
Query.setFlushMode(FlushMode), 
Criteria.setFlushMode(FlushMode), 
Serialized Form| Field Summary | |
|---|---|
| static FlushMode | ALWAYSThe Sessionis flushed before every query. | 
| static FlushMode | AUTOThe Sessionis sometimes flushed before query execution
 in order to ensure that queries never return stale state. | 
| static FlushMode | COMMITThe Sessionis flushed whenTransaction.commit()is called. | 
| static FlushMode | MANUALThe Sessionis only ever flushed whenSession.flush()is explicitly called by the application. | 
| static FlushMode | NEVERDeprecated. use MANUALinstead. | 
| Method Summary | |
|---|---|
| static boolean | isManualFlushMode(FlushMode mode) | 
|  boolean | lessThan(FlushMode other) | 
| static FlushMode | parse(String name) | 
|  String | toString() | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final FlushMode NEVER
MANUAL instead.Session is never flushed unless Session.flush()
 is explicitly called by the application. This mode is very
 efficient for read only transactions.
public static final FlushMode MANUAL
Session is only ever flushed when Session.flush()
 is explicitly called by the application. This mode is very
 efficient for read only transactions.
public static final FlushMode COMMIT
Session is flushed when Transaction.commit()
 is called.
public static final FlushMode AUTO
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 ALWAYS
Session is flushed before every query. This is
 almost always unnecessary and inefficient.
| Method Detail | 
|---|
public String toString()
toString in class Objectpublic boolean lessThan(FlushMode other)
public static boolean isManualFlushMode(FlushMode mode)
public static FlushMode parse(String name)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||