/** @since 4.0 */ protected void writeSystemValues(CDODataOutput out) throws IOException { EClass eClass = getEClass(); CDOClassifierRef classRef = new CDOClassifierRef(eClass); if (TRACER.isEnabled()) { TRACER.format( "Writing revision: ID={0}, className={1}, version={2}, branchPoint={3}, revised={4}, resource={5}, container={6}, featureID={7}", //$NON-NLS-1$ id, eClass.getName(), getVersion(), branchPoint, revised, resourceID, containerID, containingFeatureID); } out.writeCDOClassifierRef(classRef); out.writeCDOID(id); out.writeCDOBranchPoint(branchPoint); out.writeInt(getVersion()); if (!id.isTemporary()) { out.writeLong(revised); } out.writeCDOID(resourceID); out.writeCDOID(out.getIDProvider().provideCDOID(containerID)); out.writeInt(containingFeatureID); }
@Override public void write(ExtendedDataOutput out) throws IOException { // TODO: change the parameter to prevent casting to CDODataInput CDODataOutput cdoDataOutput = (CDODataOutput) out; cdoDataOutput.writeCDOClassifierRef(classifierRef); // and let the super write the rest super.write(out); }