/** * The root page has changed. * * @param session the session * @param newPos the new position */ void setRootPageId(Session session, int newPos) { store.removeMeta(this, session); this.rootPageId = newPos; store.addMeta(this, session); store.addIndex(this); }
/** * The root page has changed. * * @param session the session * @param newPos the new position */ void setRootPageId(Session session, int newPos) { store.removeMeta(this, session); this.rootPageId = newPos; store.addMeta(this, session); store.addIndex(this); }
public PageDelegateIndex(RegularTable table, int id, String name, IndexType indexType, PageDataIndex mainIndex, boolean create, Session session) { IndexColumn[] cols = IndexColumn.wrap( new Column[] { table.getColumn(mainIndex.getMainIndexColumn())}); this.initBaseIndex(table, id, name, cols, indexType); this.mainIndex = mainIndex; if (!database.isPersistent() || id < 0) { throw DbException.throwInternalError("" + name); } PageStore store = database.getPageStore(); store.addIndex(this); if (create) { store.addMeta(this, session); } }
store.addIndex(this); if (!database.isPersistent()) { throw DbException.throwInternalError(table.getName());
store.addIndex(this); if (create) {
/** * The root page has changed. * * @param session the session * @param newPos the new position */ void setRootPageId(Session session, int newPos) { store.removeMeta(this, session); this.rootPageId = newPos; store.addMeta(this, session); store.addIndex(this); }
/** * The root page has changed. * * @param session the session * @param newPos the new position */ void setRootPageId(Session session, int newPos) { store.removeMeta(this, session); this.rootPageId = newPos; store.addMeta(this, session); store.addIndex(this); }
/** * The root page has changed. * * @param session the session * @param newPos the new position */ void setRootPageId(Session session, int newPos) { store.removeMeta(this, session); this.rootPageId = newPos; store.addMeta(this, session); store.addIndex(this); }
/** * The root page has changed. * * @param session the session * @param newPos the new position */ void setRootPageId(Session session, int newPos) { store.removeMeta(this, session); this.rootPageId = newPos; store.addMeta(this, session); store.addIndex(this); }
public PageDelegateIndex(RegularTable table, int id, String name, IndexType indexType, PageDataIndex mainIndex, boolean create, Session session) { IndexColumn[] cols = IndexColumn.wrap( new Column[] { table.getColumn(mainIndex.getMainIndexColumn())}); this.initBaseIndex(table, id, name, cols, indexType); this.mainIndex = mainIndex; if (!database.isPersistent() || id < 0) { throw DbException.throwInternalError("" + name); } PageStore store = database.getPageStore(); store.addIndex(this); if (create) { store.addMeta(this, session); } }
public PageDelegateIndex(RegularTable table, int id, String name, IndexType indexType, PageDataIndex mainIndex, boolean create, Session session) { IndexColumn[] cols = IndexColumn.wrap( new Column[] { table.getColumn(mainIndex.getMainIndexColumn())}); this.initBaseIndex(table, id, name, cols, indexType); this.mainIndex = mainIndex; if (!database.isPersistent() || id < 0) { throw DbException.throwInternalError("" + name); } PageStore store = database.getPageStore(); store.addIndex(this); if (create) { store.addMeta(this, session); } }
store.addIndex(this); if (create) {
store.addIndex(this); if (create) {
store.addIndex(this); if (!database.isPersistent()) { throw DbException.throwInternalError(table.getName());
store.addIndex(this); if (!database.isPersistent()) { throw DbException.throwInternalError(table.getName());