@Override protected Instantiator buildInstantiator(PersistentClass persistentClass) { if ( optimizer == null ) { return new PojoInstantiator( persistentClass, null ); } else { return new PojoInstantiator( persistentClass, optimizer.getInstantiationOptimizer() ); } }
@Override protected Instantiator buildInstantiator(EntityBinding entityBinding) { if ( optimizer == null ) { return new PojoInstantiator( entityBinding, null ); } else { return new PojoInstantiator( entityBinding, optimizer.getInstantiationOptimizer() ); } }
protected Instantiator buildInstantiator(Component component) { if ( component.isEmbedded() && ReflectHelper.isAbstractClass( component.getComponentClass() ) ) { return new ProxiedInstantiator( component ); } if ( optimizer == null ) { return new PojoInstantiator( component, null ); } else { return new PojoInstantiator( component, optimizer.getInstantiationOptimizer() ); } }
protected Instantiator buildInstantiator(PersistentClass persistentClass) { if ( optimizer == null ) { return new PojoInstantiator( persistentClass, null ); } else { return new PojoInstantiator( persistentClass, optimizer.getInstantiationOptimizer() ); } }
protected final Instantiator getInstantiator() { return instantiator; }
@Override protected Instantiator buildInstantiator(PersistentClass mappingInfo) { return new DynamicMapInstantiator( mappingInfo ); }
@Override protected Instantiator buildInstantiator(EntityBinding mappingInfo) { return new DynamicMapInstantiator( mappingInfo ); }
protected Instantiator buildInstantiator(Component component) { return new DynamicMapInstantiator(); }
@Override protected Instantiator buildInstantiator(PersistentClass mappingInfo) { return new OBInstantiator(mappingInfo); }
protected Instantiator buildInstantiator(PersistentClass mappingInfo) { return new DynamicMapInstantiator( mappingInfo ); }
protected Instantiator buildInstantiator(PersistentClass persistentClass) { return new Dom4jInstantiator( persistentClass ); }
protected Instantiator buildInstantiator(Component component) { return new Dom4jInstantiator( component ); }
protected Instantiator buildInstantiator(PersistentClass persistentClass) { return new MyEntityInstantiator( persistentClass.getEntityName() ); }
@Override protected Instantiator buildInstantiator(PersistentClass persistentClass) { return new CFCInstantiator(persistentClass); }
/** * {@inheritDoc} */ @Override protected Instantiator buildInstantiator(Component component) { return new ProxyInstantiator(component); }
/** * Build an appropriate Instantiator for the given mapped entity. * * @param mappingInfo The mapping information regarding the mapped entity. * @return An appropriate Instantiator instance. */ protected abstract Instantiator buildInstantiator(PersistentClass mappingInfo);
/** * Build an appropriate Instantiator for the given mapped entity. * * @param mappingInfo The mapping information regarding the mapped entity. * @return An appropriate Instantiator instance. */ protected abstract Instantiator buildInstantiator(EntityBinding mappingInfo);
protected abstract Instantiator buildInstantiator(Component component);