public class MpackDAO extends Object
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
MpackDAO() |
Modifier and Type | Method and Description |
---|---|
Long |
create(MpackEntity mpackEntity)
Persists a new mpack
|
List<MpackEntity> |
findAll()
Gets all mpacks stored in the database across all clusters.
|
MpackEntity |
findById(long id)
Gets an mpack with the specified ID.
|
List<MpackEntity> |
findByNameVersion(String mpackName,
String mpackVersion)
Gets mpacks with specified mpack name and mpack version.
|
void |
removeById(Long id) |
public Long create(MpackEntity mpackEntity)
public MpackEntity findById(long id)
id
- the ID of the mpack to retrieve.null
if none exists.public List<MpackEntity> findByNameVersion(String mpackName, String mpackVersion)
mpackName
- mpackVersion
- null
if none exists.public List<MpackEntity> findAll()
null
).public void removeById(Long id)
Copyright © 2022 Apache Software Foundation. All rights reserved.