private void overrideDatabaseTerminationToken ( Map < Object , Object > props ) { String overrideTermToken = null ; String platformClassName = _dbMgr . getDatabasePlatformClassName ( _pui ) ; if ( platformClassName != null ) { overrideTermToken = platformTerminationToken . get ( platformClassName ) ; } if ( overrideTermToken != null ) { String existing = ( String ) props . get ( PersistenceUnitProperties . TARGET_DATABASE_PROPERTIES ) ; if ( existing != null ) { existing = existing + "," ; } else { existing = "" ; } existing = ( existing + "StoredProcedureTerminationToken=" + overrideTermToken ) ; props . put ( PersistenceUnitProperties . TARGET_DATABASE_PROPERTIES , existing ) ; } }
Helper method that will override the termination token if the database detected is in our platformTerminationToken list .