/** * INTERNAL: * Make sure that the sequence is not used by more than one platform. */ protected void verifyPlatform(Platform otherPlatform) { if (getDatasourcePlatform() != otherPlatform) { String hashCode1 = Integer.toString(System.identityHashCode(getDatasourcePlatform())); String name1 = ((DatasourcePlatform)getDatasourcePlatform()).toString() + '(' + hashCode1 + ')'; String hashCode2 = Integer.toString(System.identityHashCode(otherPlatform)); String name2 = ((DatasourcePlatform)otherPlatform).toString() + '(' + hashCode2 + ')'; throw ValidationException.sequenceCannotBeConnectedToTwoPlatforms(getName(), name1, name2); } }
/** * INTERNAL: * Make sure that the sequence is not used by more than one platform. */ protected void verifyPlatform(Platform otherPlatform) { if (getDatasourcePlatform() != otherPlatform) { String hashCode1 = Integer.toString(System.identityHashCode(getDatasourcePlatform())); String name1 = ((DatasourcePlatform)getDatasourcePlatform()).toString() + '(' + hashCode1 + ')'; String hashCode2 = Integer.toString(System.identityHashCode(otherPlatform)); String name2 = ((DatasourcePlatform)otherPlatform).toString() + '(' + hashCode2 + ')'; throw ValidationException.sequenceCannotBeConnectedToTwoPlatforms(getName(), name1, name2); } }
/** * INTERNAL: * Make sure that the sequence is not used by more than one platform. */ protected void verifyPlatform(Platform otherPlatform) { if (getDatasourcePlatform() != otherPlatform) { String hashCode1 = Integer.toString(System.identityHashCode(getDatasourcePlatform())); String name1 = ((DatasourcePlatform)getDatasourcePlatform()).toString() + '(' + hashCode1 + ')'; String hashCode2 = Integer.toString(System.identityHashCode(otherPlatform)); String name2 = ((DatasourcePlatform)otherPlatform).toString() + '(' + hashCode2 + ')'; throw ValidationException.sequenceCannotBeConnectedToTwoPlatforms(getName(), name1, name2); } }