From 3e33ece65ae62ca806abfb88c34f878420117756 Mon Sep 17 00:00:00 2001 From: Rob Bygrave Date: Thu, 26 Jun 2014 00:12:55 +1200 Subject: [PATCH] No effective change - add protected modified --- .../server/transaction/JdbcTransaction.java | 54 ++++++++++--------- 1 file changed, 29 insertions(+), 25 deletions(-) diff --git a/src/main/java/com/avaje/ebeaninternal/server/transaction/JdbcTransaction.java b/src/main/java/com/avaje/ebeaninternal/server/transaction/JdbcTransaction.java index 9d912e11d..f4a7b03b3 100644 --- a/src/main/java/com/avaje/ebeaninternal/server/transaction/JdbcTransaction.java +++ b/src/main/java/com/avaje/ebeaninternal/server/transaction/JdbcTransaction.java @@ -37,92 +37,96 @@ public class JdbcTransaction implements SpiTransaction { /** * The associated TransactionManager. */ - final protected TransactionManager manager; + protected final TransactionManager manager; /** * The transaction id. */ - final String id; + protected final String id; /** * Flag to indicate if this was an explicitly created Transaction. */ - final boolean explicit; + protected final boolean explicit; /** * Set to true if the connection has autoCommit=true initially. */ - final boolean autoCommit; + protected final boolean autoCommit; /** * Behaviour for ending query only transactions. */ - final OnQueryOnly onQueryOnly; + protected final OnQueryOnly onQueryOnly; /** * The status of the transaction. */ - boolean active; + protected boolean active; /** * The underlying Connection. */ - Connection connection; + protected Connection connection; /** * Used to queue up persist requests for batch execution. */ - BatchControl batchControl; + protected BatchControl batchControl; /** * The event which holds persisted beans. */ - TransactionEvent event; + protected TransactionEvent event; /** * Holder of the objects fetched to ensure unique objects are used. */ - PersistenceContext persistenceContext; + protected PersistenceContext persistenceContext; /** * Used to give developers more control over the insert update and delete * functionality. */ - boolean persistCascade = true; + protected boolean persistCascade = true; /** * Flag used for performance to skip commit or rollback of query only * transactions in read committed transaction isolation. */ - boolean queryOnly = true; + protected boolean queryOnly = true; - boolean localReadOnly; + protected boolean localReadOnly; /** * Set to true if using batch processing. */ - boolean batchMode; + protected boolean batchMode; - int batchSize = -1; + protected int batchSize = -1; - boolean batchFlushOnQuery = true; + protected boolean batchFlushOnQuery = true; - Boolean batchGetGeneratedKeys; + protected Boolean batchGetGeneratedKeys; - Boolean batchFlushOnMixed; + protected Boolean batchFlushOnMixed; - String logPrefix; + protected String logPrefix; /** * The depth used by batch processing to help the ordering of statements. */ - int depth = 0; + protected int depth; - IdentityHashMap persistingBeans; - HashSet deletingBeansHash; - HashMap m2mIntersectionSave; - HashMap> derivedRelMap; - Map userObjects; + protected IdentityHashMap persistingBeans; + + protected HashSet deletingBeansHash; + + protected HashMap m2mIntersectionSave; + + protected HashMap> derivedRelMap; + + protected Map userObjects; /** * Create a new JdbcTransaction.