Changeset 5057
- Timestamp:
- Aug 18, 2009, 2:46:43 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/LogControl.java
r5054 r5057 22 22 package net.sf.basedb.core; 23 23 24 import java.lang.ref.WeakReference; 25 24 26 import net.sf.basedb.core.data.ChangeHistoryData; 25 27 import net.sf.basedb.core.data.ChangeHistoryDetailData; … … 37 39 { 38 40 39 private final DbControldc;41 private final WeakReference<DbControl> dc; 40 42 private TransactionDetails transactionDetails; 41 43 private org.hibernate.StatelessSession session; … … 43 45 LogControl(DbControl dc) 44 46 { 45 this.dc = dc;47 this.dc = new WeakReference<DbControl>(dc); 46 48 } 47 49 … … 54 56 if (transactionDetails == null) 55 57 { 56 transactionDetails = new TransactionDetails(dc.get SessionControl());58 transactionDetails = new TransactionDetails(dc.get().getSessionControl()); 57 59 } 58 60 return transactionDetails; … … 110 112 private org.hibernate.StatelessSession getSession() 111 113 { 112 if (session == null) session = dc.get StatelessSession();114 if (session == null) session = dc.get().getStatelessSession(); 113 115 return session; 114 116 }
Note: See TracChangeset
for help on using the changeset viewer.