Package net.sf.joafip.store.entity.objectio

Examples of net.sf.joafip.store.entity.objectio.ObjectAndPersistInfo


  }

  @Override
  @SuppressWarnings("PMD")
  public ObjectAndPersistInfo getInstance$JOAFIP$() {
    ObjectAndPersistInfo result;
    if (useJavaAgent) {
      result = refOnProxyObjectAndPersistInfo.get();
    } else {
      result = proxyObjectAndPersistInfo;
    }
View Full Code Here


            try {
              load();
            } catch (Exception exception) {
              LOGGER.error("method begin interception error",
                  exception);
              final ObjectAndPersistInfo instance = getInstance$JOAFIP$();
              final String instanceToString = instance == null ? "no instance"
                  : instance.toString();
              throw new ProxyInterceptException(instanceToString,
                  exception);
            }
          }
          loading = false;
View Full Code Here

  private void objectIsAccessed() {
    try {
      objectIOManager.objectIsAccessed(getInstance$JOAFIP$());
    } catch (Exception exception) {
      LOGGER.error("method begin interception error", exception);
      final ObjectAndPersistInfo instance = getInstance$JOAFIP$();
      final String instanceToString = instance == null ? "no instance"
          : instance.toString();
      throw new ProxyInterceptException(instanceToString, exception);
    }
  }
View Full Code Here

      ObjectIODataRecordNotFoundException, ObjectIOInvalidClassException,
      ObjectIOClassNotFoundException, ObjectIODataCorruptedException,
      ObjectIONotSerializableException {
    checkSession();
    loaded = true;
    final ObjectAndPersistInfo objectAndPersistInfo = getInstance$JOAFIP$();
    objectIOManager.setProxyObjectState(objectAndPersistInfo);

    if (LOGGER.debugEnabled) {
      LOGGER.debug("loaded " + objectAndPersistInfo + " ("
          + objectAndPersistInfo.toString() + ") ");
    }
  }
View Full Code Here

      final ObjectModelForImport fieldObjectModel) throws ImportException {
    final Deque<ClassReplacementDef> replacementDef = fieldObjectModel
        .getReplacementDef();
    final Object fieldValue = fieldObjectModel.getObject();
    final ClassInfo fieldTypeClassInfo = fieldObjectModel.getClassInfo();
    ObjectAndPersistInfo fieldObjectAndPersistInfo;
    try {
      fieldObjectAndPersistInfo = new ObjectAndPersistInfo(fieldValue,
          false, fieldTypeClassInfo, replacementDef,
          xmlImporter.getPreviousRelesase(),
          xmlImporter.getPreviousDataModelIdentifier());
    } catch (ClassInfoException exception) {
      throw new ImportException(exception);
    }
    if (fieldValue != null && !fieldTypeClassInfo.isBasicType()) {
      try {
        fieldObjectAndPersistInfo
            .setDataRecordIdentifier(fieldObjectModel
                .getDataRecordIdentifier());
      } catch (ObjectIOException exception) {
        throw new ImportException("\nfor object\n" + fieldObjectModel,
            exception);
View Full Code Here

   */
  private void saveLoop() throws StoreException, StoreDataCorruptedException,
      StoreInvalidClassException, StoreNotSerializableException,
      StoreClassNotFoundException, StoreTooBigForSerializationException {

    ObjectAndPersistInfo objectToVisit;
    if (rootOfObjectsToSave != null) {
      final ObjectAndPersistInfo rootObjectAndPersistInfo;
      try {
        rootObjectAndPersistInfo =
        /**/objectIOManager
            .getObjectAndPersistInfoOfObject(rootOfObjectsToSave);
      } catch (final ObjectIOException exception) {
View Full Code Here

  private void saveLoop(final Iterator<ObjectAndPersistInfo> iterator,
      final boolean attachedToRoot) throws StoreException,
      StoreInvalidClassException, StoreNotSerializableException,
      StoreClassNotFoundException, StoreDataCorruptedException,
      StoreTooBigForSerializationException {
    ObjectAndPersistInfo objectToVisit;
    while (iterator.hasNext()) {
      objectToVisit = iterator.next();
      visitOneObjectForSave(objectToVisit, attachedToRoot);
      while ((objectToVisit = session.nextToVisit()) != null) {// NOPMD
        visitOneObjectForSave(objectToVisit, attachedToRoot);
View Full Code Here

    final ClassInfo objectClassInfo = objectToVisit.objectClassInfo;
    if (objectClassInfo.isSubstituted() || importMode) {
      visitOneObjectForSave2(objectToVisit, attachedToRoot);
    } else {
      if (objectClassInfo.isWriteSubstituted()) {
        final ObjectAndPersistInfo objectAndItsClassInfo = objectToVisit;
        ObjectAndPersistInfo substituteObjectAndItsClassInfo;
        try {
          substituteObjectAndItsClassInfo = objectIOManager
              .substituteForWrite(objectAndItsClassInfo);
        } catch (final ObjectIOException exception) {
          throw new StoreException(exception);
View Full Code Here

    }
  }

  private void addFather(final ObjectClassInfoAndDeclared son,
      final ObjectAndPersistInfo father) {
    final ObjectAndPersistInfo sonAndPersistInfo = son
        .getObjectAndPersistInfo();
    Set<ObjectAndPersistInfo> set = fatherMap.get(sonAndPersistInfo);
    if (set == null) {
      set = new LinkedHashSet<ObjectAndPersistInfo>();
      fatherMap.put(sonAndPersistInfo, set);
View Full Code Here

   * @throws StoreException
   * @throws StoreDataCorruptedException
   */
  private void referenceChanged(final ReferenceChange referenceChange)
      throws StoreException, StoreDataCorruptedException {
    final ObjectAndPersistInfo referencingObjectInfo = referenceChange
        .getReferencingObject();
    final ObjectAndPersistInfo referencedObjectInfo = referenceChange
        .getReferencedObject();
    final ObjectAndPersistInfo originalReferencedObjectInfo = referenceChange
        .getOriginalReferenced();
    final Object originalReferencedObject = originalReferencedObjectInfo
        .getObject();
    final Object referencedObject = referencedObjectInfo.getObject();
    if (originalReferencedObject != null) {
      /*
       * deleted object referencing link
View Full Code Here

TOP

Related Classes of net.sf.joafip.store.entity.objectio.ObjectAndPersistInfo

Copyright © 2018 www.massapicom. 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.