| Modifier and Type | Class and Description |
|---|---|
| public static class | DynamicHelper.SessionCustomizer
A SessionCustomizer which configures all descriptors as dynamic entity types. |
| Modifier and Type | Field and Description |
|---|---|
| protected Map | |
| protected DatabaseSession |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | addTypes(boolean createMissingTables, boolean generateFKConstraints, DynamicType... types)
Add one or more EntityType instances to a session and optionally generate needed tables with or without FK constraints. |
| public DynamicClassLoader | |
| public DatabaseSession | |
| public DynamicType | |
| public static DynamicType | |
| public static DynamicType | |
| public DynamicEntity | |
| public ReadAllQuery | newReadAllQuery(String typeName)
Helper method to simplify creating a native ReadAllQuery using the entity type name (descriptor alias) |
| public ReadObjectQuery | newReadObjectQuery(String typeName)
Helper method to simplify creating a native ReadObjectQuery using the entity type name (descriptor alias) |
| public ReportQuery | newReportQuery(String typeName, ExpressionBuilder builder)
Helper method to simplify creating a native ReportQuery using the entity type name (descriptor alias) |
| public void |
| fqClassnameToDescriptor | back to summary |
|---|---|
| protected Map<String, ClassDescriptor> fqClassnameToDescriptor | |
| session | back to summary |
|---|---|
| protected DatabaseSession session | |
| DynamicHelper | back to summary |
|---|---|
| public DynamicHelper(DatabaseSession session) | |
| addTypes | back to summary |
|---|---|
| public void addTypes(boolean createMissingTables, boolean generateFKConstraints, DynamicType... types) Add one or more EntityType instances to a session and optionally generate needed tables with or without FK constraints. | |
| getDynamicClassLoader | back to summary |
|---|---|
| public DynamicClassLoader getDynamicClassLoader() | |
| getSession | back to summary |
|---|---|
| public DatabaseSession getSession() | |
| getType | back to summary |
|---|---|
| public DynamicType getType(String typeName) Lookup the dynamic type for an alias. This is required to get the type for factory creation but can also be used to provide the application with access to the meta model (type and properties) allowing for dynamic use as well as optimized data value retrieval from an entity. | |
| getType | back to summary |
|---|---|
| public static DynamicType getType(ClassDescriptor descriptor) | |
| getType | back to summary |
|---|---|
| public static DynamicType getType(DynamicEntity entity) throws ClassCastException Provide access to the entity's type.
| |
| newDynamicEntity | back to summary |
|---|---|
| public DynamicEntity newDynamicEntity(String typeName) | |
| newReadAllQuery | back to summary |
|---|---|
| public ReadAllQuery newReadAllQuery(String typeName) Helper method to simplify creating a native ReadAllQuery using the entity type name (descriptor alias) | |
| newReadObjectQuery | back to summary |
|---|---|
| public ReadObjectQuery newReadObjectQuery(String typeName) Helper method to simplify creating a native ReadObjectQuery using the entity type name (descriptor alias) | |
| newReportQuery | back to summary |
|---|---|
| public ReportQuery newReportQuery(String typeName, ExpressionBuilder builder) Helper method to simplify creating a native ReportQuery using the entity type name (descriptor alias) | |
| removeType | back to summary |
|---|---|
| public void removeType(String typeName) Remove a dynamic type from the system. This implementation assumes that the dynamic type has no relationships to it and that it is not involved in an inheritance relationship. If there are concurrent processes using this type when it is removed some exceptions may occur. | |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| SessionCustomizer | back to summary |
|---|---|
| public SessionCustomizer() Default constructor. | |
| customize | back to summary |
|---|---|
| public void customize(Session session) throws Exception Implements org.
| |