-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelationalschema.ecore
64 lines (64 loc) · 4.55 KB
/
relationalschema.ecore
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
<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore" name="relationalschema" nsURI="http://www.modelum.es/relationalschema"
nsPrefix="relationalschema">
<eClassifiers xsi:type="ecore:EClass" name="NamedElement">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="name" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="RelationalSchema" eSuperTypes="#//NamedElement">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="version" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="tables" upperBound="-1"
eType="#//Table" containment="true" eOpposite="#//Table/owner"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="location" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Table" eSuperTypes="#//NamedElement">
<eStructuralFeatures xsi:type="ecore:EReference" name="columns" upperBound="-1"
eType="#//Column" containment="true" eOpposite="#//Column/owner"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="keys" lowerBound="1" upperBound="-1"
eType="#//Key" containment="true" eOpposite="#//Key/owner"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="fks" upperBound="-1" eType="#//FKey"
containment="true" eOpposite="#//FKey/owner"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="owner" eType="#//RelationalSchema"
eOpposite="#//RelationalSchema/tables"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Column" eSuperTypes="#//NamedElement">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="datatype" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="size" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"
defaultValueLiteral="0"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="nullable" lowerBound="1"
eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean" defaultValueLiteral="false"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="defaultvalue" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"
defaultValueLiteral="NULL"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="owner" lowerBound="1" eType="#//Table"
eOpposite="#//Table/columns"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="Key">
<eStructuralFeatures xsi:type="ecore:EReference" name="columns" lowerBound="1"
upperBound="-1" eType="#//Column"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="constraintname" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="owner" lowerBound="1" eType="#//Table"
eOpposite="#//Table/keys"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="isPK" lowerBound="1" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
defaultValueLiteral="true"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EClass" name="FKey">
<eStructuralFeatures xsi:type="ecore:EReference" name="columns" lowerBound="1"
upperBound="-1" eType="#//Column"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="refsTo" lowerBound="1"
eType="#//Key"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="onDelete" ordered="false"
lowerBound="1" eType="#//ReferentialAction" defaultValueLiteral="NO_ACTION"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="onUpdate" ordered="false"
lowerBound="1" eType="#//ReferentialAction" defaultValueLiteral="CASCADE"/>
<eStructuralFeatures xsi:type="ecore:EAttribute" name="constraintname" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
<eStructuralFeatures xsi:type="ecore:EReference" name="owner" lowerBound="1" eType="#//Table"
eOpposite="#//Table/fks"/>
</eClassifiers>
<eClassifiers xsi:type="ecore:EEnum" name="ReferentialAction">
<eLiterals name="NO_ACTION"/>
<eLiterals name="CASCADE" value="1"/>
<eLiterals name="SET_NULL" value="2"/>
<eLiterals name="SET_DEFAULT" value="3"/>
</eClassifiers>
</ecore:EPackage>