net.sourceforge.squirrel_sql.plugins.sqlreplace
Class ReplacementManager

java.lang.Object
  extended by net.sourceforge.squirrel_sql.plugins.sqlreplace.ReplacementManager

public class ReplacementManager
extends Object

Manages replacements. Including loading and saving to a properties file.

Author:
Dieter

Constructor Summary
ReplacementManager(SQLReplacePlugin _plugin)
           
 
Method Summary
 String getContent()
           
protected  Iterator<Replacement> iterator()
           
protected  void load()
          Load the stored replacement.
 void removeAll()
           
 String replace(StringBuffer buffer)
          Here we replace the original SQL Statement with the Set of Vars from our ReplamentList
protected  void save()
          Save the replacement.
 void setContentFromEditor(String content)
          Sets the content from the editor section and add it to the replacementarray
 void setFileWrapperFactory(FileWrapperFactory fileWrapperFactory)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReplacementManager

public ReplacementManager(SQLReplacePlugin _plugin)
Parameters:
_plugin -
Method Detail

load

protected void load()
             throws IOException
Load the stored replacement.

Throws:
IOException

save

protected void save()
Save the replacement.


iterator

protected Iterator<Replacement> iterator()

removeAll

public void removeAll()

setContentFromEditor

public void setContentFromEditor(String content)
Sets the content from the editor section and add it to the replacementarray

Parameters:
content -

getContent

public String getContent()

replace

public String replace(StringBuffer buffer)
Here we replace the original SQL Statement with the Set of Vars from our ReplamentList

Parameters:
buffer -
Returns:

setFileWrapperFactory

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


Copyright © 2001-2011. All Rights Reserved.