1 package fi.vtt.simantics.procore.internal;
3 import org.simantics.db.exception.DatabaseException;
4 import org.simantics.db.impl.support.ResourceSupport;
6 public class ResourceSupportImpl implements ResourceSupport {
8 final private SessionImplSocket session;
10 ResourceSupportImpl(SessionImplSocket session) {
11 this.session = session;
15 public long getRandomAccessId(int id) {
17 return session.resourceSerializer.createRandomAccessId(id);
18 } catch (DatabaseException e) {
25 public long getRandomAccessIdChecked(int id) throws DatabaseException {
26 return session.resourceSerializer.createRandomAccessId(id);