net.sourceforge.squirrel_sql.plugins.sessionscript
Class AliasScriptCache

java.lang.Object
  extended by net.sourceforge.squirrel_sql.plugins.sessionscript.AliasScriptCache

public class AliasScriptCache
extends Object

XML cache of SQL scripts.

Author:
Colin Bell

Constructor Summary
AliasScriptCache(SessionScriptPlugin plugin)
          Ctor.
 
Method Summary
 AliasScript get(ISQLAlias alias)
          Return the AliasScript for the passed ISQLAlias.
 void load()
          Load scripts from XML document.
 void save()
          Save scripts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AliasScriptCache

public AliasScriptCache(SessionScriptPlugin plugin)
                 throws IOException
Ctor. Loads scripts from the XML document.

Parameters:
sqlScriptPlugin - Current plugin.
Throws:
IllegalArgumentException - Thrown if null SQLScriptPlugin passed.
IOException
Method Detail

get

public AliasScript get(ISQLAlias alias)
Return the AliasScript for the passed ISQLAlias.

Parameters:
alias - SQLALias to retrieve collection of scripts for.
Throws:
IllegalArgumentException - Thrown if nullISQLAlias passed.
InternalError - Thrown if we try to add a script for an alias and one already exists. Programming error.

load

public void load()
Load scripts from XML document.


save

public void save()
Save scripts.



Copyright © 2001-2011. All Rights Reserved.