Examples of bind()


Examples of org.hibernate.cfg.Ejb3Column.bind()

            column.setLength( Ejb3Column.DEFAULT_COLUMN_LENGTH );
            column.setLogicalColumnName( Collection.DEFAULT_KEY_COLUMN_NAME );
            //TODO create an EMPTY_JOINS collection
            column.setJoins( new HashMap<String, Join>() );
            column.setMappings( mappings );
            column.bind();
            elementColumns[0] = column;
          }
          //override the table
          for (Ejb3Column column : elementColumns) {
            column.setTable( mapValue.getCollectionTable() );
View Full Code Here

Examples of org.hibernate.cfg.annotations.CollectionBinder.bind()

          collectionBinder.setLocalGenerators( localGenerators );

        }
        collectionBinder.setInheritanceStatePerClass( inheritanceStatePerClass );
        collectionBinder.setDeclaringClass( inferredData.getDeclaringClass() );
        collectionBinder.bind();

      }
      //Either a regular property or a basic @Id or @EmbeddedId while not ignoring id annotations
      else if ( !isId || !entityBinder.isIgnoreIdAnnotations() ) {
        //define whether the type is a component or not
View Full Code Here

Examples of org.hibernate.cfg.annotations.PropertyBinder.bind()

      propBinder.setHolder( propertyHolder ); //PropertyHolderBuilder.buildPropertyHolder(rootClass)
      propBinder.setProperty( property );
      propBinder.setReturnedClass( inferredData.getPropertyClass() );

      propBinder.setMappings( mappings );
      Property prop = propBinder.bind();
      rootClass.setVersion( prop );
      SimpleValue simpleValue = (SimpleValue) prop.getValue();
      if ( !simpleValue.isTypeSpecified() ) simpleValue.setTypeName( "integer" );
      simpleValue.setNullValue( "undefined" );
      rootClass.setOptimisticLockMode( Versioning.OPTIMISTIC_LOCK_VERSION );
View Full Code Here

Examples of org.hibernate.id.IntegralDataTypeHolder.bind()

          PreparedStatement insertPS = null;
          try {
            SQL_STATEMENT_LOGGER.logStatement( insertQuery, FormatStyle.BASIC );
            insertPS = conn.prepareStatement( insertQuery );
            insertPS.setString( 1, segmentValue );
            value.bind( insertPS, 2 );
            insertPS.execute();
          }
          finally {
            if ( insertPS != null ) {
              insertPS.close();
View Full Code Here

Examples of org.hibernate.metamodel.source.annotations.entity.EntityBinder.bind()

      for ( EntityClass entityClass : hierarchy ) {
        // for classes annotated w/ @Entity we create a EntityBinding
        if ( ConfiguredClassType.ENTITY.equals( entityClass.getConfiguredClassType() ) ) {
          LOG.bindingEntityFromAnnotatedClass( entityClass.getName() );
          EntityBinder entityBinder = new EntityBinder( metadata, entityClass, parent );
          EntityBinding binding = entityBinder.bind();
          parent = binding.getEntity();
        }
        // for classes annotated w/ @MappedSuperclass we just create the domain instance
        // the attribute bindings will be part of the first entity subclass
        else if ( ConfiguredClassType.MAPPED_SUPERCLASS.equals( entityClass.getConfiguredClassType() ) ) {
View Full Code Here

Examples of org.hibernate.param.ParameterSpecification.bind()

    int position = bindFilterParameterValues( statement, queryParameters, startIndex, session );
    List parameterSpecs = queryTranslator.getSqlAST().getWalker().getParameters();
    Iterator itr = parameterSpecs.iterator();
    while ( itr.hasNext() ) {
      ParameterSpecification spec = ( ParameterSpecification ) itr.next();
      position += spec.bind( statement, queryParameters, session, position );
    }
    return position - startIndex;
  }

  private int bindFilterParameterValues(
View Full Code Here

Examples of org.hibernate.service.jndi.internal.JndiServiceImpl.bind()

            LOG.ejb3ConfigurationName( name );

      // todo : instantiating the JndiService here is temporary until HHH-6159 is resolved.
      JndiServiceImpl jndiService = new JndiServiceImpl( cfg.getProperties() );
      try {
        jndiService.bind( name, cfg );
        LOG.boundEjb3ConfigurationToJndiName( name );
        try {
          jndiService.addListener( name, LISTENER );
        }
        catch (Exception e) {
View Full Code Here

Examples of org.hibernate.type.descriptor.ValueBinder.bind()

          throw pe;
        }
        catch (RuntimeException re) {
          throw new PersistenceException( "Error attempting to apply AttributeConverter", re );
        }
        realBinder.bind( st, convertedValue, index, options );
      }
    };
  }

View Full Code Here

Examples of org.jboss.aop.metadata.ClassMetaDataLoader.bind()

            if (data.matches(advisor, clazz))
            {
               attached = true;
               if (addAdvisor) data.addAdvisor(advisor);
               ClassMetaDataLoader loader = data.getLoader();
               loader.bind(advisor, data, clazz.getDeclaredMethods(), clazz.getDeclaredFields(), clazz.getDeclaredConstructors());
            }
         }
      }
      return attached;
   }
View Full Code Here

Examples of org.jboss.arquillian.core.spi.Manager.bind()

            ManagerBuilder builder = ManagerBuilder.from().extension(Class.forName(DEFAULT_EXTENSION_CLASS));
            Manager manager = builder.create();

            manager.start();

            manager.bind(ApplicationScoped.class, Manager.class, manager);

            manager.fire(new BeforeSuite());
            manager.fire(new BeforeRequest(request, response));

            manager.bind(RequestScoped.class, ServletRequest.class, request);
View Full Code Here
TOP
Copyright © 2015 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.