/** * INTERNAL: * Once descriptors are serialized to the remote session. All its mappings and reference descriptors are traversed. Usually * mappings are initialized and serialized reference descriptors are replaced with local descriptors if they already exist on the * remote session. */ @Override public void remoteInitialization(DistributedSession session) { super.remoteInitialization(session); setTempSession(session); }
/** * INTERNAL: * Once descriptors are serialized to the remote session. All its mappings and reference descriptors are traversed. Usually * mappings are initialized and serialized reference descriptors are replaced with local descriptors if they already exist on the * remote session. */ @Override public void remoteInitialization(DistributedSession session) { super.remoteInitialization(session); setTempSession(session); }
/** * INTERNAL: * Once descriptors are serialized to the remote session. All its mappings and reference descriptors are traversed. Usually * mappings are initialized and serialized reference descriptors are replaced with local descriptors if they already exist on the * remote session. */ public void remoteInitialization(DistributedSession session) { super.remoteInitialization(session); setTempSession(session); }
/** * INTERNAL: * Once descriptors are serialized to the remote session. All its mappings and reference descriptors are traversed. Usually * mappings are initialized and serialized reference descriptors are replaced with local descriptors if they already exist on the * remote session. */ @Override public void remoteInitialization(DistributedSession session) { setFieldToTransformers(new Vector()); // Remote mappings is initialized here again because while serializing only the uninitialized data is passed // as the initialized data is not serializable. if (!isWriteOnly()) { super.remoteInitialization(session); initializeAttributeTransformer(session); } initializeFieldToTransformers(session); }
/** * INTERNAL: * Once descriptors are serialized to the remote session. All its mappings and reference descriptors are traversed. Usually * mappings are initilaized and serialized reference descriptors are replaced with local descriptors if they already exist on the * remote session. */ public void remoteInitialization(DistributedSession session) { setFieldToTransformers(new Vector()); // Remote mappings is initilaized here again because while serializing only the uninitialized data is passed // as the initialized data is not serializable. if (!isWriteOnly()) { super.remoteInitialization(session); initializeAttributeTransformer(session); } initializeFieldToTransformers(session); }
/** * INTERNAL: * Once descriptors are serialized to the remote session. All its mappings and reference descriptors are traversed. Usually * mappings are initialized and serialized reference descriptors are replaced with local descriptors if they already exist on the * remote session. */ @Override public void remoteInitialization(DistributedSession session) { setFieldToTransformers(new Vector()); // Remote mappings is initialized here again because while serializing only the uninitialized data is passed // as the initialized data is not serializable. if (!isWriteOnly()) { super.remoteInitialization(session); initializeAttributeTransformer(session); } initializeFieldToTransformers(session); }
/** * INTERNAL: * Once descriptors are serialized to the remote session. All its mappings and reference descriptors are traversed. Usually * mappings are initialized and serialized reference descriptors are replaced with local descriptors if they already exist on the * remote session. */ public void remoteInitialization(DistributedSession session) { if (!isRemotelyInitialized()) { super.remoteInitialization(session); if (this.attributeClassification == null) { this.attributeClassification = getAttributeAccessor().getAttributeClass(); } this.attributeObjectClassification = Helper.getObjectClass(this.attributeClassification); } }
/** * INTERNAL: * Once a descriptor is serialized to the remote session, all its mappings and reference descriptors are traversed. * Usually the mappings are initialized and the serialized reference descriptors are replaced with local descriptors * if they already exist in the remote session. */ public void remoteInitialization(DistributedSession session) { super.remoteInitialization(session); ClassDescriptor refDescriptor = getReferenceDescriptor(); if (session.hasCorrespondingDescriptor(refDescriptor)) { ClassDescriptor correspondingDescriptor = session.getDescriptorCorrespondingTo(refDescriptor); setReferenceDescriptor(correspondingDescriptor); } else { session.privilegedAddDescriptor(refDescriptor); refDescriptor.remoteInitialization(session); } }
/** * INTERNAL: * Once a descriptor is serialized to the remote session, all its mappings and reference descriptors are traversed. * Usually the mappings are initialized and the serialized reference descriptors are replaced with local descriptors * if they already exist in the remote session. */ public void remoteInitialization(DistributedSession session) { super.remoteInitialization(session); ClassDescriptor refDescriptor = getReferenceDescriptor(); if (session.hasCorrespondingDescriptor(refDescriptor)) { ClassDescriptor correspondingDescriptor = session.getDescriptorCorrespondingTo(refDescriptor); setReferenceDescriptor(correspondingDescriptor); } else { session.privilegedAddDescriptor(refDescriptor); refDescriptor.remoteInitialization(session); } }
/** * INTERNAL: * Once a descriptor is serialized to the remote session, all its mappings and reference descriptors are traversed. * Usually the mappings are initialized and the serialized reference descriptors are replaced with local descriptors * if they already exist in the remote session. */ public void remoteInitialization(DistributedSession session) { super.remoteInitialization(session); ClassDescriptor refDescriptor = getReferenceDescriptor(); if (session.hasCorrespondingDescriptor(refDescriptor)) { ClassDescriptor correspondingDescriptor = session.getDescriptorCorrespondingTo(refDescriptor); setReferenceDescriptor(correspondingDescriptor); } else { session.privilegedAddDescriptor(refDescriptor); refDescriptor.remoteInitialization(session); } }
/** * INTERNAL: * Used to initialize a remote descriptor. */ public void remoteInitialization(DistributedSession session) { // These cached settings on the project must be set even if descriptor is initialized. if (getHistoryPolicy() != null) { session.getProject().setHasGenericHistorySupport(true); } // Record that there is an isolated class in the project. if (isIsolated()) { session.getProject().setHasIsolatedClasses(true); } if (!shouldIsolateObjectsInUnitOfWork() && !shouldBeReadOnly()) { session.getProject().setHasNonIsolatedUOWClasses(true); } for (DatabaseMapping mapping : getMappings()) { mapping.remoteInitialization(session); } getEventManager().remoteInitialization(session); getInstantiationPolicy().initialize(session); getCopyPolicy().initialize(session); if (hasInheritance()) { getInheritancePolicy().remoteInitialization(session); } }
/** * INTERNAL: * Used to initialize a remote descriptor. */ public void remoteInitialization(DistributedSession session) { // These cached settings on the project must be set even if descriptor is initialized. if (getHistoryPolicy() != null) { session.getProject().setHasGenericHistorySupport(true); } // Record that there is an isolated class in the project. if (!getCachePolicy().isSharedIsolation()) { session.getProject().setHasIsolatedClasses(true); } if (!getCachePolicy().shouldIsolateObjectsInUnitOfWork() && !shouldBeReadOnly()) { session.getProject().setHasNonIsolatedUOWClasses(true); } for (DatabaseMapping mapping : getMappings()) { mapping.remoteInitialization(session); } getEventManager().remoteInitialization(session); getInstantiationPolicy().initialize(session); getCopyPolicy().initialize(session); if (hasInheritance()) { getInheritancePolicy().remoteInitialization(session); } if (getCMPPolicy() != null) { getCMPPolicy().remoteInitialize(this, session); } }
/** * INTERNAL: * Used to initialize a remote descriptor. */ public void remoteInitialization(DistributedSession session) { // These cached settings on the project must be set even if descriptor is initialized. if (getHistoryPolicy() != null) { session.getProject().setHasGenericHistorySupport(true); } // Record that there is an isolated class in the project. if (!getCachePolicy().isSharedIsolation()) { session.getProject().setHasIsolatedClasses(true); } if (!getCachePolicy().shouldIsolateObjectsInUnitOfWork() && !shouldBeReadOnly()) { session.getProject().setHasNonIsolatedUOWClasses(true); } for (DatabaseMapping mapping : getMappings()) { mapping.remoteInitialization(session); } getEventManager().remoteInitialization(session); getInstantiationPolicy().initialize(session); getCopyPolicy().initialize(session); if (hasInheritance()) { getInheritancePolicy().remoteInitialization(session); } if (getCMPPolicy() != null) { getCMPPolicy().remoteInitialize(this, session); } }