Examples of Binder


Examples of jfun.yan.Binder

    final Class param_type = param_types[0];
    final Class argtype = valc.getType();
    if(argtype!=null && !ReflectionUtil.isAssignableFrom(param_type, argtype)){
      return c;
    }
    return c.followedBy(new Binder(){
      public Creator bind(final Object obj){
        return valc.mutate(new Mutation(){
          public void mutate(Object arg) throws Exception {
            if(ReflectionUtil.isInstance(param_type, arg)){
              mtd.invoke(obj, new Object[]{arg});
View Full Code Here

Examples of jriaffe.bind.Binder

* Convenience class that "binds" a panel using the jriaffe bind framework. Some panels are nested inside the main
* panel and jriaffe does not handle binding them.
*/
public class BindUtility {
    public static Binder bindPanel(JPanel panel) {
        Binder aBinder = new Binder();
        Binder.addBindMethodToClass(panel.getClass());
        aBinder.setPanel(panel);
        return aBinder;
    }
View Full Code Here

Examples of org.apache.openjpa.persistence.jdbc.query.domain.Binder

  public void setUp() throws Exception {
    super.setUp(CLEAR_TABLES, Binder.class);
   
    em = emf.createEntityManager();
    em.getTransaction().begin();
    em.persist(new Binder(INT_VALUE, STR_VALUE, DBL_VALUE));
    em.getTransaction().commit();
  }
View Full Code Here

Examples of org.caffinitas.mapper.core.codec.Binder

                }
            }
        }

        @SuppressWarnings("ResultOfObjectAllocationIgnored") boolean isModified() {
            Binder binder = new Binder(entity.writeDataColumns, true, entity.primaryKeyColumns, PersistMode.UPDATE, true);
            entity.buildModifyBindColumns(instance, binder);

            for (int i = 0; i < columns.length; i++) {
                CqlColumn col = columns[i];
                ByteBuffer val = binder.getBound(col);
                if (val == null) {
                    continue;
                }
                val = val.duplicate();
                ByteBuffer loaded = values[i];
View Full Code Here

Examples of org.glassfish.hk2.utilities.Binder

    private Verticle createRealVerticle(Class<?> clazz) throws Exception {

        JsonObject config = container.config();
        String bootstrapName = config.getString(CONFIG_BOOTSTRAP_BINDER_NAME, BOOTSTRAP_BINDER_NAME);
        Binder bootstrap = null;

        try {
            Class bootstrapClass = cl.loadClass(bootstrapName);
            Object obj = bootstrapClass.newInstance();
View Full Code Here

Examples of org.hibernate.id.insert.Binder

      if ( isVersioned() ) {
        log.trace( "Version: " + Versioning.getVersion( fields, this ) );
      }
    }

    Binder binder = new Binder() {
      public void bindValues(PreparedStatement ps) throws SQLException {
        dehydrate( null, fields, notNull, propertyColumnInsertable, 0, ps, session );
      }
      public Object getEntity() {
        return object;
View Full Code Here

Examples of org.hibernate.id.insert.Binder

      if ( isVersioned() ) {
        log.trace( "Version: " + Versioning.getVersion( fields, this ) );
      }
    }

    Binder binder = new Binder() {
      public void bindValues(PreparedStatement ps) throws SQLException {
        dehydrate( null, fields, notNull, propertyColumnInsertable, 0, ps, session );
      }
      public Object getEntity() {
        return object;
View Full Code Here

Examples of org.hibernate.id.insert.Binder

      if ( isVersioned() ) {
        log.trace( "Version: " + Versioning.getVersion( fields, this ) );
      }
    }

    Binder binder = new Binder() {
      public void bindValues(PreparedStatement ps) throws SQLException {
        dehydrate( null, fields, notNull, propertyColumnInsertable, 0, ps, session );
      }
      public Object getEntity() {
        return object;
View Full Code Here

Examples of org.hibernate.id.insert.Binder

      if ( isVersioned() ) {
        LOG.tracev( "Version: {0}", Versioning.getVersion( fields, this ) );
      }
    }

    Binder binder = new Binder() {
      public void bindValues(PreparedStatement ps) throws SQLException {
        dehydrate( null, fields, notNull, propertyColumnInsertable, 0, ps, session, false );
      }
      public Object getEntity() {
        return object;
View Full Code Here

Examples of org.hibernate.id.insert.Binder

      if ( isVersioned() ) {
        log.trace( "Version: " + Versioning.getVersion( fields, this ) );
      }
    }

    Binder binder = new Binder() {
      public void bindValues(PreparedStatement ps) throws SQLException {
        dehydrate( null, fields, notNull, propertyColumnInsertable, 0, ps, session );
      }
      public Object getEntity() {
        return object;
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.