public interface DbmsHandlerComponent extends Component
DbmsHandlers
for a given Dbms. The DbmsHandler is
obtained via the get(com.speedment.config.db.Dbms)
method and if an
existing DbmsHandler can not be found, the make(com.speedment.config.db.Dbms)
method is called to provide a new instance.Lifecyclable.State
LIFECYCLABLE_LOGGER
Modifier and Type | Method and Description |
---|---|
Optional<DbmsType> |
findByName(String dbmsTypeName)
Searches for the specified
DbmsType by its name as defined by
DbmsType.getName() . |
DbmsHandler |
get(Dbms dbms)
Gets the DbmsHandler for the given Dbms.
|
void |
install(DbmsType dbmsType)
Installs a new
DbmsType so that handlers can be created using the
make(com.speedment.config.db.Dbms) method. |
DbmsHandler |
make(Dbms dbms)
Creates and returns a new DbmsHandler for the given Dbms.
|
Stream<DbmsType> |
supportedDbmsTypes()
Returns a stream of all
DbmsTypes that has been
installed in this component. |
asSoftware, defaultCopy, getComponentClass, getSpeedment, isInternal
getState, initialize, isInitialized, isLoaded, isResolved, isStarted, isStopped, load, onInitialize, onLoad, onResolve, onStart, onStop, postStop, preInitialize, preLoad, preResolve, preStart, preStop, resolve, setState, start, stop
void install(DbmsType dbmsType)
DbmsType
so that handlers can be created using the
make(com.speedment.config.db.Dbms)
method.
The type will be indexed by its name as returned by
DbmsType.getName()
. If multiple DbmsTypes
share name,
only the most recently installed will be saved.
dbmsType
- the type to installStream<DbmsType> supportedDbmsTypes()
DbmsTypes
that has been
installed in this component.Optional<DbmsType> findByName(String dbmsTypeName)
DbmsType
by its name as defined by
DbmsType.getName()
. If none is found, an empty
is
returned.dbmsTypeName
- the name to search forDbmsType
found or empty
DbmsHandler make(Dbms dbms)
dbms
- the dbms to useDbmsHandler get(Dbms dbms)
dbms
- dbms the dbms to useCopyright © 2016 Speedment, Inc.. All rights reserved.