[jboss-cvs] jboss-seam/src/main/org/jboss/seam/annotations ...
Gavin King
gavin.king at jboss.com
Sat Sep 23 11:41:39 EDT 2006
User: gavin
Date: 06/09/23 11:41:39
Modified: src/main/org/jboss/seam/annotations FlushModeType.java
Log:
support @PrePassivate, @PostActivate, @PostConstruct for JavaBean components
fix bug in replication of Seam-managed PC used by SFSB
more efficient replication of extended Seam-managed PCs
Revision Changes Path
1.2 +27 -1 jboss-seam/src/main/org/jboss/seam/annotations/FlushModeType.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: FlushModeType.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/annotations/FlushModeType.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- FlushModeType.java 13 Jul 2006 00:58:55 -0000 1.1
+++ FlushModeType.java 23 Sep 2006 15:41:39 -0000 1.2
@@ -2,7 +2,33 @@
public enum FlushModeType
{
+
+ /**
+ * Flushing never occurs automatically, all changes are queued
+ * until the application calls flush() explicitly.
+ */
MANUAL,
+
+ /**
+ * Flushing occurs automatically at commit time and when necessary
+ * before query executions.
+ */
AUTO,
- COMMIT
+
+ /**
+ * Flushing occurs automatically at transaction commit time.
+ */
+ COMMIT;
+
+ /**
+ * Does this flush mode keep unflushed changes past a
+ * transaction commit?
+ *
+ * @return false for all flush modes except for MANUAL
+ */
+ public boolean dirtyBetweenTransactions()
+ {
+ return this==MANUAL;
+ };
+
}
More information about the jboss-cvs-commits
mailing list