DefaultEntityFactory

public final class DefaultEntityFactory<E extends Entity> extends AbstractEntityFactory<E>

Default implementation of entity factory which creates entities by invoking constructor which accepts entity ID.

Constructors

Link copied to clipboard
public void DefaultEntityFactory(Class<E> entityClass)
Creates new instance.

Functions

Link copied to clipboard
public E create(Object id)
Creates a new entity with the passed construction argument.
Link copied to clipboard
Obtains the constructor for the entity class.

Inherited functions

Link copied to clipboard
public final Constructor<E> constructor()
Obtains the constructor used by the factory.
Link copied to clipboard
protected final Class<E> entityClass()
Obtains the class of entities created by the factory.
Link copied to clipboard
public boolean equals(Object obj)
Link copied to clipboard
public int hashCode()
Link copied to clipboard
protected final Class<? extends Object> idClass()
Obtains the class of identifiers of entities that this factory creates.