Class DataEntityFactory

java.lang.Object
overit.geocall.edm.model.DataEntityFactory

@Service public class DataEntityFactory extends Object
Service class responsible for building DataEntity instances based on a specified company and data entity model.
  • Constructor Details

  • Method Details

    • create

      public DataEntity create(@NotNull @NotNull Company company, @NotNull @NotNull Entity entity)
      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.