Package org.nuiton.topia.persistence
Interface TopiaConfiguration
- All Superinterfaces:
JdbcConfiguration,Serializable
- All Known Implementing Classes:
BeanTopiaConfiguration
Configuration needed to instantiate a
TopiaApplicationContext.
Please use an instance of TopiaConfigurationBuilder to build a new
TopiaConfiguration.- Since:
- 3.0
- Author:
- Brendan Le Ny (Code Lutin), Arnaud Thimel (Code Lutin)
-
Method Summary
Modifier and TypeMethodDescriptionMap<String,Class<? extends TopiaService>> Topia will automatically generate an Hibernate configuration for you based on the different element of this TopiaConfiguration.Delay after which Topia should consider a query as slow then log a warn.Configuration directive to change topia Ids generation strategy.booleanYou can set it to false if you don't want Topia to deal with the schema (you keep it up to date with your own sql file).booleanIf you want to favor using HikariCP as a connection pool.booleanIf true, ToPIA will validate schema against model upon starting.Methods inherited from interface org.nuiton.topia.persistence.jdbc.JdbcConfiguration
getJdbcConnectionPassword, getJdbcConnectionUrl, getJdbcConnectionUser, getJdbcDriverClass
-
Method Details
-
isInitSchema
boolean isInitSchema()You can set it to false if you don't want Topia to deal with the schema (you keep it up to date with your own sql file).- Returns:
- true by default
- Since:
- 3.0
-
isValidateSchema
boolean isValidateSchema()If true, ToPIA will validate schema against model upon starting. ToPIA will raise aSchemaValidationTopiaExceptionif the schema is not suitable for ToPIA to run fine.- Returns:
- FIXME
- Since:
- 3.0
-
getTopiaIdFactory
TopiaIdFactory getTopiaIdFactory()Configuration directive to change topia Ids generation strategy.- Returns:
- FIXME
- Since:
- 3.0
-
getSchemaName
String getSchemaName() -
getHibernateExtraConfiguration
Topia will automatically generate an Hibernate configuration for you based on the different element of this TopiaConfiguration. However, you can tune Hibernate by adding Hibernate configuration directive to this Map. We highly recommend you to use constants inHibernateAvailableSettingsas keys of the map. You MUST NOT passSchemaToolingSettings.HBM2DDL_AUTOsince ToPIA will use validate. If you want use it, have a look atHibernateTopiaMigrationService- Returns:
- a map containing hibernate configuration directives that ToPIA will use when it will instantiate Hibernate.
-
getDeclaredServices
Map<String,Class<? extends TopiaService>> getDeclaredServices() -
getDeclaredServicesConfiguration
-
isUseHikariForJdbcConnectionPooling
boolean isUseHikariForJdbcConnectionPooling()If you want to favor using HikariCP as a connection pool. -
getSlowQueriesThreshold
Delay after which Topia should consider a query as slow then log a warn.
-