Examples of AbstractProperties


Examples of org.castor.core.util.AbstractProperties

        _type = engine.getDescriptor().getJavaClass().getName();
        _mapTo = new ClassDescriptorJDONature(engine.getDescriptor()).getTableName();
       
        _keyGen = getKeyGenerator(engine, factory);

        AbstractProperties properties = CPAProperties.getInstance();
        _useJDBC30 = properties.getBoolean(CPAProperties.USE_JDBC30, false);
       
        _lookupStatement = new SQLStatementLookup(engine, factory);
       
        buildStatement();
    }
View Full Code Here

Examples of org.castor.core.util.AbstractProperties

    public LockEngine(final ConnectionFactory connectionFactory,
                      final ClassDescriptorResolver cdResolver,
                      final PersistenceFactory persistenceFactory)
    throws MappingException {
        if (_cacheFactoryRegistry == null) {
            AbstractProperties properties = CPAProperties.getInstance();
            _cacheFactoryRegistry = new CacheFactoryRegistry(properties);
        }
       
        _connectionFactory = connectionFactory;
        _persistenceFactory = persistenceFactory;
View Full Code Here

Examples of org.castor.core.util.AbstractProperties

    }
   
    protected void setUp() throws Exception {
        super.setUp();
       
        AbstractProperties properties = getProperties();
        _memInitFlag = properties.getObject(CPAProperties.INITIALIZE_AT_LOAD);
        properties.put(CPAProperties.INITIALIZE_AT_LOAD, Boolean.toString(false));
    }
View Full Code Here

Examples of org.castor.core.util.AbstractProperties

        _memInitFlag = properties.getObject(CPAProperties.INITIALIZE_AT_LOAD);
        properties.put(CPAProperties.INITIALIZE_AT_LOAD, Boolean.toString(false));
    }
   
    protected void tearDown() throws Exception {
        AbstractProperties properties = getProperties();
        if (_memInitFlag != null) {
            properties.put(CPAProperties.INITIALIZE_AT_LOAD, _memInitFlag);
        } else {
            properties.remove(CPAProperties.INITIALIZE_AT_LOAD);
        }

        super.tearDown();
    }
View Full Code Here

Examples of org.castor.core.util.AbstractProperties

   
    public TestSQLTypes(final String arg0) {
        super(arg0);
       
        if (_registry == null) {
            AbstractProperties properties = CPAProperties.newInstance();
            _registry = new TypeConvertorRegistry(properties);
        }
    }
View Full Code Here

Examples of org.castor.core.util.AbstractProperties

    }

    protected void setUp() throws Exception {
        super.setUp();

        AbstractProperties properties = getProperties();
        _memConvertors = properties.getString(CPAProperties.TYPE_CONVERTORS);
       
        StringBuffer convertors = new StringBuffer();
        convertors.append(_memConvertors);
        convertors.append(", ");
        convertors.append(FromCustomTypeConvertor.class.getName());
        convertors.append(", ");
        convertors.append(ToCustomTypeConvertor.class.getName());
        properties.put(CPAProperties.TYPE_CONVERTORS, convertors.toString());
    }
View Full Code Here

Examples of org.castor.core.util.AbstractProperties

        convertors.append(ToCustomTypeConvertor.class.getName());
        properties.put(CPAProperties.TYPE_CONVERTORS, convertors.toString());
    }
   
    protected void tearDown() throws Exception {
        AbstractProperties properties = getProperties();
        properties.put(CPAProperties.TYPE_CONVERTORS, _memConvertors);

        super.tearDown();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.