コード例 #1
0
  public CachedObject getNewCachedObject(Session session, Object object) {

    Row row = new RowAVLDisk(table, (Object[]) object);

    add(row);

    if (session != null) {
      RowAction.addAction(session, RowAction.ACTION_INSERT, table, row);
    }

    return row;
  }
コード例 #2
0
  public CachedObject getNewCachedObject(Session session, Object object) {

    Row row = new RowAVL(table, (Object[]) object);

    if (session != null) {
      RowAction.addAction(session, RowAction.ACTION_INSERT, table, row);
    }

    synchronized (this) {
      int id = rowIdSequence++;

      row.setPos(id);
      rowIdMap.put(id, row);
    }

    return row;
  }