public Class<? extends ModuleType> getModuleType() {
return ContentStoreModuleType.class;
}
public OptionDefinitionsMap getOptionDefinitions() {
OptionDefinitionsMap options = new OptionDefinitionsMap();
LocalizedOptionDefinition path = new LocalizedOptionDefinition(Database.OPTION_PATH, StringOptionType.INSTANCE, _bundleLoader);
path.addFlag(Database.OPTIONFLAG_PATH_OPTION);
options.addOption(path);
LocalizedOptionDefinition jndiPath = new LocalizedOptionDefinition(Database.OPTION_JNDI_PATH, StringOptionType.INSTANCE, _bundleLoader);
jndiPath.addFlag(Database.OPTIONFLAG_PATH_OPTION);
options.addOption(jndiPath);
LocalizedOptionDefinition optFileHandlingQueryPaging = new LocalizedOptionDefinition(WGDatabaseImpl.COPTION_OPTIMIZED_FILE_HANDLING_DISABLEQUERYPAGING, BooleanOptionType.INSTANCE, _bundleLoader);
optFileHandlingQueryPaging.setOptional(true);
optFileHandlingQueryPaging.setExpert(true);
optFileHandlingQueryPaging.setDefaultValue(Boolean.TRUE.toString());
options.addOption(optFileHandlingQueryPaging);
LocalizedOptionDefinition readerProfileCreation = new LocalizedOptionDefinition(WGDatabase.COPTION_READERPROFILECREATION, BooleanOptionType.INSTANCE, _bundleLoader);
readerProfileCreation.setOptional(true);
readerProfileCreation.setDefaultValue(Boolean.TRUE.toString());
options.addOption(readerProfileCreation);
LocalizedOptionDefinition mappingFile = new LocalizedOptionDefinition(WGDatabaseImpl.DBOPTION_MAPPINGFILE, StringOptionType.INSTANCE, _bundleLoader);
mappingFile.setOptional(true);
mappingFile.setExpert(true);
options.addOption(mappingFile);
LocalizedOptionDefinition mappingResource = new LocalizedOptionDefinition(WGDatabaseImpl.DBOPTION_MAPPINGRESOURCE, StringOptionType.INSTANCE, _bundleLoader);
mappingResource.setOptional(true);
mappingResource.setExpert(true);
mappingResource.setDefaultValue(WGDatabaseImpl.HIBERNATE_V5_MAPPING_FILE);
options.addOption(mappingResource);
PredefinedValuesOptionType hqlFetchType = new PredefinedValuesOptionType(_bundleLoader, WGDatabaseImpl.COPTION_HQL_FETCH_TYPE);
hqlFetchType.addValue(WGDatabaseImpl.HQL_FETCHTYPE_LAZY);
hqlFetchType.addValue(WGDatabaseImpl.HQL_FETCHTYPE_STRAIGHT);
LocalizedOptionDefinition hqlFetch = new LocalizedOptionDefinition(WGDatabaseImpl.COPTION_HQL_FETCH_TYPE, hqlFetchType, _bundleLoader);
hqlFetch.setOptional(true);
hqlFetch.setExpert(true);
hqlFetch.setDefaultValue(WGDatabaseImpl.HQL_FETCHTYPE_LAZY);
options.addOption(hqlFetch);
LocalizedOptionDefinition loadBalance = new LocalizedOptionDefinition(WGDatabaseImpl.COPTION_LOADBALANCE, BooleanOptionType.INSTANCE, _bundleLoader);
loadBalance.setOptional(true);
loadBalance.setExpert(true);
loadBalance.setDefaultValue(Boolean.FALSE.toString());
options.addOption(loadBalance);
LocalizedOptionDefinition masterPersistenceTimeout = new LocalizedOptionDefinition(WGDatabaseImpl.COPTION_MASTERPERSISTENCE_TIMEOUT, IntegerOptionType.INSTANCE, _bundleLoader);
masterPersistenceTimeout.setOptional(true);
masterPersistenceTimeout.setExpert(true);
masterPersistenceTimeout.setDefaultValue(String.valueOf(WGDatabaseImpl.DEFAULT_MASTERPERSISTENCE_TIMEOUT));
masterPersistenceTimeout.addDependentOption(WGDatabaseImpl.COPTION_LOADBALANCE, Boolean.TRUE.toString());
options.addOption(masterPersistenceTimeout);
LocalizedOptionDefinition showSQL = new LocalizedOptionDefinition("hibernate.show_sql", BooleanOptionType.INSTANCE, _bundleLoader);
showSQL.setOptional(true);
showSQL.setExpert(true);
showSQL.setDefaultValue(Boolean.FALSE.toString());
options.addOption(showSQL);
LocalizedOptionDefinition jdbcBatchSize = new LocalizedOptionDefinition("hibernate.jdbc.batch_size", IntegerOptionType.INSTANCE, _bundleLoader);
jdbcBatchSize.setOptional(true);
jdbcBatchSize.setExpert(true);
jdbcBatchSize.setDefaultValue("5");
options.addOption(jdbcBatchSize);
LocalizedOptionDefinition openPreparedStatements = new LocalizedOptionDefinition("hibernate.dbcp.maxOpenPreparedStatements", IntegerOptionType.INSTANCE, _bundleLoader);
openPreparedStatements.setOptional(true);
openPreparedStatements.setExpert(true);
openPreparedStatements.setDefaultValue(WGDatabaseImpl.DEFAULT_MAXOPENPREPAREDSTATEMENTS);
options.addOption(openPreparedStatements);
options.putAll(super.getOptionDefinitions());
return options;
}