Class ScriptingEngineManager

  • All Implemented Interfaces:
    Serializable

    public class ScriptingEngineManager
    extends Object
    implements Serializable
    Manages the database URL/scripting engine relations.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • ScriptingEngineManager

        public ScriptingEngineManager()
        Initializes the manager.
    • Method Detail

      • getKey

        protected String getKey​(AbstractDatabaseConnection dbcon)
        Returns the key for this database connection.
        Parameters:
        dbcon - the database connection to get a key for
        Returns:
        the key
      • has

        public boolean has​(AbstractDatabaseConnection dbcon)
        Checks whether a engine object for the specified database connection is available.
        Parameters:
        dbcon - the connection to check
        Returns:
        true if a engine object is available
      • get

        public AbstractScriptingEngine get​(AbstractDatabaseConnection dbcon)
        Gets the engine object for the specified database connection.
        Parameters:
        dbcon - the connection to get the engine for
        Returns:
        the engine object if available, otherwise null
      • toString

        public String toString()
        Returns a short string representation of the manager.
        Overrides:
        toString in class Object
        Returns:
        the string representation