AbstractEntityFactory

public abstract class AbstractEntityFactory<E extends Entity> implements EntityFactory<E>

Abstract base for entity factories.

Inheritors

Constructors

Link copied to clipboard
protected void AbstractEntityFactory(Class<E> entityClass)

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
protected abstract Constructor<E> findConstructor()
Obtains the constructor for the entity class.
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.

Inherited functions

Link copied to clipboard
public abstract E create(Object constructionArgument)
Creates a new entity with the passed construction argument.