Package overit.geocall.edm.model
Class DataEntityFactory
java.lang.Object
overit.geocall.edm.model.DataEntityFactory
Service class responsible for building DataEntity instances based on a specified company and data entity model.
-
Constructor Summary
ConstructorsConstructorDescriptionDataEntityFactory(AttributePropertiesFactory attributePropertiesFactory, IndexFactory indexFactory) -
Method Summary
-
Constructor Details
-
DataEntityFactory
public DataEntityFactory(AttributePropertiesFactory attributePropertiesFactory, @Lazy IndexFactory indexFactory)
-
-
Method Details
-
create
Builds a DataEntity instance for the specified company and data entity model.- Parameters:
company- The company for which the data entity is being built.entity- The data entity model defining the structure of the data entity.- Returns:
- An optional containing the built DataEntity instance, or empty if no attributes are found for the entity.
- Throws:
NullPointerException- if either the company or data entity model is null.
-