public final class DatabaseUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static DbmsType |
dbmsTypeOf(DbmsHandlerComponent handler,
com.speedment.runtime.config.Dbms dbms)
Returns the
DbmsType for the specified Dbms. |
static String |
findConnectionUrl(DbmsHandlerComponent dbmsHandlerComponent,
com.speedment.runtime.config.Dbms dbms)
Determines the connection URL to use for the specified
Dbms by
first:
checking if the CONNECTION_URL property is set;
otherwise, calculate it using the DbmsType. |
static DbmsType |
findDbmsType(DbmsHandlerComponent dbmsHandlerComponent,
com.speedment.runtime.config.Dbms dbms)
Locates the
DbmsType corresponding to the specified Dbms,
or throws a SpeedmentException if it can not be found. |
public static DbmsType dbmsTypeOf(DbmsHandlerComponent handler, com.speedment.runtime.config.Dbms dbms)
DbmsType for the specified Dbms.handler - the dbms handler to usedbms - the dbmspublic static String findConnectionUrl(DbmsHandlerComponent dbmsHandlerComponent, com.speedment.runtime.config.Dbms dbms) throws SpeedmentException
Dbms by
first:
CONNECTION_URL property is set;
DbmsType.
DbmsType can not be found by calling
dbmsTypeOf(DbmsHandlerComponent, Dbms), a
SpeedmentException will be thrown.dbmsHandlerComponent - the dbms handler component instancedbms - the database managerSpeedmentException - if the DbmsType couldn't be foundpublic static DbmsType findDbmsType(DbmsHandlerComponent dbmsHandlerComponent, com.speedment.runtime.config.Dbms dbms)
DbmsType corresponding to the specified Dbms,
or throws a SpeedmentException if it can not be found.dbmsHandlerComponent - the handler to look indbms - the dbms to look forCopyright © 2019 Speedment, Inc.. All rights reserved.