Examples of addProperty()


Examples of org.glassfish.api.ActionReport.MessagePart.addProperty()

                first = false;
            }

            MessagePart msg = topMsg.addChild();
            msg.setMessage(String.format(formattedLine, info.jobName, info.jobId,  new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(info.commandExecutionDate), info.exitCode,info.user));
            msg.addProperty(NAME, info.jobName);
            msg.addProperty(JOBID, info.jobId);
            msg.addProperty(TIME, new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(info.commandExecutionDate));
            msg.addProperty(STATE, info.exitCode);
            msg.addProperty(USER, info.user);
        }

Examples of org.hibernate.mapping.Component.addProperty()

      else {
        throw new JDBCBinderException("unknown thing");
      }

            markAsUseInEquals(property);
            pkc.addProperty(property);

    }

    return pkc;
  }

Examples of org.hibernate.mapping.Join.addProperty()

            copy.setCheckConstraint( column.getCheckConstraint() );
            copy.setComment( column.getComment() );
            copy.setDefaultValue( column.getDefaultValue() );
            manyToOne.addColumn( copy );
          }
          mappedByJoin.addProperty( prop );
        }
        else {
          propertyHolder.addProperty( prop, inferredData.getDeclaringClass() );
        }

Examples of org.hibernate.mapping.PersistentClass.addProperty()

      ib.setCollectionRole( list.getRole() );
      ib.setEntityName( list.getOwner().getEntityName() );
      ib.setValue( list.getIndex() );
      // ( (Column) ( (SimpleValue) ic.getIndex() ).getColumnIterator().next()
      // ).setNullable(false);
      referenced.addProperty( ib );
    }
  }

  public static void bindIdentifierCollectionSecondPass(Element node,
      IdentifierCollection collection, java.util.Map persistentClasses, Mappings mappings,

Examples of org.hibernate.search.testsupport.setup.SearchConfigurationForTest.addProperty()

  }

  private MutableSearchFactory getSearchFactory(Map<String, String> shardingProperties) {
    SearchConfigurationForTest configuration = new SearchConfigurationForTest();
    for ( Map.Entry<String, String> entry : shardingProperties.entrySet() ) {
      configuration.addProperty( entry.getKey(), entry.getValue() );
    }
    configuration.addClass( Foo.class );

    return (MutableSearchFactory) new SearchFactoryBuilder().configuration(
        configuration

Examples of org.hibernate.validator.HibernateValidatorConfiguration.addProperty()

  @Test
  @TestForIssue(jiraKey = "HV-381")
  public void testFailFastSetWithProperty() {
    // with fail fast
    HibernateValidatorConfiguration configuration = ValidatorUtil.getConfiguration( HibernateValidator.class );
    ValidatorFactory factory = configuration.addProperty( HibernateValidatorConfiguration.FAIL_FAST, "true" )
        .buildValidatorFactory();

    Validator validator = factory.getValidator();

    Set<ConstraintViolation<A>> constraintViolations = validator.validate( testInstance );

Examples of org.infinispan.configuration.cache.CacheLoaderConfigurationBuilder.addProperty()

               .scheme(VersioningScheme.SIMPLE).transaction().lockingMode(LockingMode.PESSIMISTIC);
      cb.loaders().passivation(false).preload(true).shared(true);
      // Make it really shared by adding the test's name as store name
      CacheLoaderConfigurationBuilder lb = cb.loaders().addCacheLoader()
               .cacheLoader(new DummyInMemoryCacheStore());
      lb.addProperty("storeName", getClass().getSimpleName());

      EmbeddedCacheManager cm1 = TestCacheManagerFactory.createClusteredCacheManager();
      EmbeddedCacheManager cm2 = TestCacheManagerFactory.createClusteredCacheManager();
      registerCacheManager(cm1, cm2);
     

Examples of org.infinispan.configuration.cache.LegacyStoreConfigurationBuilder.addProperty()

      cb.loaders().passivation(false).preload(true).shared(true);
      // Make it really shared by adding the test's name as store name
      LegacyStoreConfigurationBuilder sb = cb.loaders().addStore().cacheStore(
            new DummyInMemoryCacheStore());
      sb.addProperty("storeName", getClass().getSimpleName());
      sb.async().disable();
      return cb;
   }

   @Override

Examples of org.infinispan.configuration.cache.LoaderConfigurationBuilder.addProperty()

   public void testModeShapeStoreConfiguration() {
      // This code courtesy of Randall Hauch
      ConfigurationBuilder configurationBuilder = new ConfigurationBuilder();
      LoaderConfigurationBuilder lb = configurationBuilder.loaders().addCacheLoader().cacheLoader(new FileCacheStore());
      lb.addProperty("dropTableOnExit", "false").addProperty("createTableOnStart", "true")
            .addProperty("connectionFactoryClass", "org.infinispan.loaders.jdbc.connectionfactory.PooledConnectionFactory")
            .addProperty("connectionUrl", "jdbc:h2:file:/abs/path/string_based_db;DB_CLOSE_DELAY=1").addProperty("driverClass", "org.h2.Driver").addProperty("userName", "sa")
            .addProperty("idColumnName", "ID_COLUMN").addProperty("idColumnType", "VARCHAR(255)").addProperty("timestampColumnName", "TIMESTAMP_COLUMN")
            .addProperty("timestampColumnType", "BIGINT").addProperty("dataColumnName", "DATA_COLUMN").addProperty("dataColumnType", "BINARY")
            .addProperty("bucketTableNamePrefix", "MODE").addProperty("cacheName", "default");

Examples of org.infinispan.configuration.global.TransportConfigurationBuilder.addProperty()

   
    GlobalConfigurationBuilder builder = GlobalConfigurationBuilder.defaultClusteredBuilder();
   
    TransportConfigurationBuilder transportConfigurationBuilder = builder.transport();
   
    transportConfigurationBuilder = transportConfigurationBuilder.addProperty("configurationFile", "jgroups.xml");
   
    GlobalConfiguration globalConfiguration = transportConfigurationBuilder.build();
 
    return globalConfiguration ;
  }
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.