Examples of StringPropertyValue


Examples of com.tll.common.model.StringPropertyValue

   */
  public CustomerListingWidget(ModelKey parentAccountRef) {
    super(config);
    this.parentAccountRef = parentAccountRef;
    criteria = new NamedQuerySearch(SmbizEntityType.CUSTOMER, "account.customerList", true);
    criteria.addParam(new StringPropertyValue("parentId", parentAccountRef.getId()));

    setOperator(RemoteListingOperator.create(config.getListingId(),
        ListHandlerType.PAGE, criteria, config.getModelProperties(),
        config.getPageSize(), config.getDefaultSorting()));
  }
View Full Code Here

Examples of com.tll.common.model.StringPropertyValue

  private IModelProperty createValueProperty(final Class<?> ptype, final String pname, final Object obj,
      final PropertyMetadata pdata) {
    IModelProperty prop = null;

    if(String.class == ptype) {
      prop = new StringPropertyValue(pname, pdata, (String) obj);
    }

    else if(Date.class == ptype) {
      final Date d = obj == null ? null : new Date(((Date) obj).getTime());
      prop = new DatePropertyValue(pname, pdata, d);
View Full Code Here

Examples of org.hibernate.test.any.StringPropertyValue

  public void testAnyMappingReference() {
    Session s = openSession();
    s.beginTransaction();

    PropertyValue redValue = new StringPropertyValue( "red" );
    PropertyValue lonliestNumberValue = new IntegerPropertyValue( 1 );

    Long id;
    PropertySet ps = new PropertySet( "my properties" );
    ps.setSomeSpecificProperty( redValue );
    ps.getGeneralProperties().put( "the lonliest number", lonliestNumberValue );
    ps.getGeneralProperties().put( "i like", new StringPropertyValue( "pina coladas" ) );
    ps.getGeneralProperties().put( "i also like", new StringPropertyValue( "getting caught in the rain" ) );
    s.save( ps );

    s.getTransaction().commit();
    id = ps.getId();
    s.clear();
View Full Code Here

Examples of org.hibernate.test.any.StringPropertyValue

  public void testAnyMappingReference() {
    Session s = openSession();
    s.beginTransaction();

    PropertyValue redValue = new StringPropertyValue( "red" );
    PropertyValue lonliestNumberValue = new IntegerPropertyValue( 1 );

    Long id;
    PropertySet ps = new PropertySet( "my properties" );
    ps.setSomeSpecificProperty( redValue );
    ps.getGeneralProperties().put( "the lonliest number", lonliestNumberValue );
    ps.getGeneralProperties().put( "i like", new StringPropertyValue( "pina coladas" ) );
    ps.getGeneralProperties().put( "i also like", new StringPropertyValue( "getting caught in the rain" ) );
    s.save( ps );

    s.getTransaction().commit();
    id = ps.getId();
    s.clear();
View Full Code Here

Examples of org.hibernate.test.any.StringPropertyValue

  public void testAnyMappingReference() {
    Session s = openSession();
    s.beginTransaction();

    PropertyValue redValue = new StringPropertyValue( "red" );
    PropertyValue lonliestNumberValue = new IntegerPropertyValue( 1 );

    Long id;
    PropertySet ps = new PropertySet( "my properties" );
    ps.setSomeSpecificProperty( redValue );
    ps.getGeneralProperties().put( "the lonliest number", lonliestNumberValue );
    ps.getGeneralProperties().put( "i like", new StringPropertyValue( "pina coladas" ) );
    ps.getGeneralProperties().put( "i also like", new StringPropertyValue( "getting caught in the rain" ) );
    s.save( ps );

    s.getTransaction().commit();
    id = ps.getId();
    s.clear();
View Full Code Here

Examples of org.hibernate.test.any.StringPropertyValue

  public void testAnyMappingReference() {
    Session s = openSession();
    s.beginTransaction();

    PropertyValue redValue = new StringPropertyValue( "red" );
    PropertyValue lonliestNumberValue = new IntegerPropertyValue( 1 );

    Long id;
    PropertySet ps = new PropertySet( "my properties" );
    ps.setSomeSpecificProperty( redValue );
    ps.getGeneralProperties().put( "the lonliest number", lonliestNumberValue );
    ps.getGeneralProperties().put( "i like", new StringPropertyValue( "pina coladas" ) );
    ps.getGeneralProperties().put( "i also like", new StringPropertyValue( "getting caught in the rain" ) );
    s.save( ps );

    s.getTransaction().commit();
    id = ps.getId();
    s.clear();
View Full Code Here

Examples of org.hibernate.test.any.StringPropertyValue

  public void testAnyMappingReference() {
    Session s = openSession();
    s.beginTransaction();

    PropertyValue redValue = new StringPropertyValue( "red" );
    PropertyValue lonliestNumberValue = new IntegerPropertyValue( 1 );

    Long id;
    PropertySet ps = new PropertySet( "my properties" );
    ps.setSomeSpecificProperty( redValue );
    ps.getGeneralProperties().put( "the lonliest number", lonliestNumberValue );
    ps.getGeneralProperties().put( "i like", new StringPropertyValue( "pina coladas" ) );
    ps.getGeneralProperties().put( "i also like", new StringPropertyValue( "getting caught in the rain" ) );
    s.save( ps );

    s.getTransaction().commit();
    id = ps.getId();
    s.clear();
View Full Code Here

Examples of org.hibernate.test.any.StringPropertyValue

  public void testAnyMappingReference() {
    Session s = openSession();
    s.beginTransaction();

    PropertyValue redValue = new StringPropertyValue( "red" );
    PropertyValue lonliestNumberValue = new IntegerPropertyValue( 1 );

    Long id;
    PropertySet ps = new PropertySet( "my properties" );
    ps.setSomeSpecificProperty( redValue );
    ps.getGeneralProperties().put( "the lonliest number", lonliestNumberValue );
    ps.getGeneralProperties().put( "i like", new StringPropertyValue( "pina coladas" ) );
    ps.getGeneralProperties().put( "i also like", new StringPropertyValue( "getting caught in the rain" ) );
    s.save( ps );

    s.getTransaction().commit();
    id = ps.getId();
    s.clear();
View Full Code Here

Examples of org.hibernate.test.any.StringPropertyValue

  public void testAnyMappingReference() {
    Session s = openSession();
    s.beginTransaction();

    PropertyValue redValue = new StringPropertyValue( "red" );
    PropertyValue lonliestNumberValue = new IntegerPropertyValue( 1 );

    Long id;
    PropertySet ps = new PropertySet( "my properties" );
    ps.setSomeSpecificProperty( redValue );
    ps.getGeneralProperties().put( "the lonliest number", lonliestNumberValue );
    ps.getGeneralProperties().put( "i like", new StringPropertyValue( "pina coladas" ) );
    ps.getGeneralProperties().put( "i also like", new StringPropertyValue( "getting caught in the rain" ) );
    s.save( ps );

    s.getTransaction().commit();
    id = ps.getId();
    s.clear();
View Full Code Here

Examples of org.hibernate.test.any.StringPropertyValue

  public void testAnyMappingReference() {
    Session s = openSession();
    s.beginTransaction();

    PropertyValue redValue = new StringPropertyValue( "red" );
    PropertyValue lonliestNumberValue = new IntegerPropertyValue( 1 );

    Long id;
    PropertySet ps = new PropertySet( "my properties" );
    ps.setSomeSpecificProperty( redValue );
    ps.getGeneralProperties().put( "the lonliest number", lonliestNumberValue );
    ps.getGeneralProperties().put( "i like", new StringPropertyValue( "pina coladas" ) );
    ps.getGeneralProperties().put( "i also like", new StringPropertyValue( "getting caught in the rain" ) );
    s.save( ps );

    s.getTransaction().commit();
    id = ps.getId();
    s.clear();
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.