DatasourcePlatform platform = (DatasourcePlatform)getDatasourcePlatform();
// Set shouldAcquireValueAfterInsert flag: identity -> true; sequence objects -> false.
if (platform.supportsIdentity() && shouldUseIdentityIfPlatformSupports()) {
// identity is both supported by platform and desired by the NativeSequence
setShouldAcquireValueAfterInsert(true);
} else if (platform.supportsSequenceObjects() && !shouldUseIdentityIfPlatformSupports()) {
// sequence objects is both supported by platform and desired by the NativeSequence
setShouldAcquireValueAfterInsert(false);
} else {
if (platform.getDefaultNativeSequenceToTable() || !platform.supportsNativeSequenceNumbers()) {
// If native sequencing is not supported, or IDENTITY not desire, use TABLE.