Package de.innovationgate.wga.modules

Examples of de.innovationgate.wga.modules.OptionDefinitionsMap


    private LocalisationBundleLoader _bundleLoader = new LocalisationBundleLoader(WGUtils.getPackagePath(this.getClass()) + "/hsqlpers", getClass().getClassLoader());

    @Override
    public OptionDefinitionsMap getOptionDefinitions() {
        OptionDefinitionsMap options = super.getOptionDefinitions();
       
        LocalizedOptionDefinition path = new LocalizedOptionDefinition(Database.OPTION_PATH, StringOptionType.INSTANCE, _bundleLoader);
        path.addFlag(Database.OPTIONFLAG_PATH_OPTION);
        options.addOption(path);
       
       
        return options;
    }
View Full Code Here


        return WGDatabaseImpl.class;
    }
   
    @Override
    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 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);
       
        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 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 jdbcPort = new LocalizedOptionDefinition(WGDatabaseImpl.COPTION_JDBCPORT, IntegerOptionType.INSTANCE, _bundleLoader);
        jdbcPort.setOptional(true);
        jdbcPort.setExpert(true);
        options.addOption(jdbcPort);
       
        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;
    }
View Full Code Here

    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;
    }
View Full Code Here

    public Class<? extends ModuleType> getModuleType() {
        return ContentDatabaseModuleType.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 refresh = new LocalizedOptionDefinition(JDBCSource.COPTION_REFRESH, IntegerOptionType.INSTANCE, _bundleLoader);
        refresh.setOptional(true);
        refresh.setDefaultValue("60");
        options.addOption(refresh);
       
        options.putAll(super.getOptionDefinitions());
       
        return options;

    }
View Full Code Here

    public Class<? extends ModuleType> getModuleType() {
        return ContentDatabaseModuleType.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 refresh = new LocalizedOptionDefinition(JDBCSource.COPTION_REFRESH, IntegerOptionType.INSTANCE, _bundleLoader);
        refresh.setOptional(true);
        refresh.setDefaultValue("60");
        options.addOption(refresh);
       
        LocalizedOptionDefinition jdbcPort = new LocalizedOptionDefinition(WGDatabaseImpl.COPTION_JDBCPORT, IntegerOptionType.INSTANCE, _bundleLoader);
        jdbcPort.setOptional(true);
        jdbcPort.setExpert(true);
        options.addOption(jdbcPort);
       
        options.putAll(super.getOptionDefinitions());
       
        return options;

    }
View Full Code Here

    private LocalisationBundleLoader _bundleLoader = new LocalisationBundleLoader(WGUtils.getPackagePath(this.getClass()) + "/mysqlpers", getClass().getClassLoader());


    @Override
    public OptionDefinitionsMap getOptionDefinitions() {
        OptionDefinitionsMap options = super.getOptionDefinitions();
       
        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);

       
        return options;
    }
View Full Code Here

        return DatabaseServerModuleType.class;
    }

    public OptionDefinitionsMap getOptionDefinitions() {
       
        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        LocalizedOptionDefinition masterUser = new LocalizedOptionDefinition(DatabaseServer.OPTION_MASTERLOGIN_USER, StringOptionType.INSTANCE, _bundleLoader);
        masterUser.setOptional(true);
        options.addOption(masterUser);
       
        LocalizedOptionDefinition masterPassword = new LocalizedOptionDefinition(DatabaseServer.OPTION_MASTERLOGIN_PASSWORD, new PasswordOptionType(_registry), _bundleLoader);
        masterPassword.addDependentOption(DatabaseServer.OPTION_MASTERLOGIN_USER);
        options.addOption(masterPassword);
       
        return options;
    }
View Full Code Here

    public Class<? extends ModuleType> getModuleType() {
        return DatabaseServerModuleType.class;  
    }

    public OptionDefinitionsMap getOptionDefinitions() {
        OptionDefinitionsMap options = new OptionDefinitionsMap();
       
        LocalizedOptionDefinition name = new LocalizedOptionDefinition(DatabaseServer.OPTION_PATH, StringOptionType.INSTANCE, _bundleLoader);
        name.setEmptyAllowedOverride(true);
        options.addOption(name);
       
        LocalizedOptionDefinition masterUser = new LocalizedOptionDefinition(DatabaseServer.OPTION_MASTERLOGIN_USER, StringOptionType.INSTANCE, _bundleLoader);
        options.addOption(masterUser);
       
        LocalizedOptionDefinition masterPassword = new LocalizedOptionDefinition(DatabaseServer.OPTION_MASTERLOGIN_PASSWORD, new PasswordOptionType(_registry), _bundleLoader);
        options.addOption(masterPassword);
       
        LocalizedOptionDefinition driver = new LocalizedOptionDefinition(OPTION_DRIVER, StringOptionType.INSTANCE, _bundleLoader);
        options.addOption(name);

       
        return options;

    }
View Full Code Here

    public Class<? extends ModuleType> getModuleType() {
        return ContentDatabaseModuleType.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);
       
        options.putAll(super.getOptionDefinitions());

        return options;

    }
View Full Code Here

   
    private LocalisationBundleLoader _bundleLoader = new LocalisationBundleLoader(WGUtils.getPackagePath(this.getClass()) + "/jdbcpers", getClass().getClassLoader());

    @Override
    public OptionDefinitionsMap getOptionDefinitions() {
        OptionDefinitionsMap options = super.getOptionDefinitions();
       
        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 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);
       
        return options;
    }
View Full Code Here

TOP

Related Classes of de.innovationgate.wga.modules.OptionDefinitionsMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.