Module litebridge.orm
Package org.litebridge.orm.spi
Interface LitebridgeOverrideDatabaseProvider<LB>
- Type Parameters:
LB- The type of the custom Litebridge implementation supported by this provider.
- All Superinterfaces:
DatabaseProvider
Specialised database provider for a custom Litebridge implementation.
This interface should be implemented by database providers that support custom Litebridge types. It provides methods to identify the custom Litebridge class type and optionally construct instances of it.
Note that the "built-in" Litebridge variants (LitebridgeCore
and Litebridge) do not require a custom construction implementation.
-
Method Summary
Modifier and TypeMethodDescriptiondefault LBcreateLitebridge(LitebridgeBuilder.ConstructorArgs constructorArgs) Returns an instance of the custom Litebridge implementation supported by this provider.Returns the class type of the custom Litebridge implementation supported by this provider.Methods inherited from interface org.litebridge.db.spi.DatabaseProvider
databaseMetaData, executeBatch, executeQuery, executeUpdate, metaData, sequenceColumnValueGenerator, sqlFunctionRegistry, tableMetaData, toSql, typeConverter
-
Method Details
-
litebridgeClass
Returns the class type of the custom Litebridge implementation supported by this provider.- Returns:
- The class type of the custom Litebridge implementation.
-
createLitebridge
Returns an instance of the custom Litebridge implementation supported by this provider.This method is not needed for
LitebridgeorLitebridgeCore.- Parameters:
constructorArgs- The constructor arguments for the custom Litebridge implementation.- Returns:
- An instance of the custom Litebridge implementation.
-