Last change
on this file since 3449 was
3449,
checked in by George.Georgovassilis@mpi.nl, 11 years ago
|
#360 Refactoring of transaction handling, tests and application context
|
File size:
938 bytes
|
Line | |
---|
1 | package clarin.cmdi.componentregistry.impl.database; |
---|
2 | |
---|
3 | import clarin.cmdi.componentregistry.model.ComponentDescription; |
---|
4 | |
---|
5 | import java.util.List; |
---|
6 | |
---|
7 | import org.springframework.stereotype.Repository; |
---|
8 | |
---|
9 | /** |
---|
10 | * Serves components |
---|
11 | * @author Twan Goosen <twan.goosen@mpi.nl> |
---|
12 | * @author George.Georgovassilis@mpi.nl |
---|
13 | */ |
---|
14 | @Repository |
---|
15 | public class ComponentDescriptionDao extends |
---|
16 | AbstractDescriptionDao<ComponentDescription> implements |
---|
17 | IComponentDescriptionDao { |
---|
18 | |
---|
19 | public ComponentDescriptionDao() { |
---|
20 | super(ComponentDescription.class); |
---|
21 | } |
---|
22 | |
---|
23 | @Override |
---|
24 | protected String getTableName() { |
---|
25 | return TABLE_COMPONENT_DESCRIPTION; |
---|
26 | } |
---|
27 | |
---|
28 | @Override |
---|
29 | protected String getCMDIdColumn() { |
---|
30 | return "component_id"; |
---|
31 | } |
---|
32 | |
---|
33 | @Override |
---|
34 | protected String getCommentsForeignKeyColumn() { |
---|
35 | return "component_description_id"; |
---|
36 | } |
---|
37 | |
---|
38 | public List<ComponentDescription> getPublicComponentDescriptions() { |
---|
39 | return getPublicDescriptions(); |
---|
40 | } |
---|
41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.