net.sourceforge.squirrel_sql.plugins.dbdiff
Class ScriptFileManager

java.lang.Object
  extended by net.sourceforge.squirrel_sql.plugins.dbdiff.ScriptFileManager
All Implemented Interfaces:
IScriptFileManager

public class ScriptFileManager
extends Object
implements IScriptFileManager


Constructor Summary
ScriptFileManager()
           
 
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.
 void setFileWrapperFactory(FileWrapperFactory fileWrapperFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptFileManager

public ScriptFileManager()
Method Detail

getOutputFilenameForSession

public String getOutputFilenameForSession(ISession session,
                                          int number)
                                   throws IOException
Description copied from interface: IScriptFileManager
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.

Specified by:
getOutputFilenameForSession in interface IScriptFileManager
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
See Also:
getOutputFilenameForSession(net.sourceforge.squirrel_sql.client.session.ISession, int)

cleanupScriptFiles

public void cleanupScriptFiles()
Description copied from interface: IScriptFileManager
Remove the previously created filenames if they exist.

Specified by:
cleanupScriptFiles in interface IScriptFileManager
See Also:
IScriptFileManager.cleanupScriptFiles()

setFileWrapperFactory

public void setFileWrapperFactory(FileWrapperFactory fileWrapperFactory)
Parameters:
fileWrapperFactory - the fileWrapperFactory to set


Copyright © 2001-2012. All Rights Reserved.