Examples of IHeapRecordable


Examples of net.sf.joafip.store.entity.heaprecordable.IHeapRecordable

            if (objectAndPersistInfo != null) {// NOPMD
              stringBuilder.append(" object ");
              stringBuilder
                  .append(objectAndPersistInfo.objectClassInfo);
            } else {
              final IHeapRecordable heapRecordable =
              /**/heapRecordableManager
                  .getHeapRecordable(dataRecordIdentifier);
              if (heapRecordable != null) {
                stringBuilder.append(' ');
                stringBuilder.append(heapRecordable);
View Full Code Here

Examples of net.sf.joafip.store.entity.heaprecordable.IHeapRecordable

  public void save() throws HeapRecordableException {
    if (LOGGER.debugEnabled) {
      LOGGER.debug("save begin");
    }
    for (DataRecordIdentifier dataRecordIdentifier : toSaveSet) {
      final IHeapRecordable heapRecordable = associatedMap
          .get(dataRecordIdentifier);
      if (heapRecordable != null && heapRecordable.isStateChanged()) {
        writeState(heapRecordable);
      } else {
        throw new HeapRecordableException(
            "save set must contains record to save "
                + dataRecordIdentifier);
View Full Code Here

Examples of net.sf.joafip.store.entity.heaprecordable.IHeapRecordable

   *            is look for
   * @return {@link IHeapRecordable} for data identifier, null if none
   */
  public IHeapRecordable getHeapRecordable(
      final DataRecordIdentifier dataRecordIdentifier) {
    final IHeapRecordable heapRecordable = associatedMap
        .get(dataRecordIdentifier);
    if (LOGGER.debugEnabled) {
      LOGGER.debug("get heap recordable #" + dataRecordIdentifier + " "
          + heapRecordable);
    }
View Full Code Here

Examples of net.sf.joafip.store.entity.heaprecordable.IHeapRecordable

      rootNode = (IRBTNode<E>) heapRecordableManager
          .getHeapRecordable(dataRecordIdentifier);
    }
    if (rootNode == null && dataRecordIdentifier != null) {
      try {
        final IHeapRecordable heapRecordable = newIHeapRecordableRBTNode(heapRecordableManager);
        rootNode = (IRBTNode<E>) heapRecordable;
        heapRecordable.setDataRecordIdentifier(
        /**/dataRecordIdentifier,
        /**/true/* exist in file */);
        if (!heapRecordableManager.readAndSetState(heapRecordable)) {// NOPMD
          throw new RBTException("failed read and set state: "
              + heapRecordableManager.getReadAndSetStateStatus()
View Full Code Here

Examples of net.sf.joafip.store.entity.heaprecordable.IHeapRecordable

    }
    return rootNode;
  }

  public void setRootNode(final IRBTNode<E> rootNode) throws RBTException {
    final IHeapRecordable heapRecordable = (IHeapRecordable) rootNode;
    try {
      final DataRecordIdentifier dataRecordIdentifier;
      if (rootNode == null) {
        dataRecordIdentifier = null;
      } else {
        dataRecordIdentifier = heapRecordable.getDataRecordIdentifier();
      }
      setRootNodeIdentifier(dataRecordIdentifier);
    } catch (StoreException exception) {
      throw new RBTException(exception);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.