X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.project%2Fsrc%2Forg%2Fsimantics%2Fproject%2FSessionDescriptor.java;fp=bundles%2Forg.simantics.project%2Fsrc%2Forg%2Fsimantics%2Fproject%2FSessionDescriptor.java;h=3043479d166c9e81a99686689f16d6b8a5c7ab1f;hp=0000000000000000000000000000000000000000;hb=3d96e3fa94898d90d6892c081ebed7cb9e773a4a;hpb=9c1b0bdc646d2e91526e49fd9233c2eb0c243019 diff --git a/bundles/org.simantics.project/src/org/simantics/project/SessionDescriptor.java b/bundles/org.simantics.project/src/org/simantics/project/SessionDescriptor.java new file mode 100644 index 000000000..3043479d1 --- /dev/null +++ b/bundles/org.simantics.project/src/org/simantics/project/SessionDescriptor.java @@ -0,0 +1,27 @@ +package org.simantics.project; + +import org.simantics.db.Session; + +/** + * @author Jani Simomaa + * @since 1.34.0 + */ +public class SessionDescriptor { + + private final Session session; + private final boolean fresh; + + public SessionDescriptor(Session session, boolean fresh) { + this.session = session; + this.fresh = fresh; + } + + public Session getSession() { + return session; + } + + public boolean isFreshDatabase() { + return fresh; + } + +} \ No newline at end of file