private void initNewTransaction(SpiTransaction transaction, TxScope txScope) { if (txScope.isSkipCache()) { transaction.setSkipCache(true); } String label = txScope.getLabel(); if (label != null) { transaction.setLabel(label); } int profileId = txScope.getProfileId(); if (profileId > 0) { transaction.setProfileStream(profileHandler.createProfileStream(profileId)); } ProfileLocation profileLocation = txScope.getProfileLocation(); if (profileLocation != null) { profileLocation.obtain(); transaction.setProfileLocation(profileLocation); } }
private void initNewTransaction(SpiTransaction transaction, TxScope txScope) { if (txScope.isSkipCache()) { transaction.setSkipCache(true); } String label = txScope.getLabel(); if (label != null) { transaction.setLabel(label); } int profileId = txScope.getProfileId(); if (profileId > 0) { transaction.setProfileStream(profileHandler.createProfileStream(profileId)); } ProfileLocation profileLocation = txScope.getProfileLocation(); if (profileLocation != null) { profileLocation.obtain(); transaction.setProfileLocation(profileLocation); } }