Package java.util

Examples of java.util.Properties.clear()


            //  if any of the existing data sources are a good match or if
            //  one needs to be generated.
            //
            if (jtaDataSourceId == null && nonJtaDataSourceId == null){

                required.clear();
                required.put("JtaManaged", "true");
                jtaDataSourceId = firstMatching("DataSource", required, null);

                if (jtaDataSourceId == null){
                    required.clear();
View Full Code Here


                required.clear();
                required.put("JtaManaged", "true");
                jtaDataSourceId = firstMatching("DataSource", required, null);

                if (jtaDataSourceId == null){
                    required.clear();
                    required.put("JtaManaged", "false");
                    nonJtaDataSourceId = firstMatching("DataSource", required, null);
                }
            }
View Full Code Here

        assertEquals("uname", command.getUsername());
        assertEquals(false, command.isVerbose());
       
       
        // set empty props
        props.clear();
        command.setProperties(props);
        command.overrideValues();
       
        // test properties with overridden values
        assertNull(props.get(DEPLOY_DFM_CLASSNAME_PROP_KEY));
View Full Code Here

            assertConnect(false, protocol + "testcreatedb2;create=true", null);
        else
            assertConnect(true, protocol + "testcreatedb2;create=true", null);
       
        // user/password in properties
        info.clear();
        info.setProperty("user","APP");
        info.setProperty("password", "xxxx");
        if (usingEmbedded())
            assertConnect(true, url, info);
        else
View Full Code Here

        // user/password  in url
        assertConnect(false,
            url + ";user=testuser;password=testpass", null);
       
        // user in url, password in property
        info.clear();
        info.setProperty("password","testpass");
        assertConnect(false, url + ";user=testusr",info);

        // different users in url and in properties. URL is the winner
        info.clear();
View Full Code Here

        info.clear();
        info.setProperty("password","testpass");
        assertConnect(false, url + ";user=testusr",info);

        // different users in url and in properties. URL is the winner
        info.clear();
        info.setProperty("user","APP");
        info.setProperty("password","xxxx");
        assertConnect(false,
            url + ";user=testuser;password=testpass", null);
       
View Full Code Here

        info.setProperty("password","xxxx");
        assertConnect(false,
            url + ";user=testuser;password=testpass", null);
       
        // shutdown with properties
        info.clear();
        info.setProperty("shutdown","true");               
        try {
            assertConnect(false, protocol + "testcreatedb1", info);
        } catch (SQLException se)
        {
View Full Code Here

        log.clear();

        // now make sure we do *not* try to validate sub-configurations (such
        // as openjpa.jdbc.Foo).
        props.clear();
        props.setProperty("openjpa.jdbc.Foo", "XXX");
        props.setProperty("oponjpa", "XXX");
        config.fromProperties(props);
        log.assertNoLogMessage("*\"openjpa.jdbc.Foo\"*");
        log.assertNoLogMessage("*\"oponjpa\"*");
 
View Full Code Here

            throw new ClassCastException(obj.getClass().getName() + " unimplement interface " + Action.class.getName() + " or " + ActionInterceptor.class.getName());
        } catch (Exception e) {
          throw new RuntimeException("load config: \" + getPropertiesName() + \" failure! please verify item: \"" + key + ":" + value + "\"! cause:" + e.getMessage(), e);
        }
      }
      properties.clear();
      for (ActionInterceptor interceptor : interceptors.values()) {
        actionInterceptors.add(interceptor);
      }
      interceptors.clear();
    } catch (RuntimeException e) {
View Full Code Here

                                     
            /*
             * Now deal with -Drowset.provider.classname
             * load additional properties from -D command line
             */
            properties.clear();
            String providerImpls = System.getProperty(ROWSET_SYNC_PROVIDER);     

            if (providerImpls != null) {
                int i = 0;
                if (providerImpls.indexOf(colon) > 0) {
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.