genericsql
NamedElement
name
comment
Type
int
int
bigInt
bigInt
boolean
boolean
byteArray
byteArray
date
date
double
double
varchar
varchar
undefined
undefined
DataBase
tables
Table
primaryKey
foreignKeys
fields
constraints
database
PrimaryKey
primaryFields
table
ForeignKey
foreignFields
table
refersTo
Field
notNull
unique
type
autoIcrement
false
table
size
defaultValue
specificType
Check
expression
Unique
Constraint
constrainedFields
<?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="genericsql" nsURI="http://genericsql/1.0" nsPrefix="genericsql">
  <eClassifiers xsi:type="ecore:EClass" name="NamedElement" abstract="true">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="name" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="comment" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EEnum" name="Type">
    <eLiterals name="int"/>
    <eLiterals name="bigInt" value="1"/>
    <eLiterals name="boolean" value="2"/>
    <eLiterals name="byteArray" value="3"/>
    <eLiterals name="date" value="4"/>
    <eLiterals name="double" value="5"/>
    <eLiterals name="varchar" value="6"/>
    <eLiterals name="undefined" value="7"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="DataBase" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="tables" lowerBound="1"
        upperBound="-1" eType="#//Table" containment="true" eOpposite="#//Table/database"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Table" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="primaryKey" eType="#//PrimaryKey"
        containment="true" eOpposite="#//PrimaryKey/table"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="foreignKeys" upperBound="-1"
        eType="#//ForeignKey" containment="true" eOpposite="#//ForeignKey/table"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="fields" lowerBound="1"
        upperBound="-1" eType="#//Field" containment="true" eOpposite="#//Field/table"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="constraints" upperBound="-1"
        eType="#//Constraint" containment="true"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="database" lowerBound="1"
        eType="#//DataBase" eOpposite="#//DataBase/tables"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="PrimaryKey" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="primaryFields" lowerBound="1"
        upperBound="-1" eType="#//Field"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="table" eType="#//Table"
        eOpposite="#//Table/primaryKey"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="ForeignKey" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EReference" name="foreignFields" upperBound="-1"
        eType="#//Field"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="table" eType="#//Table"
        eOpposite="#//Table/foreignKeys"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="refersTo" lowerBound="1"
        eType="#//PrimaryKey"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Field" eSuperTypes="#//NamedElement">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="notNull" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="unique" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="type" eType="#//Type"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="autoIcrement" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EBoolean"
        defaultValueLiteral="false"/>
    <eStructuralFeatures xsi:type="ecore:EReference" name="table" lowerBound="1" eType="#//Table"
        eOpposite="#//Table/fields"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="size" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EInt"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="defaultValue" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="specificType" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Check" eSuperTypes="#//Constraint">
    <eStructuralFeatures xsi:type="ecore:EAttribute" name="expression" eType="ecore:EDataType http://www.eclipse.org/emf/2002/Ecore#//EString"/>
  </eClassifiers>
  <eClassifiers xsi:type="ecore:EClass" name="Unique" eSuperTypes="#//Constraint"/>
  <eClassifiers xsi:type="ecore:EClass" name="Constraint" abstract="true">
    <eStructuralFeatures xsi:type="ecore:EReference" name="constrainedFields" lowerBound="1"
        upperBound="-1" eType="#//Field"/>
  </eClassifiers>
</ecore:EPackage>

{"directed":true,"nodes":[{"nsPrefix":"genericsql","nsURI":"http://genericsql/1.0","name":"genericsql","id":0,"eClass":"EPackage"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"NamedElement","instanceClass":null,"abstract":true,"id":1,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"instanceClassName":null,"name":"Type","instanceClass":null,"id":2,"serializable":true,"eClass":"EEnum"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"DataBase","instanceClass":null,"abstract":false,"id":3,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Table","instanceClass":null,"abstract":false,"id":4,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"PrimaryKey","instanceClass":null,"abstract":false,"id":5,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"ForeignKey","instanceClass":null,"abstract":false,"id":6,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Field","instanceClass":null,"abstract":false,"id":7,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Check","instanceClass":null,"abstract":false,"id":8,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Unique","instanceClass":null,"abstract":false,"id":9,"interface":false,"eClass":"EClass"},{"instanceTypeName":null,"defaultValue":null,"instanceClassName":null,"name":"Constraint","instanceClass":null,"abstract":true,"id":10,"interface":false,"eClass":"EClass"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"name","changeable":true,"lowerBound":0,"iD":false,"id":11,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"comment","changeable":true,"lowerBound":0,"iD":false,"id":12,"derived":false},{"id":13,"eClass":"EGenericType"},{"id":14,"eClass":"EGenericType"},{"name":"int","id":15,"value":0,"literal":"int","eClass":"EEnumLiteral"},{"name":"bigInt","id":16,"value":1,"literal":"bigInt","eClass":"EEnumLiteral"},{"name":"boolean","id":17,"value":2,"literal":"boolean","eClass":"EEnumLiteral"},{"name":"byteArray","id":18,"value":3,"literal":"byteArray","eClass":"EEnumLiteral"},{"name":"date","id":19,"value":4,"literal":"date","eClass":"EEnumLiteral"},{"name":"double","id":20,"value":5,"literal":"double","eClass":"EEnumLiteral"},{"name":"varchar","id":21,"value":6,"literal":"varchar","eClass":"EEnumLiteral"},{"name":"undefined","id":22,"value":7,"literal":"undefined","eClass":"EEnumLiteral"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"tables","changeable":true,"resolveProxies":true,"lowerBound":1,"id":23,"derived":false},{"id":24,"eClass":"EGenericType"},{"id":25,"eClass":"EGenericType"},{"container":true,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"database","changeable":true,"resolveProxies":true,"lowerBound":1,"id":26,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"primaryKey","changeable":true,"resolveProxies":true,"lowerBound":0,"id":27,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"foreignKeys","changeable":true,"resolveProxies":true,"lowerBound":0,"id":28,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"fields","changeable":true,"resolveProxies":true,"lowerBound":1,"id":29,"derived":false},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":true,"unsettable":false,"transient":false,"unique":true,"name":"constraints","changeable":true,"resolveProxies":true,"lowerBound":0,"id":30,"derived":false},{"id":31,"eClass":"EGenericType"},{"id":32,"eClass":"EGenericType"},{"container":true,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"table","changeable":true,"resolveProxies":true,"lowerBound":0,"id":33,"derived":false},{"id":34,"eClass":"EGenericType"},{"container":true,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"table","changeable":true,"resolveProxies":true,"lowerBound":0,"id":35,"derived":false},{"id":36,"eClass":"EGenericType"},{"container":true,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"table","changeable":true,"resolveProxies":true,"lowerBound":1,"id":37,"derived":false},{"id":38,"eClass":"EGenericType"},{"id":39,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"primaryFields","changeable":true,"resolveProxies":true,"lowerBound":1,"id":40,"derived":false},{"id":41,"eClass":"EGenericType"},{"id":42,"eClass":"EGenericType"},{"id":43,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":false,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"foreignFields","changeable":true,"resolveProxies":true,"lowerBound":0,"id":44,"derived":false},{"container":false,"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"refersTo","changeable":true,"resolveProxies":true,"lowerBound":1,"id":45,"derived":false},{"id":46,"eClass":"EGenericType"},{"id":47,"eClass":"EGenericType"},{"id":48,"eClass":"EGenericType"},{"id":49,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":false,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"notNull","changeable":true,"lowerBound":0,"iD":false,"id":50,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":false,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"unique","changeable":true,"lowerBound":0,"iD":false,"id":51,"derived":false},{"ordered":true,"upperBound":1,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"type","changeable":true,"lowerBound":0,"iD":false,"id":52,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":false,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":"false","unsettable":false,"transient":false,"unique":true,"name":"autoIcrement","changeable":true,"lowerBound":0,"iD":false,"id":53,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":0,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"size","changeable":true,"lowerBound":0,"iD":false,"id":54,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"defaultValue","changeable":true,"lowerBound":0,"iD":false,"id":55,"derived":false},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"specificType","changeable":true,"lowerBound":0,"iD":false,"id":56,"derived":false},{"id":57,"eClass":"EGenericType"},{"id":58,"eClass":"EGenericType"},{"id":59,"eClass":"EGenericType"},{"id":60,"eClass":"EGenericType"},{"id":61,"eClass":"EGenericType"},{"id":62,"eClass":"EGenericType"},{"id":63,"eClass":"EGenericType"},{"id":64,"eClass":"EGenericType"},{"id":65,"eClass":"EGenericType"},{"ordered":true,"upperBound":1,"defaultValue":null,"volatile":false,"many":false,"required":false,"eClass":"EAttribute","defaultValueLiteral":null,"unsettable":false,"transient":false,"unique":true,"name":"expression","changeable":true,"lowerBound":0,"iD":false,"id":66,"derived":false},{"id":67,"eClass":"EGenericType"},{"id":68,"eClass":"EGenericType"},{"id":69,"eClass":"EGenericType"},{"container":false,"ordered":true,"upperBound":-1,"defaultValue":null,"volatile":false,"many":true,"required":true,"eClass":"EReference","defaultValueLiteral":null,"containment":false,"unsettable":false,"transient":false,"unique":true,"name":"constrainedFields","changeable":true,"resolveProxies":true,"lowerBound":1,"id":70,"derived":false},{"id":71,"eClass":"EGenericType"}],"links":[{"source":0,"target":1},{"source":0,"target":2},{"source":0,"target":3},{"source":0,"target":4},{"source":0,"target":5},{"source":0,"target":6},{"source":0,"target":7},{"source":0,"target":8},{"source":0,"target":9},{"source":0,"target":10},{"source":1,"target":0},{"source":1,"target":11},{"source":1,"target":12},{"source":11,"target":13},{"source":11,"target":1},{"source":12,"target":14},{"source":12,"target":1},{"source":2,"target":0},{"source":2,"target":15},{"source":2,"target":16},{"source":2,"target":17},{"source":2,"target":18},{"source":2,"target":19},{"source":2,"target":20},{"source":2,"target":21},{"source":2,"target":22},{"source":15,"target":2},{"source":16,"target":2},{"source":17,"target":2},{"source":18,"target":2},{"source":19,"target":2},{"source":20,"target":2},{"source":21,"target":2},{"source":22,"target":2},{"source":3,"target":0},{"source":3,"target":1},{"source":3,"target":23},{"source":3,"target":24},{"source":23,"target":4},{"source":23,"target":25},{"source":23,"target":3},{"source":23,"target":26},{"source":25,"target":4},{"source":24,"target":1},{"source":4,"target":0},{"source":4,"target":1},{"source":4,"target":27},{"source":4,"target":28},{"source":4,"target":29},{"source":4,"target":30},{"source":4,"target":26},{"source":4,"target":31},{"source":27,"target":5},{"source":27,"target":32},{"source":27,"target":4},{"source":27,"target":33},{"source":32,"target":5},{"source":28,"target":6},{"source":28,"target":34},{"source":28,"target":4},{"source":28,"target":35},{"source":34,"target":6},{"source":29,"target":7},{"source":29,"target":36},{"source":29,"target":4},{"source":29,"target":37},{"source":36,"target":7},{"source":30,"target":10},{"source":30,"target":38},{"source":30,"target":4},{"source":38,"target":10},{"source":26,"target":3},{"source":26,"target":39},{"source":26,"target":4},{"source":26,"target":23},{"source":39,"target":3},{"source":31,"target":1},{"source":5,"target":0},{"source":5,"target":1},{"source":5,"target":40},{"source":5,"target":33},{"source":5,"target":41},{"source":40,"target":7},{"source":40,"target":42},{"source":40,"target":5},{"source":42,"target":7},{"source":33,"target":4},{"source":33,"target":43},{"source":33,"target":5},{"source":33,"target":27},{"source":43,"target":4},{"source":41,"target":1},{"source":6,"target":0},{"source":6,"target":1},{"source":6,"target":44},{"source":6,"target":35},{"source":6,"target":45},{"source":6,"target":46},{"source":44,"target":7},{"source":44,"target":47},{"source":44,"target":6},{"source":47,"target":7},{"source":35,"target":4},{"source":35,"target":48},{"source":35,"target":6},{"source":35,"target":28},{"source":48,"target":4},{"source":45,"target":5},{"source":45,"target":49},{"source":45,"target":6},{"source":49,"target":5},{"source":46,"target":1},{"source":7,"target":0},{"source":7,"target":1},{"source":7,"target":50},{"source":7,"target":51},{"source":7,"target":52},{"source":7,"target":53},{"source":7,"target":37},{"source":7,"target":54},{"source":7,"target":55},{"source":7,"target":56},{"source":7,"target":57},{"source":50,"target":58},{"source":50,"target":7},{"source":51,"target":59},{"source":51,"target":7},{"source":52,"target":2},{"source":52,"target":60},{"source":52,"target":7},{"source":60,"target":2},{"source":53,"target":61},{"source":53,"target":7},{"source":37,"target":4},{"source":37,"target":62},{"source":37,"target":7},{"source":37,"target":29},{"source":62,"target":4},{"source":54,"target":63},{"source":54,"target":7},{"source":55,"target":64},{"source":55,"target":7},{"source":56,"target":65},{"source":56,"target":7},{"source":57,"target":1},{"source":8,"target":0},{"source":8,"target":10},{"source":8,"target":66},{"source":8,"target":67},{"source":66,"target":68},{"source":66,"target":8},{"source":67,"target":10},{"source":9,"target":0},{"source":9,"target":10},{"source":9,"target":69},{"source":69,"target":10},{"source":10,"target":0},{"source":10,"target":70},{"source":70,"target":7},{"source":70,"target":71},{"source":70,"target":10},{"source":71,"target":7}],"multigraph":true}