Package io.jmix.datatools
Class EntitySqlGenerator
java.lang.Object
io.jmix.datatools.EntitySqlGenerator
@Component("datatl_EntitySqlGenerator")
@Scope("prototype")
public class EntitySqlGenerator
extends Object
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static class
protected class
-
Field Summary
Modifier and TypeFieldDescriptionprotected Class<?>
protected SimpleDateFormat
protected SimpleDateFormat
protected DbmsSpecifics
protected String
static final String
protected String
protected MetaClass
protected Metadata
protected String
protected List<EntitySqlGenerator.Table>
protected SimpleDateFormat
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
collectTableMetadata
(MetaClass metaClass, EntitySqlGenerator.Table table) convertFieldNames
(String tableAlias, EntitySqlGenerator.FieldEntry fieldEntry) protected String
convertList
(List<String> strings) protected String
convertValue
(Object entity, String fieldName, Object value) convertWhere
(String tableAlias, EntitySqlGenerator.FieldEntry fieldEntry, Object entity) generateInsertScript
(Object entity) generateSelectScript
(Object entity) generateUpdateScript
(Object entity) void
init()
-
Field Details
-
ID
- See Also:
-
dateTimeFormat
-
dateFormat
-
timeFormat
-
insertTemplate
-
updateTemplate
-
selectTemplate
-
clazz
-
metaClass
-
tables
-
discriminatorValue
-
metadata
-
dbmsSpecifics
-
-
Constructor Details
-
EntitySqlGenerator
-
-
Method Details
-
init
@PostConstruct public void init() -
generateInsertScript
-
generateUpdateScript
-
generateSelectScript
-
convertFieldNames
protected List<String> convertFieldNames(String tableAlias, EntitySqlGenerator.FieldEntry fieldEntry) -
convertWhere
protected List<String> convertWhere(String tableAlias, EntitySqlGenerator.FieldEntry fieldEntry, Object entity) -
convertValue
-
convertList
-
collectTableMetadata
-