Class AdapterFactory

java.lang.Object
app.ductape.sdk.database.adapters.AdapterFactory

public class AdapterFactory extends Object
  • Constructor Details

    • AdapterFactory

      public AdapterFactory()
  • Method Details

    • create

      public BaseAdapter create(DatabaseType type)
    • create

      public BaseAdapter create(DatabaseType type, Map<String,Object> connectOptions)
      TS/Go/.NET parity: live-vs-stub adapter selection. When type has a real live adapter and that adapter's shouldUse(Map) gate is true for the given connectOptions, returns the real driver-backed adapter instead of the in-memory stub (mirrors Go postgresShouldUseLive/newMySQLLiveBackend/ dynamoShouldUseLive / .NET NpgsqlPostgreSqlAdapter.ShouldUse/ MySqlConnectorLiveAdapter.ShouldUse/DynamoDbDriverLiveAdapter.ShouldUse dispatch).
    • isSupported

      public boolean isSupported(DatabaseType type)
    • getSupportedTypes

      public DatabaseType[] getSupportedTypes()
    • registerAdapter

      public void registerAdapter(DatabaseType type, Class<? extends BaseAdapter> adapterClass)
    • unregisterAdapter

      public boolean unregisterAdapter(DatabaseType type)