public class ViewInstanceDAO extends Object
Constructor and Description |
---|
ViewInstanceDAO() |
Modifier and Type | Method and Description |
---|---|
void |
create(ViewInstanceEntity viewInstanceEntity)
Make an instance managed and persistent.
|
List<ViewInstanceEntity> |
findAll()
Find all view instances.
|
ViewInstanceEntity |
findByName(String viewName,
String instanceName)
Find a view with the given names.
|
ViewInstanceEntity |
findByResourceId(long resourceId)
Find a view instance by given resource id.
|
ResourceEntity |
findResourceForViewInstance(String viewName,
String instanceName)
Gets the associated
ResourceEntity for a given instance. |
ViewInstanceEntity |
merge(ViewInstanceEntity viewInstanceEntity)
Merge the state of the given entity into the current persistence context.
|
ViewInstanceDataEntity |
mergeData(ViewInstanceDataEntity viewInstanceDataEntity)
Merge the state of the given entity data into the current persistence context.
|
void |
refresh(ViewInstanceEntity viewInstanceEntity)
Refresh the state of the instance from the database,
overwriting changes made to the entity, if any.
|
void |
remove(ViewInstanceEntity viewInstanceEntity)
Remove the entity instance.
|
void |
removeData(ViewInstanceDataEntity viewInstanceDataEntity)
Remove the entity instance data.
|
public ViewInstanceEntity findByName(String viewName, String instanceName)
viewName
- name of viewinstanceName
- name of the instancepublic ViewInstanceEntity findByResourceId(long resourceId)
resourceId
- resource idpublic List<ViewInstanceEntity> findAll()
public ResourceEntity findResourceForViewInstance(String viewName, String instanceName)
ResourceEntity
for a given instance.viewName
- the name of the viewinstanceName
- the name of the view instancenull
.public void refresh(ViewInstanceEntity viewInstanceEntity)
viewInstanceEntity
- entity to refreshpublic void create(ViewInstanceEntity viewInstanceEntity)
viewInstanceEntity
- entity to persistpublic ViewInstanceEntity merge(ViewInstanceEntity viewInstanceEntity)
viewInstanceEntity
- entity to mergepublic void remove(ViewInstanceEntity viewInstanceEntity)
viewInstanceEntity
- entity to removepublic ViewInstanceDataEntity mergeData(ViewInstanceDataEntity viewInstanceDataEntity)
viewInstanceDataEntity
- entity to mergepublic void removeData(ViewInstanceDataEntity viewInstanceDataEntity)
viewInstanceDataEntity
- entity to removeCopyright © 2022 Apache Software Foundation. All rights reserved.