Package org.jboss.as.cmp

Examples of org.jboss.as.cmp.CmpConfig


        log = Logger.getLogger(getClass().getName() + "." + tableName);

        this.schema = schema;
        this.tableId = tableId;

        final CmpConfig containerConf = entity.getManager().getCmpConfig();
        dontFlushCreated = containerConf.isInsertAfterEjbPostCreate();


        // TODO: jeb - make cache configurable
        int minCapacity;
        int maxCapacity;
View Full Code Here


                    public void configure(final DeploymentPhaseContext context, final ComponentDescription description, final ComponentConfiguration configuration) throws DeploymentUnitProcessingException {
                        final CmpEntityBeanComponentDescription componentDescription = (CmpEntityBeanComponentDescription) description;

                        final JDBCEntityMetaData entityMetaData = componentDescription.getEntityMetaData();

                        final JDBCStoreManager storeManager = new JDBCStoreManager(context.getDeploymentUnit(), entityMetaData, new CmpConfig(), catalog);

                        // Phase 1: Init the store
                        final JdbcStoreManagerInitService initService = new JdbcStoreManagerInitService(storeManager);
                        final ServiceBuilder<?> initBuilder = context.getServiceTarget().addService(initName, initService);
                        initBuilder.addDependency(KeyGeneratorFactoryRegistry.SERVICE_NAME, KeyGeneratorFactoryRegistry.class, storeManager.getKeyGeneratorFactoryInjector());
View Full Code Here

        log = Logger.getLogger(getClass().getName() + "." + tableName);

        this.schema = schema;
        this.tableId = tableId;

        final CmpConfig containerConf = entity.getManager().getCmpConfig();
        dontFlushCreated = containerConf.isInsertAfterEjbPostCreate();


        // TODO: jeb - make cache configurable
        int minCapacity;
        int maxCapacity;
View Full Code Here

                    public void configure(final DeploymentPhaseContext context, final ComponentDescription description, final ComponentConfiguration configuration) throws DeploymentUnitProcessingException {
                        final CmpEntityBeanComponentDescription componentDescription = (CmpEntityBeanComponentDescription) description;

                        final JDBCEntityMetaData entityMetaData = componentDescription.getEntityMetaData();

                        final JDBCStoreManager storeManager = new JDBCStoreManager(context.getDeploymentUnit(), entityMetaData, new CmpConfig(), catalog);

                        // Phase 1: Init the store
                        final JdbcStoreManagerInitService initService = new JdbcStoreManagerInitService(storeManager);
                        final ServiceBuilder<?> initBuilder = context.getServiceTarget().addService(initName, initService);
                        addDataSourceDependency(initBuilder, storeManager, entityMetaData.getDataSourceName());
View Full Code Here

        return new JDBCApplicationMetaData(application, defaults);
    }

    private static CmpConfig parseContainerConfiguration(final XMLStreamReader reader, final CmpConfig defaults) throws XMLStreamException {
        final CmpConfig config = new CmpConfig();
        config.setCallEjbStoreOnClean(defaults.isCallEjbStoreOnClean());
        config.setSyncOnCommitOnly(defaults.isSyncOnCommitOnly());
        config.setInsertAfterEjbPostCreate(defaults.isInsertAfterEjbPostCreate());
        for (Element element : children(reader)) {
            switch (element) {
                case SYNC_ON_COMMIT_ONLY: {
                    config.setSyncOnCommitOnly(Boolean.parseBoolean(reader.getElementText()));
                    break;
                }
                case INSERT_AFTER_EJB_POST_CREATE: {
                    config.setInsertAfterEjbPostCreate(Boolean.parseBoolean(reader.getElementText()));
                    break;
                }
                case CALL_EJB_STORE_ON_CLEAN: {
                    config.setCallEjbStoreOnClean(Boolean.parseBoolean(reader.getElementText()));
                    break;
                }
                default: {
                    throw unexpectedElement(reader);
                }
View Full Code Here

        eagerLoadGroup = "*";
        readAhead = JDBCReadAheadMetaData.DEFAULT;
        cleanReadAheadOnLoad = false;
        optimisticLocking = null;
        audit = null;
        cmpConfig = new CmpConfig();

    }
View Full Code Here

        readAhead = JDBCReadAheadMetaData.DEFAULT;
        cleanReadAheadOnLoad = false;
        entityCommand = null;
        optimisticLocking = null;
        audit = null;
        cmpConfig = new CmpConfig();
    }
View Full Code Here


        for (JDBCQueryMetaData query : defaultValues.queries.values()) {
            queries.put(query.getMethod(), queryFactory.createJDBCQueryMetaData(query, readAhead, qlCompiler));
        }
        cmpConfig = new CmpConfig();
    }
View Full Code Here

        log = Logger.getLogger(getClass().getName() + "." + tableName);

        this.schema = schema;
        this.tableId = tableId;

        final CmpConfig containerConf = entity.getManager().getCmpConfig();
        dontFlushCreated = containerConf.isInsertAfterEjbPostCreate();


        // TODO: jeb - make cache configurable
        int minCapacity;
        int maxCapacity;
View Full Code Here

TOP

Related Classes of org.jboss.as.cmp.CmpConfig

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.