org.nuiton.topia.persistence.util
Class EntityLoador<E extends TopiaEntity>

java.lang.Object
  extended by org.nuiton.topia.persistence.util.BeanPropertyLoador<E>
      extended by org.nuiton.topia.persistence.util.EntityLoador<E>
Type Parameters:
E - type of entity
All Implemented Interfaces:
Serializable, Loador<E>

Deprecated. since 2.3.0, prefer use the TopiaEntityBinder

@Deprecated
public class EntityLoador<E extends TopiaEntity>
extends BeanPropertyLoador<E>

A implementation of BeanPropertyLoador for TopiaEntity

Some factory methods are defined to simplify the generic cast, prefer used them instead of the (protected) constructor).

Author:
tchemit < chemit@codelutin.com >
See Also:
Serialized Form

Field Summary
protected  E empty
          Deprecated.  
 
Fields inherited from class org.nuiton.topia.persistence.util.BeanPropertyLoador
descriptors, klass, properties
 
Constructor Summary
protected EntityLoador(Class<E> klass, E empty, String... properties)
          Deprecated.  
 
Method Summary
 void load(E from, E dst, boolean tech, String... propertyNames)
          Deprecated. Bind an entity to another.
static
<E extends TopiaEntity>
EntityLoador<E>
newEntityLoador(Class<E> klass, E empty, String... properties)
          Deprecated.  
static
<E extends TopiaEntity>
EntityLoador<E>
newEntityLoador(Class<E> klass, String... properties)
          Deprecated.  
 
Methods inherited from class org.nuiton.topia.persistence.util.BeanPropertyLoador
checkProperties, getDescriptors, getNullValue, getProperties, isNullValue, newLoador, obtainProperties, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

empty

protected E extends TopiaEntity empty
Deprecated. 
Constructor Detail

EntityLoador

protected EntityLoador(Class<E> klass,
                       E empty,
                       String... properties)
Deprecated. 
Method Detail

newEntityLoador

public static <E extends TopiaEntity> EntityLoador<E> newEntityLoador(Class<E> klass,
                                                                      E empty,
                                                                      String... properties)
Deprecated. 

newEntityLoador

public static <E extends TopiaEntity> EntityLoador<E> newEntityLoador(Class<E> klass,
                                                                      String... properties)
Deprecated. 

load

public void load(E from,
                 E dst,
                 boolean tech,
                 String... propertyNames)
Deprecated. 
Description copied from interface: Loador
Bind an entity to another.

Specified by:
load in interface Loador<E extends TopiaEntity>
Overrides:
load in class BeanPropertyLoador<E extends TopiaEntity>
Parameters:
from - the source entity
dst - the destination entity
tech - a flag to bind or not the technical values of the entity (says TopiaId, TopiaVersion and TopiaCreateDate).
propertyNames - subset of properties to load


Copyright © 2004-2010 CodeLutin. All Rights Reserved.