Package de.xima.fc.gui.model.form_theme
Class FormThemeFileViewPersistenceAdapter
- java.lang.Object
-
- de.xima.fc.logic.filesystem.FileEntityViewPersistenceAdapter<FormThemeFileView,ClientFormThemeFile,ClientFormThemeFileData,EntryScope<Long,FormThemeFileEntry>>
-
- de.xima.fc.gui.model.form_theme.FormThemeFileViewPersistenceAdapter
-
- All Implemented Interfaces:
ICrudPersistenceAdapter<IEntityContext,FormThemeFileView>
,IFileDataPersistenceAdapter<IEntityContext,FormThemeFileView>
,IScopedEntityPersistenceAdapter<IEntityContext,FormThemeFileView,EntryScope<Long,FormThemeFileEntry>>
,IEntityFileSystemPersistenceAdapter<IEntityContext,FormThemeFileView,EntryScope<Long,FormThemeFileEntry>>
,Serializable
public final class FormThemeFileViewPersistenceAdapter extends FileEntityViewPersistenceAdapter<FormThemeFileView,ClientFormThemeFile,ClientFormThemeFileData,EntryScope<Long,FormThemeFileEntry>>
- Since:
- 8.3.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static FormThemeFileViewPersistenceAdapter
INSTANCE
Immutable instance of this adapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addSelectCriteria(de.xima.cmn.criteria.AttributeSelectCriteriaManager acm)
Adds additional select criteria for extra attributes needed to construct the view.protected void
addUpdateCriteria(IEntityContext ec, de.xima.cmn.criteria.UpdateCriteriaManager ucm, FormThemeFileView view)
Adds additional update criteria for extra attributes that need to be updated when updating the entity.protected de.xima.cmn.criteria.FilterCriterion
createContextualFilter(EntryScope<Long,FormThemeFileEntry> scope)
Creates the filter to limit the database query to the given context.protected void
fillEmptyEntity(IEntityContext ec, ClientFormThemeFile entity, FormThemeFileView view)
protected void
hydrateView(FormThemeFileView view, javax.persistence.Tuple tuple)
Hydrates the view with additional attributes from the loaded tuple.protected ClientFormThemeFile
newEntity()
Creates a new empty instance of the entity.protected FormThemeFileView
newView()
Creates a new empty instance of the view.-
Methods inherited from class de.xima.fc.logic.filesystem.FileEntityViewPersistenceAdapter
create, delete, ignoreLockingVersion, list, openForRead, openForWrite, read, update
-
-
-
-
Field Detail
-
INSTANCE
public static final FormThemeFileViewPersistenceAdapter INSTANCE
Immutable instance of this adapter.
-
-
Method Detail
-
addSelectCriteria
protected void addSelectCriteria(de.xima.cmn.criteria.AttributeSelectCriteriaManager acm)
Description copied from class:FileEntityViewPersistenceAdapter
Adds additional select criteria for extra attributes needed to construct the view. The default implementation does not add any additional criteria.- Overrides:
addSelectCriteria
in classFileEntityViewPersistenceAdapter<FormThemeFileView,ClientFormThemeFile,ClientFormThemeFileData,EntryScope<Long,FormThemeFileEntry>>
- Parameters:
acm
- The attribute select criteria manager to which to add the criteria.
-
addUpdateCriteria
protected void addUpdateCriteria(IEntityContext ec, de.xima.cmn.criteria.UpdateCriteriaManager ucm, FormThemeFileView view)
Description copied from class:FileEntityViewPersistenceAdapter
Adds additional update criteria for extra attributes that need to be updated when updating the entity. The default implementation does not add any additional criteria.- Overrides:
addUpdateCriteria
in classFileEntityViewPersistenceAdapter<FormThemeFileView,ClientFormThemeFile,ClientFormThemeFileData,EntryScope<Long,FormThemeFileEntry>>
ucm
- The update criteria manager to which to add the criteria.view
- The view from which to take the values.
-
createContextualFilter
protected de.xima.cmn.criteria.FilterCriterion createContextualFilter(EntryScope<Long,FormThemeFileEntry> scope)
Description copied from class:FileEntityViewPersistenceAdapter
Creates the filter to limit the database query to the given context.- Specified by:
createContextualFilter
in classFileEntityViewPersistenceAdapter<FormThemeFileView,ClientFormThemeFile,ClientFormThemeFileData,EntryScope<Long,FormThemeFileEntry>>
- Parameters:
scope
- The context to which to limit the query.- Returns:
- The contextual filter.
-
fillEmptyEntity
protected void fillEmptyEntity(IEntityContext ec, ClientFormThemeFile entity, FormThemeFileView view)
-
hydrateView
protected void hydrateView(FormThemeFileView view, javax.persistence.Tuple tuple)
Description copied from class:FileEntityViewPersistenceAdapter
Hydrates the view with additional attributes from the loaded tuple. Should be compatible withaddSelectCriteria
. The default implementation does not hydrate any additional attributes.- Overrides:
hydrateView
in classFileEntityViewPersistenceAdapter<FormThemeFileView,ClientFormThemeFile,ClientFormThemeFileData,EntryScope<Long,FormThemeFileEntry>>
- Parameters:
view
- The view to hydrate.tuple
- The tuple from which to take the values.
-
newEntity
protected ClientFormThemeFile newEntity()
Description copied from class:FileEntityViewPersistenceAdapter
Creates a new empty instance of the entity. The default implementation uses reflection to create a new instance via the default constructor. You may override this method if the class does not have a default constructor or to provide a more efficient way to create a new instance.- Overrides:
newEntity
in classFileEntityViewPersistenceAdapter<FormThemeFileView,ClientFormThemeFile,ClientFormThemeFileData,EntryScope<Long,FormThemeFileEntry>>
- Returns:
- A new instance of the entity.
-
newView
protected FormThemeFileView newView()
Description copied from class:FileEntityViewPersistenceAdapter
Creates a new empty instance of the view. The default implementation uses reflection to create a new instance via the default constructor. You may override this method if the class does not have a default constructor or to provide a more efficient way to create a new instance.- Overrides:
newView
in classFileEntityViewPersistenceAdapter<FormThemeFileView,ClientFormThemeFile,ClientFormThemeFileData,EntryScope<Long,FormThemeFileEntry>>
- Returns:
- A new instance of the view.
-
-