Package com.axelor.meta.db.repo
Class MetaJsonModelRepository
- java.lang.Object
-
- com.axelor.db.JpaRepository<MetaJsonModel>
-
- com.axelor.meta.db.repo.AbstractMetaJsonModelRepository
-
- com.axelor.meta.db.repo.MetaJsonModelRepository
-
- All Implemented Interfaces:
Repository<MetaJsonModel>
public class MetaJsonModelRepository extends AbstractMetaJsonModelRepository
-
-
Field Summary
-
Fields inherited from class com.axelor.db.JpaRepository
modelClass
-
-
Constructor Summary
Constructors Constructor Description MetaJsonModelRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetaJsonField
findNameField(MetaJsonModel jsonModel)
void
remove(MetaJsonModel entity)
Remove the given entity.MetaJsonModel
save(MetaJsonModel entity)
Save the given entity.-
Methods inherited from class com.axelor.meta.db.repo.AbstractMetaJsonModelRepository
findByName
-
-
-
-
Method Detail
-
findNameField
public MetaJsonField findNameField(MetaJsonModel jsonModel)
-
save
public MetaJsonModel save(MetaJsonModel entity)
Description copied from interface:Repository
Save the given entity.Depending on the implementation, it may return same entity or a copy of it. For example JPA implementation may return a copy if the given entity can't be managed.
- Specified by:
save
in interfaceRepository<MetaJsonModel>
- Overrides:
save
in classJpaRepository<MetaJsonModel>
- Parameters:
entity
- the entity object to save- Returns:
- an instance of the entity with saved state
-
remove
public void remove(MetaJsonModel entity)
Description copied from interface:Repository
Remove the given entity.- Specified by:
remove
in interfaceRepository<MetaJsonModel>
- Overrides:
remove
in classJpaRepository<MetaJsonModel>
- Parameters:
entity
- the entity object
-
-