-
Notifications
You must be signed in to change notification settings - Fork 128
/
JPAEntityModel.java
118 lines (95 loc) · 2.94 KB
/
JPAEntityModel.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
package org.jboss.windup.rules.apps.javaee.model;
import org.jboss.windup.graph.model.WindupVertexFrame;
import org.jboss.windup.rules.apps.java.model.JavaClassModel;
import com.tinkerpop.blueprints.Direction;
import com.tinkerpop.frames.Adjacency;
import com.tinkerpop.frames.Property;
import com.tinkerpop.frames.modules.typedgraph.TypeValue;
/**
* Contains metadata associated with a JPA Entity
*
* @author <a href="mailto:bradsdavis@gmail.com">Brad Davis</a>
*
*/
@TypeValue(JPAEntityModel.TYPE)
public interface JPAEntityModel extends WindupVertexFrame
{
public static final String ENTITY_NAME = "entityName";
public static final String CATALOG_NAME = "catalogName";
public static final String SCHEMA_NAME = "schemaName";
public static final String TABLE_NAME = "tableName";
public static final String NAMED_QUERY = "namedQuery";
public static final String JPA_ENTITY_CLASS = "jpaEntityClass";
public static final String SPECIFICATION_VERSION = "specificationVersion";
public static final String TYPE = "JPAEntityModel";
/**
* Contains the entity name
*/
@Property(ENTITY_NAME)
public String getEntityName();
/**
* Contains the entity name
*/
@Property(ENTITY_NAME)
public void setEntityName(String entityName);
/**
* Contains the specification version
*/
@Property(SPECIFICATION_VERSION)
public String getSpecificationVersion();
/**
* Contains the specification version
*/
@Property(SPECIFICATION_VERSION)
public void setSpecificationVersion(String version);
/**
* Contains the table name
*/
@Property(TABLE_NAME)
public String getTableName();
/**
* Contains the table name
*/
@Property(TABLE_NAME)
public void setTableName(String tableName);
/**
* Contains the schema name
*/
@Property(SCHEMA_NAME)
public String getSchemaName();
/**
* Contains the schema name
*/
@Property(SCHEMA_NAME)
public void setSchemaName(String schemaName);
/**
* Contains the catalog name
*/
@Property(CATALOG_NAME)
public String getCatalogName();
/**
* Contains the catalog name
*/
@Property(CATALOG_NAME)
public void setCatalogName(String catalogName);
/**
* Contains the entity class
*/
@Adjacency(label = JPA_ENTITY_CLASS, direction = Direction.OUT)
public void setJavaClass(JavaClassModel ejbHome);
/**
* Contains the entity class
*/
@Adjacency(label = JPA_ENTITY_CLASS, direction = Direction.OUT)
public JavaClassModel getJavaClass();
/**
* Contains the jpa named query
*/
@Adjacency(label = NAMED_QUERY, direction = Direction.OUT)
public void addNamedQuery(JPANamedQueryModel model);
/**
* Contains the jpa named query
*/
@Adjacency(label = NAMED_QUERY, direction = Direction.OUT)
Iterable<JPANamedQueryModel> getNamedQueries();
}