public class ArtifactDAO extends Object
Constructor and Description |
---|
ArtifactDAO() |
Modifier and Type | Method and Description |
---|---|
void |
create(ArtifactEntity entity)
Make an instance managed and persistent.
|
List<ArtifactEntity> |
findByForeignKeys(TreeMap<String,String> foreignKeys)
Find all artifacts for the specified foreign keys.
|
List<ArtifactEntity> |
findByName(String artifactName)
Find all artifacts for the specified artifact name.
|
ArtifactEntity |
findByNameAndForeignKeys(String artifactName,
TreeMap<String,String> foreignKeys)
Find an artifact with the given name and foreign keys.
|
ArtifactEntity |
merge(ArtifactEntity artifactEntity)
Merge the state of the given entity into the current persistence context.
|
void |
refresh(ArtifactEntity entity)
Refresh the state of the instance from the database,
overwriting changes made to the entity, if any.
|
void |
remove(ArtifactEntity artifactEntity)
Remove the entity instance.
|
public ArtifactEntity findByNameAndForeignKeys(String artifactName, TreeMap<String,String> foreignKeys)
artifactName
- name of artifact to findforeignKeys
- foreign keys of artifact as json representation of
a map of key properties to valuespublic List<ArtifactEntity> findByForeignKeys(TreeMap<String,String> foreignKeys)
foreignKeys
- foreign keys of artifact as json representation of
a map of key properties to valuespublic List<ArtifactEntity> findByName(String artifactName)
artifactName
- name of artifact to findpublic void refresh(ArtifactEntity entity)
entity
- entity to refreshpublic void create(ArtifactEntity entity)
entity
- entity to persistpublic ArtifactEntity merge(ArtifactEntity artifactEntity)
artifactEntity
- entity to mergepublic void remove(ArtifactEntity artifactEntity)
artifactEntity
- entity to removeCopyright © 2022 Apache Software Foundation. All rights reserved.