Class DerbyDatabaseFactory

java.lang.Object
is.codion.dbms.derby.DerbyDatabaseFactory
All Implemented Interfaces:
DatabaseFactory

public final class DerbyDatabaseFactory extends Object implements DatabaseFactory
Provides derby database implementations
  • Constructor Details

    • DerbyDatabaseFactory

      public DerbyDatabaseFactory()
  • Method Details

    • driverCompatible

      public boolean driverCompatible(String driverClassName)
      Specified by:
      driverCompatible in interface DatabaseFactory
      Parameters:
      driverClassName - the driver class name
      Returns:
      true if this database factory is compatible with the given driver
    • create

      public Database create(String url)
      Specified by:
      create in interface DatabaseFactory
      Parameters:
      url - the jdbc url
      Returns:
      a new Database implementation based on the given jdbc url.
    • shutdown

      public static void shutdown(Database database)
      Shuts down the given database instance, assuming it is embedded
      Parameters:
      database - the database to shutdown