/** * 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. */ @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: * The mapping is initialized with the given session. */ public void initialize(AbstractSession session) throws DescriptorException { super.initialize(session); initializeAttributeTransformer(session); initializeFieldToTransformers(session); setFields(collectFields()); getIndirectionPolicy().initialize(); }
/** * INTERNAL: * The mapping is initialized with the given session. */ @Override public void initialize(AbstractSession session) throws DescriptorException { super.initialize(session); initializeAttributeTransformer(session); initializeFieldToTransformers(session); setFields(collectFields()); this.indirectionPolicy.initialize(); if (usesIndirection()) { for (DatabaseField field : this.fields) { field.setKeepInRow(true); } } }
/** * INTERNAL: * The mapping is initialized with the given session. */ @Override public void initialize(AbstractSession session) throws DescriptorException { super.initialize(session); initializeAttributeTransformer(session); initializeFieldToTransformers(session); setFields(collectFields()); this.indirectionPolicy.initialize(); if (usesIndirection()) { for (DatabaseField field : this.fields) { field.setKeepInRow(true); } } }