Mentions légales du service

Skip to content
Snippets Groups Projects
Commit f2a11655 authored by Jérôme Euzenat's avatar Jérôme Euzenat
Browse files

- added eraseFromDB boolean

parent ef3360e9
No related branches found
No related tags found
No related merge requests found
...@@ -549,13 +549,13 @@ public class CacheImpl { ...@@ -549,13 +549,13 @@ public class CacheImpl {
/** /**
* Non publicised class * Non publicised class
*/ */
public void eraseAlignment( String id ) throws SQLException, AlignmentException { public void eraseAlignment( String id, boolean eraseFromDB ) throws SQLException, AlignmentException {
Alignment alignment = getAlignment( id ); Alignment alignment = getAlignment( id );
if ( alignment != null ) { if ( alignment != null ) {
unstoreAlignment( id, alignment ); if ( eraseFromDB ) unstoreAlignment( id, alignment );
// Suppress it from the cache... // Suppress it from the cache...
unRecordAlignment( alignment ); unRecordAlignment( alignment );
} }
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment