Package io.jmix.datatools.impl
Class EntitySqlGenerationServiceImpl
java.lang.Object
io.jmix.datatools.impl.EntitySqlGenerationServiceImpl
- All Implemented Interfaces:
EntitySqlGenerationService
@Primary
@Component("datatl_EntitySqlGenerationService")
public class EntitySqlGenerationServiceImpl
extends Object
implements EntitySqlGenerationService
-
Field Summary
Modifier and TypeFieldDescriptionprotected org.springframework.context.ApplicationContext
protected DataManager
protected FetchPlans
protected Metadata
protected MetadataTools
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected FetchPlan
createFullFetchPlan
(Class<?> entityClass) protected FetchPlanBuilder
createFullFetchPlanBuilder
(MetaClass metaClass) protected FetchPlanBuilder
createFullFetchPlanBuilder
(Class<?> entityClass, MetaClass metaClass) generateInsertScript
(Object entity) Generates an SQL-insert query for the given entity.generateSelectScript
(Object entity) Generates an SQL-select query for the given entity.generateUpdateScript
(Object entity) Generates an SQL-update query for the given entity.protected boolean
isReferenceField
(MetaProperty metaProperty) protected Object
-
Field Details
-
metadata
-
fetchPlans
-
dataManager
-
metadataTools
-
applicationContext
@Autowired protected org.springframework.context.ApplicationContext applicationContext
-
-
Constructor Details
-
EntitySqlGenerationServiceImpl
public EntitySqlGenerationServiceImpl()
-
-
Method Details
-
generateInsertScript
Description copied from interface:EntitySqlGenerationService
Generates an SQL-insert query for the given entity.- Specified by:
generateInsertScript
in interfaceEntitySqlGenerationService
-
generateUpdateScript
Description copied from interface:EntitySqlGenerationService
Generates an SQL-update query for the given entity.- Specified by:
generateUpdateScript
in interfaceEntitySqlGenerationService
-
generateSelectScript
Description copied from interface:EntitySqlGenerationService
Generates an SQL-select query for the given entity.- Specified by:
generateSelectScript
in interfaceEntitySqlGenerationService
-
reload
-
createFullFetchPlan
-
createFullFetchPlanBuilder
-
createFullFetchPlanBuilder
-
isReferenceField
-