Allow subclasses access to the session.

This commit is contained in:
Greg Burd 2018-03-28 09:15:15 -04:00
parent 654f4434bf
commit 9d94e865b6

View file

@ -53,11 +53,11 @@ public class UnitOfWork implements AutoCloseable {
private static final Pattern classNameRegex =
Pattern.compile("^(?:\\w+\\.)+(?:(\\w+)|(\\w+)\\$.*)$");
private final List<UnitOfWork> nested = new ArrayList<>();
private final HelenusSession session;
public final UnitOfWork parent;
private final List<UnitOfWork> nested = new ArrayList<>();
private final Table<String, String, Either<Object, List<Facet>>> cache = HashBasedTable.create();
private final MapCache<String, Object> statementCache;
protected final HelenusSession session;
protected String purpose;
protected List<String> nestedPurposes = new ArrayList<String>();
protected String info;