net.sourceforge.squirrel_sql.plugins.dbdiff
Interface IScriptFileManager

All Known Implementing Classes:
ScriptFileManager

public interface IScriptFileManager

Interface for manager of script files. Ihis allows the plugin to cleanup any temporary script files that were created for comparison purposes.


Method Summary
 void cleanupScriptFiles()
          Remove the previously created filenames if they exist.
 String getOutputFilenameForSession(ISession session, int number)
          Creates a filename (for a temporary file) based on the specified session information.
 

Method Detail

getOutputFilenameForSession

String getOutputFilenameForSession(ISession session,
                                   int number)
                                   throws IOException
Creates a filename (for a temporary file) based on the specified session information. This should have the side effect of storing the filename off for cleanup later.

Parameters:
session - the session in which objects have been selected to have their definitions compared
number - which of the two sessions (generally, 1 or 2) is one being passed.
Returns:
a temporary filename
Throws:
IOException

cleanupScriptFiles

void cleanupScriptFiles()
Remove the previously created filenames if they exist.



Copyright © 2001-2012. All Rights Reserved.