public class ViewDAO extends Object
Constructor and Description |
---|
ViewDAO() |
Modifier and Type | Method and Description |
---|---|
void |
create(ViewEntity ViewEntity)
Make an instance managed and persistent.
|
List<ViewEntity> |
findAll()
Find all views.
|
List<ViewEntity> |
findByCommonName(String viewCommonName)
Find a view with a given common name.
|
ViewEntity |
findByName(String viewName)
Find a view with a given name.
|
ViewEntity |
merge(ViewEntity ViewEntity)
Merge the state of the given entity into the current persistence context.
|
void |
refresh(ViewEntity ViewEntity)
Refresh the state of the instance from the database,
overwriting changes made to the entity, if any.
|
void |
remove(ViewEntity ViewEntity)
Remove the entity instance.
|
public ViewEntity findByName(String viewName)
viewName
- name of view to findpublic List<ViewEntity> findByCommonName(String viewCommonName)
viewCommonName
- common name of view to findpublic List<ViewEntity> findAll()
public void refresh(ViewEntity ViewEntity)
ViewEntity
- entity to refreshpublic void create(ViewEntity ViewEntity)
ViewEntity
- entity to storepublic ViewEntity merge(ViewEntity ViewEntity)
ViewEntity
- entity to mergepublic void remove(ViewEntity ViewEntity)
ViewEntity
- entity to removeCopyright © 2022 Apache Software Foundation. All rights reserved.