id
int32
0
12.9k
code
sequence
200
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "public", "interface", "ColumnUsage", "extends", "PojoUsage", "{", "MetaStatement", "getStatement", "(", ")", ";", "void", "setStatement", "(", "MetaStatement", "value", ")", ";", "}", "</s>" ]
201
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "MappingColumn", "extends", "EObject", "{", "String", "getName", "(", ")", ";", "void", "setName", "(", "String", "value", ")", ";", "EList", "<", "String", ">", "getVals", "(", ")", ";", "}", "</s>" ]
202
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "TableDefinition", "extends", "EObject", "{", "String", "getName", "(", ")", ";", "void", "setName", "(", "String", "value", ")", ";", "String", "getTable", "(", ")", ";", "void", "setTable", "(", "String", "value", ")", ";", "}", "</s>" ]
203
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "DatabaseColumn", "extends", "EObject", "{", "String", "getName", "(", ")", ";", "void", "setName", "(", "String", "value", ")", ";", "}", "</s>" ]
204
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "public", "interface", "MappingUsage", "extends", "PojoUsage", "{", "MappingRule", "getStatement", "(", ")", ";", "void", "setStatement", "(", "MappingRule", "value", ")", ";", "}", "</s>" ]
205
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "util", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EPackage", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "Switch", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "*", ";", "public", "class", "ProcessorDslSwitch", "<", "T", ">", "extends", "Switch", "<", "T", ">", "{", "protected", "static", "ProcessorDslPackage", "modelPackage", ";", "public", "ProcessorDslSwitch", "(", ")", "{", "if", "(", "modelPackage", "==", "null", ")", "{", "modelPackage", "=", "ProcessorDslPackage", ".", "eINSTANCE", ";", "}", "}", "@", "Override", "protected", "boolean", "isSwitchFor", "(", "EPackage", "ePackage", ")", "{", "return", "ePackage", "==", "modelPackage", ";", "}", "@", "Override", "protected", "T", "doSwitch", "(", "int", "classifierID", ",", "EObject", "theEObject", ")", "{", "switch", "(", "classifierID", ")", "{", "case", "ProcessorDslPackage", ".", "ARTIFACTS", ":", "{", "Artifacts", "artifacts", "=", "(", "Artifacts", ")", "theEObject", ";", "T", "result", "=", "caseArtifacts", "(", "artifacts", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "PROPERTY", ":", "{", "Property", "property", "=", "(", "Property", ")", "theEObject", ";", "T", "result", "=", "caseProperty", "(", "property", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "POJO_DEFINITION", ":", "{", "PojoDefinition", "pojoDefinition", "=", "(", "PojoDefinition", ")", "theEObject", ";", "T", "result", "=", "casePojoDefinition", "(", "pojoDefinition", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "POJO_USAGE", ":", "{", "PojoUsage", "pojoUsage", "=", "(", "PojoUsage", ")", "theEObject", ";", "T", "result", "=", "casePojoUsage", "(", "pojoUsage", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "COLUMN_USAGE", ":", "{", "ColumnUsage", "columnUsage", "=", "(", "ColumnUsage", ")", "theEObject", ";", "T", "result", "=", "caseColumnUsage", "(", "columnUsage", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "casePojoUsage", "(", "columnUsage", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "IDENTIFIER_USAGE", ":", "{", "IdentifierUsage", "identifierUsage", "=", "(", "IdentifierUsage", ")", "theEObject", ";", "T", "result", "=", "caseIdentifierUsage", "(", "identifierUsage", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "casePojoUsage", "(", "identifierUsage", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "CONSTANT_USAGE", ":", "{", "ConstantUsage", "constantUsage", "=", "(", "ConstantUsage", ")", "theEObject", ";", "T", "result", "=", "caseConstantUsage", "(", "constantUsage", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "casePojoUsage", "(", "constantUsage", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "MAPPING_USAGE", ":", "{", "MappingUsage", "mappingUsage", "=", "(", "MappingUsage", ")", "theEObject", ";", "T", "result", "=", "caseMappingUsage", "(", "mappingUsage", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "casePojoUsage", "(", "mappingUsage", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "TABLE_DEFINITION", ":", "{", "TableDefinition", "tableDefinition", "=", "(", "TableDefinition", ")", "theEObject", ";", "T", "result", "=", "caseTableDefinition", "(", "tableDefinition", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "TABLE_USAGE", ":", "{", "TableUsage", "tableUsage", "=", "(", "TableUsage", ")", "theEObject", ";", "T", "result", "=", "caseTableUsage", "(", "tableUsage", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "META_STATEMENT", ":", "{", "MetaStatement", "metaStatement", "=", "(", "MetaStatement", ")", "theEObject", ";", "T", "result", "=", "caseMetaStatement", "(", "metaStatement", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "SQL", ":", "{", "Sql", "sql", "=", "(", "Sql", ")", "theEObject", ";", "T", "result", "=", "caseSql", "(", "sql", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT", ":", "{", "SqlFragment", "sqlFragment", "=", "(", "SqlFragment", ")", "theEObject", ";", "T", "result", "=", "caseSqlFragment", "(", "sqlFragment", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "META_SQL", ":", "{", "MetaSql", "metaSql", "=", "(", "MetaSql", ")", "theEObject", ";", "T", "result", "=", "caseMetaSql", "(", "metaSql", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "IF_SQL", ":", "{", "IfSql", "ifSql", "=", "(", "IfSql", ")", "theEObject", ";", "T", "result", "=", "caseIfSql", "(", "ifSql", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT", ":", "{", "IfSqlFragment", "ifSqlFragment", "=", "(", "IfSqlFragment", ")", "theEObject", ";", "T", "result", "=", "caseIfSqlFragment", "(", "ifSqlFragment", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "IF_META_SQL", ":", "{", "IfMetaSql", "ifMetaSql", "=", "(", "IfMetaSql", ")", "theEObject", ";", "T", "result", "=", "caseIfMetaSql", "(", "ifMetaSql", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "IF_SQL_COND", ":", "{", "IfSqlCond", "ifSqlCond", "=", "(", "IfSqlCond", ")", "theEObject", ";", "T", "result", "=", "caseIfSqlCond", "(", "ifSqlCond", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL", ":", "{", "IfSqlBool", "ifSqlBool", "=", "(", "IfSqlBool", ")", "theEObject", ";", "T", "result", "=", "caseIfSqlBool", "(", "ifSqlBool", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "ORD_SQL", ":", "{", "OrdSql", "ordSql", "=", "(", "OrdSql", ")", "theEObject", ";", "T", "result", "=", "caseOrdSql", "(", "ordSql", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "ORD_SQL2", ":", "{", "OrdSql2", "ordSql2", "=", "(", "OrdSql2", ")", "theEObject", ";", "T", "result", "=", "caseOrdSql2", "(", "ordSql2", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "COLUMN", ":", "{", "Column", "column", "=", "(", "Column", ")", "theEObject", ";", "T", "result", "=", "caseColumn", "(", "column", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "CONSTANT", ":", "{", "Constant", "constant", "=", "(", "Constant", ")", "theEObject", ";", "T", "result", "=", "caseConstant", "(", "constant", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "IDENTIFIER", ":", "{", "Identifier", "identifier", "=", "(", "Identifier", ")", "theEObject", ";", "T", "result", "=", "caseIdentifier", "(", "identifier", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "DATABASE_COLUMN", ":", "{", "DatabaseColumn", "databaseColumn", "=", "(", "DatabaseColumn", ")", "theEObject", ";", "T", "result", "=", "caseDatabaseColumn", "(", "databaseColumn", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "DATABASE_TABLE", ":", "{", "DatabaseTable", "databaseTable", "=", "(", "DatabaseTable", ")", "theEObject", ";", "T", "result", "=", "caseDatabaseTable", "(", "databaseTable", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "MAPPING_RULE", ":", "{", "MappingRule", "mappingRule", "=", "(", "MappingRule", ")", "theEObject", ";", "T", "result", "=", "caseMappingRule", "(", "mappingRule", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "MAPPING", ":", "{", "Mapping", "mapping", "=", "(", "Mapping", ")", "theEObject", ";", "T", "result", "=", "caseMapping", "(", "mapping", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "MAPPING_ITEM", ":", "{", "MappingItem", "mappingItem", "=", "(", "MappingItem", ")", "theEObject", ";", "T", "result", "=", "caseMappingItem", "(", "mappingItem", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "MAPPING_COLUMN", ":", "{", "MappingColumn", "mappingColumn", "=", "(", "MappingColumn", ")", "theEObject", ";", "T", "result", "=", "caseMappingColumn", "(", "mappingColumn", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "case", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE", ":", "{", "OptionalFeature", "optionalFeature", "=", "(", "OptionalFeature", ")", "theEObject", ";", "T", "result", "=", "caseOptionalFeature", "(", "optionalFeature", ")", ";", "if", "(", "result", "==", "null", ")", "result", "=", "defaultCase", "(", "theEObject", ")", ";", "return", "result", ";", "}", "default", ":", "return", "defaultCase", "(", "theEObject", ")", ";", "}", "}", "public", "T", "caseArtifacts", "(", "Artifacts", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseProperty", "(", "Property", "object", ")", "{", "return", "null", ";", "}", "public", "T", "casePojoDefinition", "(", "PojoDefinition", "object", ")", "{", "return", "null", ";", "}", "public", "T", "casePojoUsage", "(", "PojoUsage", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseColumnUsage", "(", "ColumnUsage", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseIdentifierUsage", "(", "IdentifierUsage", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseConstantUsage", "(", "ConstantUsage", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseMappingUsage", "(", "MappingUsage", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseTableDefinition", "(", "TableDefinition", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseTableUsage", "(", "TableUsage", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseMetaStatement", "(", "MetaStatement", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseSql", "(", "Sql", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseSqlFragment", "(", "SqlFragment", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseMetaSql", "(", "MetaSql", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseIfSql", "(", "IfSql", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseIfSqlFragment", "(", "IfSqlFragment", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseIfMetaSql", "(", "IfMetaSql", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseIfSqlCond", "(", "IfSqlCond", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseIfSqlBool", "(", "IfSqlBool", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseOrdSql", "(", "OrdSql", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseOrdSql2", "(", "OrdSql2", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseColumn", "(", "Column", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseConstant", "(", "Constant", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseIdentifier", "(", "Identifier", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseDatabaseColumn", "(", "DatabaseColumn", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseDatabaseTable", "(", "DatabaseTable", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseMappingRule", "(", "MappingRule", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseMapping", "(", "Mapping", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseMappingItem", "(", "MappingItem", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseMappingColumn", "(", "MappingColumn", "object", ")", "{", "return", "null", ";", "}", "public", "T", "caseOptionalFeature", "(", "OptionalFeature", "object", ")", "{", "return", "null", ";", "}", "@", "Override", "public", "T", "defaultCase", "(", "EObject", "object", ")", "{", "return", "null", ";", "}", "}", "</s>" ]
206
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "util", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Adapter", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notifier", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "impl", ".", "AdapterFactoryImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "*", ";", "public", "class", "ProcessorDslAdapterFactory", "extends", "AdapterFactoryImpl", "{", "protected", "static", "ProcessorDslPackage", "modelPackage", ";", "public", "ProcessorDslAdapterFactory", "(", ")", "{", "if", "(", "modelPackage", "==", "null", ")", "{", "modelPackage", "=", "ProcessorDslPackage", ".", "eINSTANCE", ";", "}", "}", "@", "Override", "public", "boolean", "isFactoryForType", "(", "Object", "object", ")", "{", "if", "(", "object", "==", "modelPackage", ")", "{", "return", "true", ";", "}", "if", "(", "object", "instanceof", "EObject", ")", "{", "return", "(", "(", "EObject", ")", "object", ")", ".", "eClass", "(", ")", ".", "getEPackage", "(", ")", "==", "modelPackage", ";", "}", "return", "false", ";", "}", "protected", "ProcessorDslSwitch", "<", "Adapter", ">", "modelSwitch", "=", "new", "ProcessorDslSwitch", "<", "Adapter", ">", "(", ")", "{", "@", "Override", "public", "Adapter", "caseArtifacts", "(", "Artifacts", "object", ")", "{", "return", "createArtifactsAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseProperty", "(", "Property", "object", ")", "{", "return", "createPropertyAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "casePojoDefinition", "(", "PojoDefinition", "object", ")", "{", "return", "createPojoDefinitionAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "casePojoUsage", "(", "PojoUsage", "object", ")", "{", "return", "createPojoUsageAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseColumnUsage", "(", "ColumnUsage", "object", ")", "{", "return", "createColumnUsageAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseIdentifierUsage", "(", "IdentifierUsage", "object", ")", "{", "return", "createIdentifierUsageAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseConstantUsage", "(", "ConstantUsage", "object", ")", "{", "return", "createConstantUsageAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseMappingUsage", "(", "MappingUsage", "object", ")", "{", "return", "createMappingUsageAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseTableDefinition", "(", "TableDefinition", "object", ")", "{", "return", "createTableDefinitionAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseTableUsage", "(", "TableUsage", "object", ")", "{", "return", "createTableUsageAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseMetaStatement", "(", "MetaStatement", "object", ")", "{", "return", "createMetaStatementAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseSql", "(", "Sql", "object", ")", "{", "return", "createSqlAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseSqlFragment", "(", "SqlFragment", "object", ")", "{", "return", "createSqlFragmentAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseMetaSql", "(", "MetaSql", "object", ")", "{", "return", "createMetaSqlAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseIfSql", "(", "IfSql", "object", ")", "{", "return", "createIfSqlAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseIfSqlFragment", "(", "IfSqlFragment", "object", ")", "{", "return", "createIfSqlFragmentAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseIfMetaSql", "(", "IfMetaSql", "object", ")", "{", "return", "createIfMetaSqlAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseIfSqlCond", "(", "IfSqlCond", "object", ")", "{", "return", "createIfSqlCondAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseIfSqlBool", "(", "IfSqlBool", "object", ")", "{", "return", "createIfSqlBoolAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseOrdSql", "(", "OrdSql", "object", ")", "{", "return", "createOrdSqlAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseOrdSql2", "(", "OrdSql2", "object", ")", "{", "return", "createOrdSql2Adapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseColumn", "(", "Column", "object", ")", "{", "return", "createColumnAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseConstant", "(", "Constant", "object", ")", "{", "return", "createConstantAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseIdentifier", "(", "Identifier", "object", ")", "{", "return", "createIdentifierAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseDatabaseColumn", "(", "DatabaseColumn", "object", ")", "{", "return", "createDatabaseColumnAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseDatabaseTable", "(", "DatabaseTable", "object", ")", "{", "return", "createDatabaseTableAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseMappingRule", "(", "MappingRule", "object", ")", "{", "return", "createMappingRuleAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseMapping", "(", "Mapping", "object", ")", "{", "return", "createMappingAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseMappingItem", "(", "MappingItem", "object", ")", "{", "return", "createMappingItemAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseMappingColumn", "(", "MappingColumn", "object", ")", "{", "return", "createMappingColumnAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "caseOptionalFeature", "(", "OptionalFeature", "object", ")", "{", "return", "createOptionalFeatureAdapter", "(", ")", ";", "}", "@", "Override", "public", "Adapter", "defaultCase", "(", "EObject", "object", ")", "{", "return", "createEObjectAdapter", "(", ")", ";", "}", "}", ";", "@", "Override", "public", "Adapter", "createAdapter", "(", "Notifier", "target", ")", "{", "return", "modelSwitch", ".", "doSwitch", "(", "(", "EObject", ")", "target", ")", ";", "}", "public", "Adapter", "createArtifactsAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createPropertyAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createPojoDefinitionAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createPojoUsageAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createColumnUsageAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createIdentifierUsageAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createConstantUsageAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createMappingUsageAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createTableDefinitionAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createTableUsageAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createMetaStatementAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createSqlAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createSqlFragmentAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createMetaSqlAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createIfSqlAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createIfSqlFragmentAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createIfMetaSqlAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createIfSqlCondAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createIfSqlBoolAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createOrdSqlAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createOrdSql2Adapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createColumnAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createConstantAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createIdentifierAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createDatabaseColumnAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createDatabaseTableAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createMappingRuleAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createMappingAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createMappingItemAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createMappingColumnAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createOptionalFeatureAdapter", "(", ")", "{", "return", "null", ";", "}", "public", "Adapter", "createEObjectAdapter", "(", ")", "{", "return", "null", ";", "}", "}", "</s>" ]
207
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "DatabaseTable", "extends", "EObject", "{", "String", "getName", "(", ")", ";", "void", "setName", "(", "String", "value", ")", ";", "}", "</s>" ]
208
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "MetaSql", "extends", "EObject", "{", "EList", "<", "IfSql", ">", "getIfs", "(", ")", ";", "String", "getType", "(", ")", ";", "void", "setType", "(", "String", "value", ")", ";", "IfSqlCond", "getCond", "(", ")", ";", "void", "setCond", "(", "IfSqlCond", "value", ")", ";", "String", "getFtype", "(", ")", ";", "void", "setFtype", "(", "String", "value", ")", ";", "OrdSql", "getOrd", "(", ")", ";", "void", "setOrd", "(", "OrdSql", "value", ")", ";", "}", "</s>" ]
209
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "PojoDefinition", "extends", "EObject", "{", "String", "getName", "(", ")", ";", "void", "setName", "(", "String", "value", ")", ";", "String", "getClass_", "(", ")", ";", "void", "setClass", "(", "String", "value", ")", ";", "}", "</s>" ]
210
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "public", "interface", "IdentifierUsage", "extends", "PojoUsage", "{", "MetaStatement", "getStatement", "(", ")", ";", "void", "setStatement", "(", "MetaStatement", "value", ")", ";", "}", "</s>" ]
211
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "TableUsage", "extends", "EObject", "{", "MetaStatement", "getStatement", "(", ")", ";", "void", "setStatement", "(", "MetaStatement", "value", ")", ";", "TableDefinition", "getTable", "(", ")", ";", "void", "setTable", "(", "TableDefinition", "value", ")", ";", "String", "getPrefix", "(", ")", ";", "void", "setPrefix", "(", "String", "value", ")", ";", "}", "</s>" ]
212
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "Property", "extends", "EObject", "{", "String", "getName", "(", ")", ";", "void", "setName", "(", "String", "value", ")", ";", "String", "getDoResolvePojo", "(", ")", ";", "void", "setDoResolvePojo", "(", "String", "value", ")", ";", "String", "getDoResolveDb", "(", ")", ";", "void", "setDoResolveDb", "(", "String", "value", ")", ";", "String", "getDbUrl", "(", ")", ";", "void", "setDbUrl", "(", "String", "value", ")", ";", "String", "getDbUsername", "(", ")", ";", "void", "setDbUsername", "(", "String", "value", ")", ";", "String", "getDbPassword", "(", ")", ";", "void", "setDbPassword", "(", "String", "value", ")", ";", "String", "getDbSchema", "(", ")", ";", "void", "setDbSchema", "(", "String", "value", ")", ";", "String", "getDbDriver", "(", ")", ";", "void", "setDbDriver", "(", "String", "value", ")", ";", "}", "</s>" ]
213
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "OrdSql", "extends", "EObject", "{", "EList", "<", "OrdSql2", ">", "getSqls", "(", ")", ";", "}", "</s>" ]
214
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "Column", "extends", "EObject", "{", "String", "getName", "(", ")", ";", "void", "setName", "(", "String", "value", ")", ";", "String", "getType", "(", ")", ";", "void", "setType", "(", "String", "value", ")", ";", "EList", "<", "String", ">", "getVals", "(", ")", ";", "}", "</s>" ]
215
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "public", "interface", "ConstantUsage", "extends", "PojoUsage", "{", "MetaStatement", "getStatement", "(", ")", ";", "void", "setStatement", "(", "MetaStatement", "value", ")", ";", "}", "</s>" ]
216
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "MetaStatement", "extends", "EObject", "{", "String", "getName", "(", ")", ";", "void", "setName", "(", "String", "value", ")", ";", "String", "getType", "(", ")", ";", "void", "setType", "(", "String", "value", ")", ";", "EList", "<", "String", ">", "getFilters", "(", ")", ";", "Sql", "getStatement", "(", ")", ";", "void", "setStatement", "(", "Sql", "value", ")", ";", "}", "</s>" ]
217
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "Artifacts", "extends", "EObject", "{", "EList", "<", "OptionalFeature", ">", "getFeatures", "(", ")", ";", "EList", "<", "MetaStatement", ">", "getStatements", "(", ")", ";", "EList", "<", "MappingRule", ">", "getMappings", "(", ")", ";", "EList", "<", "PojoDefinition", ">", "getPojos", "(", ")", ";", "EList", "<", "PojoUsage", ">", "getUsages", "(", ")", ";", "EList", "<", "Property", ">", "getProperties", "(", ")", ";", "EList", "<", "TableDefinition", ">", "getTables", "(", ")", ";", "EList", "<", "TableUsage", ">", "getTableUsages", "(", ")", ";", "}", "</s>" ]
218
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "PojoUsage", "extends", "EObject", "{", "PojoDefinition", "getPojo", "(", ")", ";", "void", "setPojo", "(", "PojoDefinition", "value", ")", ";", "}", "</s>" ]
219
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "IfMetaSql", "extends", "EObject", "{", "EList", "<", "IfSql", ">", "getIfs", "(", ")", ";", "String", "getType", "(", ")", ";", "void", "setType", "(", "String", "value", ")", ";", "IfSqlCond", "getCond", "(", ")", ";", "void", "setCond", "(", "IfSqlCond", "value", ")", ";", "}", "</s>" ]
220
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "IfSqlFragment", "extends", "EObject", "{", "String", "getValue", "(", ")", ";", "void", "setValue", "(", "String", "value", ")", ";", "Column", "getCol", "(", ")", ";", "void", "setCol", "(", "Column", "value", ")", ";", "Constant", "getCnst", "(", ")", ";", "void", "setCnst", "(", "Constant", "value", ")", ";", "Identifier", "getIdent", "(", ")", ";", "void", "setIdent", "(", "Identifier", "value", ")", ";", "DatabaseTable", "getDbtab", "(", ")", ";", "void", "setDbtab", "(", "DatabaseTable", "value", ")", ";", "DatabaseColumn", "getDbcol", "(", ")", ";", "void", "setDbcol", "(", "DatabaseColumn", "value", ")", ";", "IfMetaSql", "getMeta", "(", ")", ";", "void", "setMeta", "(", "IfMetaSql", "value", ")", ";", "}", "</s>" ]
221
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "Sql", "extends", "EObject", "{", "EList", "<", "SqlFragment", ">", "getSqls", "(", ")", ";", "}", "</s>" ]
222
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "java", ".", "util", ".", "Collection", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "NotificationChain", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "InternalEObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "EObjectContainmentEList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "InternalEList", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Artifacts", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingRule", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MetaStatement", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "OptionalFeature", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "PojoDefinition", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "PojoUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Property", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "TableDefinition", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "TableUsage", ";", "public", "class", "ArtifactsImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "Artifacts", "{", "protected", "EList", "<", "OptionalFeature", ">", "features", ";", "protected", "EList", "<", "MetaStatement", ">", "statements", ";", "protected", "EList", "<", "MappingRule", ">", "mappings", ";", "protected", "EList", "<", "PojoDefinition", ">", "pojos", ";", "protected", "EList", "<", "PojoUsage", ">", "usages", ";", "protected", "EList", "<", "Property", ">", "properties", ";", "protected", "EList", "<", "TableDefinition", ">", "tables", ";", "protected", "EList", "<", "TableUsage", ">", "tableUsages", ";", "protected", "ArtifactsImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "ARTIFACTS", ";", "}", "public", "EList", "<", "OptionalFeature", ">", "getFeatures", "(", ")", "{", "if", "(", "features", "==", "null", ")", "{", "features", "=", "new", "EObjectContainmentEList", "<", "OptionalFeature", ">", "(", "OptionalFeature", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "ARTIFACTS__FEATURES", ")", ";", "}", "return", "features", ";", "}", "public", "EList", "<", "MetaStatement", ">", "getStatements", "(", ")", "{", "if", "(", "statements", "==", "null", ")", "{", "statements", "=", "new", "EObjectContainmentEList", "<", "MetaStatement", ">", "(", "MetaStatement", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "ARTIFACTS__STATEMENTS", ")", ";", "}", "return", "statements", ";", "}", "public", "EList", "<", "MappingRule", ">", "getMappings", "(", ")", "{", "if", "(", "mappings", "==", "null", ")", "{", "mappings", "=", "new", "EObjectContainmentEList", "<", "MappingRule", ">", "(", "MappingRule", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "ARTIFACTS__MAPPINGS", ")", ";", "}", "return", "mappings", ";", "}", "public", "EList", "<", "PojoDefinition", ">", "getPojos", "(", ")", "{", "if", "(", "pojos", "==", "null", ")", "{", "pojos", "=", "new", "EObjectContainmentEList", "<", "PojoDefinition", ">", "(", "PojoDefinition", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "ARTIFACTS__POJOS", ")", ";", "}", "return", "pojos", ";", "}", "public", "EList", "<", "PojoUsage", ">", "getUsages", "(", ")", "{", "if", "(", "usages", "==", "null", ")", "{", "usages", "=", "new", "EObjectContainmentEList", "<", "PojoUsage", ">", "(", "PojoUsage", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "ARTIFACTS__USAGES", ")", ";", "}", "return", "usages", ";", "}", "public", "EList", "<", "Property", ">", "getProperties", "(", ")", "{", "if", "(", "properties", "==", "null", ")", "{", "properties", "=", "new", "EObjectContainmentEList", "<", "Property", ">", "(", "Property", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "ARTIFACTS__PROPERTIES", ")", ";", "}", "return", "properties", ";", "}", "public", "EList", "<", "TableDefinition", ">", "getTables", "(", ")", "{", "if", "(", "tables", "==", "null", ")", "{", "tables", "=", "new", "EObjectContainmentEList", "<", "TableDefinition", ">", "(", "TableDefinition", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "ARTIFACTS__TABLES", ")", ";", "}", "return", "tables", ";", "}", "public", "EList", "<", "TableUsage", ">", "getTableUsages", "(", ")", "{", "if", "(", "tableUsages", "==", "null", ")", "{", "tableUsages", "=", "new", "EObjectContainmentEList", "<", "TableUsage", ">", "(", "TableUsage", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "ARTIFACTS__TABLE_USAGES", ")", ";", "}", "return", "tableUsages", ";", "}", "@", "Override", "public", "NotificationChain", "eInverseRemove", "(", "InternalEObject", "otherEnd", ",", "int", "featureID", ",", "NotificationChain", "msgs", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "ARTIFACTS__FEATURES", ":", "return", "(", "(", "InternalEList", "<", "?", ">", ")", "getFeatures", "(", ")", ")", ".", "basicRemove", "(", "otherEnd", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__STATEMENTS", ":", "return", "(", "(", "InternalEList", "<", "?", ">", ")", "getStatements", "(", ")", ")", ".", "basicRemove", "(", "otherEnd", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__MAPPINGS", ":", "return", "(", "(", "InternalEList", "<", "?", ">", ")", "getMappings", "(", ")", ")", ".", "basicRemove", "(", "otherEnd", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__POJOS", ":", "return", "(", "(", "InternalEList", "<", "?", ">", ")", "getPojos", "(", ")", ")", ".", "basicRemove", "(", "otherEnd", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__USAGES", ":", "return", "(", "(", "InternalEList", "<", "?", ">", ")", "getUsages", "(", ")", ")", ".", "basicRemove", "(", "otherEnd", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__PROPERTIES", ":", "return", "(", "(", "InternalEList", "<", "?", ">", ")", "getProperties", "(", ")", ")", ".", "basicRemove", "(", "otherEnd", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__TABLES", ":", "return", "(", "(", "InternalEList", "<", "?", ">", ")", "getTables", "(", ")", ")", ".", "basicRemove", "(", "otherEnd", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__TABLE_USAGES", ":", "return", "(", "(", "InternalEList", "<", "?", ">", ")", "getTableUsages", "(", ")", ")", ".", "basicRemove", "(", "otherEnd", ",", "msgs", ")", ";", "}", "return", "super", ".", "eInverseRemove", "(", "otherEnd", ",", "featureID", ",", "msgs", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "ARTIFACTS__FEATURES", ":", "return", "getFeatures", "(", ")", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__STATEMENTS", ":", "return", "getStatements", "(", ")", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__MAPPINGS", ":", "return", "getMappings", "(", ")", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__POJOS", ":", "return", "getPojos", "(", ")", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__USAGES", ":", "return", "getUsages", "(", ")", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__PROPERTIES", ":", "return", "getProperties", "(", ")", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__TABLES", ":", "return", "getTables", "(", ")", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__TABLE_USAGES", ":", "return", "getTableUsages", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "ARTIFACTS__FEATURES", ":", "getFeatures", "(", ")", ".", "clear", "(", ")", ";", "getFeatures", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "OptionalFeature", ">", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__STATEMENTS", ":", "getStatements", "(", ")", ".", "clear", "(", ")", ";", "getStatements", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "MetaStatement", ">", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__MAPPINGS", ":", "getMappings", "(", ")", ".", "clear", "(", ")", ";", "getMappings", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "MappingRule", ">", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__POJOS", ":", "getPojos", "(", ")", ".", "clear", "(", ")", ";", "getPojos", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "PojoDefinition", ">", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__USAGES", ":", "getUsages", "(", ")", ".", "clear", "(", ")", ";", "getUsages", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "PojoUsage", ">", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__PROPERTIES", ":", "getProperties", "(", ")", ".", "clear", "(", ")", ";", "getProperties", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "Property", ">", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__TABLES", ":", "getTables", "(", ")", ".", "clear", "(", ")", ";", "getTables", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "TableDefinition", ">", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__TABLE_USAGES", ":", "getTableUsages", "(", ")", ".", "clear", "(", ")", ";", "getTableUsages", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "TableUsage", ">", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "ARTIFACTS__FEATURES", ":", "getFeatures", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__STATEMENTS", ":", "getStatements", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__MAPPINGS", ":", "getMappings", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__POJOS", ":", "getPojos", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__USAGES", ":", "getUsages", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__PROPERTIES", ":", "getProperties", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__TABLES", ":", "getTables", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__TABLE_USAGES", ":", "getTableUsages", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "ARTIFACTS__FEATURES", ":", "return", "features", "!=", "null", "&&", "!", "features", ".", "isEmpty", "(", ")", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__STATEMENTS", ":", "return", "statements", "!=", "null", "&&", "!", "statements", ".", "isEmpty", "(", ")", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__MAPPINGS", ":", "return", "mappings", "!=", "null", "&&", "!", "mappings", ".", "isEmpty", "(", ")", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__POJOS", ":", "return", "pojos", "!=", "null", "&&", "!", "pojos", ".", "isEmpty", "(", ")", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__USAGES", ":", "return", "usages", "!=", "null", "&&", "!", "usages", ".", "isEmpty", "(", ")", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__PROPERTIES", ":", "return", "properties", "!=", "null", "&&", "!", "properties", ".", "isEmpty", "(", ")", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__TABLES", ":", "return", "tables", "!=", "null", "&&", "!", "tables", ".", "isEmpty", "(", ")", ";", "case", "ProcessorDslPackage", ".", "ARTIFACTS__TABLE_USAGES", ":", "return", "tableUsages", "!=", "null", "&&", "!", "tableUsages", ".", "isEmpty", "(", ")", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "}", "</s>" ]
223
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "NotificationChain", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "InternalEObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Constant", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "DatabaseColumn", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Identifier", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "OrdSql2", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "OrdSql2Impl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "OrdSql2", "{", "protected", "static", "final", "String", "VALUE_EDEFAULT", "=", "null", ";", "protected", "String", "value", "=", "VALUE_EDEFAULT", ";", "protected", "Constant", "cnst", ";", "protected", "Identifier", "ident", ";", "protected", "DatabaseColumn", "dbcol", ";", "protected", "OrdSql2Impl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "ORD_SQL2", ";", "}", "public", "String", "getValue", "(", ")", "{", "return", "value", ";", "}", "public", "void", "setValue", "(", "String", "newValue", ")", "{", "String", "oldValue", "=", "value", ";", "value", "=", "newValue", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "ORD_SQL2__VALUE", ",", "oldValue", ",", "value", ")", ")", ";", "}", "public", "Constant", "getCnst", "(", ")", "{", "return", "cnst", ";", "}", "public", "NotificationChain", "basicSetCnst", "(", "Constant", "newCnst", ",", "NotificationChain", "msgs", ")", "{", "Constant", "oldCnst", "=", "cnst", ";", "cnst", "=", "newCnst", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "ORD_SQL2__CNST", ",", "oldCnst", ",", "newCnst", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setCnst", "(", "Constant", "newCnst", ")", "{", "if", "(", "newCnst", "!=", "cnst", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "cnst", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "cnst", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "ORD_SQL2__CNST", ",", "null", ",", "msgs", ")", ";", "if", "(", "newCnst", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newCnst", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "ORD_SQL2__CNST", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetCnst", "(", "newCnst", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "ORD_SQL2__CNST", ",", "newCnst", ",", "newCnst", ")", ")", ";", "}", "public", "Identifier", "getIdent", "(", ")", "{", "return", "ident", ";", "}", "public", "NotificationChain", "basicSetIdent", "(", "Identifier", "newIdent", ",", "NotificationChain", "msgs", ")", "{", "Identifier", "oldIdent", "=", "ident", ";", "ident", "=", "newIdent", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "ORD_SQL2__IDENT", ",", "oldIdent", ",", "newIdent", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setIdent", "(", "Identifier", "newIdent", ")", "{", "if", "(", "newIdent", "!=", "ident", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "ident", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "ident", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "ORD_SQL2__IDENT", ",", "null", ",", "msgs", ")", ";", "if", "(", "newIdent", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newIdent", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "ORD_SQL2__IDENT", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetIdent", "(", "newIdent", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "ORD_SQL2__IDENT", ",", "newIdent", ",", "newIdent", ")", ")", ";", "}", "public", "DatabaseColumn", "getDbcol", "(", ")", "{", "return", "dbcol", ";", "}", "public", "NotificationChain", "basicSetDbcol", "(", "DatabaseColumn", "newDbcol", ",", "NotificationChain", "msgs", ")", "{", "DatabaseColumn", "oldDbcol", "=", "dbcol", ";", "dbcol", "=", "newDbcol", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "ORD_SQL2__DBCOL", ",", "oldDbcol", ",", "newDbcol", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setDbcol", "(", "DatabaseColumn", "newDbcol", ")", "{", "if", "(", "newDbcol", "!=", "dbcol", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "dbcol", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "dbcol", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "ORD_SQL2__DBCOL", ",", "null", ",", "msgs", ")", ";", "if", "(", "newDbcol", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newDbcol", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "ORD_SQL2__DBCOL", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetDbcol", "(", "newDbcol", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "ORD_SQL2__DBCOL", ",", "newDbcol", ",", "newDbcol", ")", ")", ";", "}", "@", "Override", "public", "NotificationChain", "eInverseRemove", "(", "InternalEObject", "otherEnd", ",", "int", "featureID", ",", "NotificationChain", "msgs", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "ORD_SQL2__CNST", ":", "return", "basicSetCnst", "(", "null", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "ORD_SQL2__IDENT", ":", "return", "basicSetIdent", "(", "null", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "ORD_SQL2__DBCOL", ":", "return", "basicSetDbcol", "(", "null", ",", "msgs", ")", ";", "}", "return", "super", ".", "eInverseRemove", "(", "otherEnd", ",", "featureID", ",", "msgs", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "ORD_SQL2__VALUE", ":", "return", "getValue", "(", ")", ";", "case", "ProcessorDslPackage", ".", "ORD_SQL2__CNST", ":", "return", "getCnst", "(", ")", ";", "case", "ProcessorDslPackage", ".", "ORD_SQL2__IDENT", ":", "return", "getIdent", "(", ")", ";", "case", "ProcessorDslPackage", ".", "ORD_SQL2__DBCOL", ":", "return", "getDbcol", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "ORD_SQL2__VALUE", ":", "setValue", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "ORD_SQL2__CNST", ":", "setCnst", "(", "(", "Constant", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "ORD_SQL2__IDENT", ":", "setIdent", "(", "(", "Identifier", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "ORD_SQL2__DBCOL", ":", "setDbcol", "(", "(", "DatabaseColumn", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "ORD_SQL2__VALUE", ":", "setValue", "(", "VALUE_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "ORD_SQL2__CNST", ":", "setCnst", "(", "(", "Constant", ")", "null", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "ORD_SQL2__IDENT", ":", "setIdent", "(", "(", "Identifier", ")", "null", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "ORD_SQL2__DBCOL", ":", "setDbcol", "(", "(", "DatabaseColumn", ")", "null", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "ORD_SQL2__VALUE", ":", "return", "VALUE_EDEFAULT", "==", "null", "?", "value", "!=", "null", ":", "!", "VALUE_EDEFAULT", ".", "equals", "(", "value", ")", ";", "case", "ProcessorDslPackage", ".", "ORD_SQL2__CNST", ":", "return", "cnst", "!=", "null", ";", "case", "ProcessorDslPackage", ".", "ORD_SQL2__IDENT", ":", "return", "ident", "!=", "null", ";", "case", "ProcessorDslPackage", ".", "ORD_SQL2__DBCOL", ":", "return", "dbcol", "!=", "null", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "eIsProxy", "(", ")", ")", "return", "super", ".", "toString", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "super", ".", "toString", "(", ")", ")", ";", "result", ".", "append", "(", "\"", "(value:", "\"", ")", ";", "result", ".", "append", "(", "value", ")", ";", "result", ".", "append", "(", "')'", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
224
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "InternalEObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "PojoDefinition", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "PojoUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "PojoUsageImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "PojoUsage", "{", "protected", "PojoDefinition", "pojo", ";", "protected", "PojoUsageImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "POJO_USAGE", ";", "}", "public", "PojoDefinition", "getPojo", "(", ")", "{", "if", "(", "pojo", "!=", "null", "&&", "pojo", ".", "eIsProxy", "(", ")", ")", "{", "InternalEObject", "oldPojo", "=", "(", "InternalEObject", ")", "pojo", ";", "pojo", "=", "(", "PojoDefinition", ")", "eResolveProxy", "(", "oldPojo", ")", ";", "if", "(", "pojo", "!=", "oldPojo", ")", "{", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "RESOLVE", ",", "ProcessorDslPackage", ".", "POJO_USAGE__POJO", ",", "oldPojo", ",", "pojo", ")", ")", ";", "}", "}", "return", "pojo", ";", "}", "public", "PojoDefinition", "basicGetPojo", "(", ")", "{", "return", "pojo", ";", "}", "public", "void", "setPojo", "(", "PojoDefinition", "newPojo", ")", "{", "PojoDefinition", "oldPojo", "=", "pojo", ";", "pojo", "=", "newPojo", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "POJO_USAGE__POJO", ",", "oldPojo", ",", "pojo", ")", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "POJO_USAGE__POJO", ":", "if", "(", "resolve", ")", "return", "getPojo", "(", ")", ";", "return", "basicGetPojo", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "POJO_USAGE__POJO", ":", "setPojo", "(", "(", "PojoDefinition", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "POJO_USAGE__POJO", ":", "setPojo", "(", "(", "PojoDefinition", ")", "null", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "POJO_USAGE__POJO", ":", "return", "pojo", "!=", "null", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "}", "</s>" ]
225
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "java", ".", "util", ".", "Collection", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "NotificationChain", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "InternalEObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "EDataTypeEList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "EObjectContainmentEList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "InternalEList", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSqlBool", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSqlCond", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "IfSqlCondImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "IfSqlCond", "{", "protected", "IfSqlBool", "bool1", ";", "protected", "EList", "<", "String", ">", "oper", ";", "protected", "EList", "<", "IfSqlBool", ">", "bool2", ";", "protected", "IfSqlCondImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "IF_SQL_COND", ";", "}", "public", "IfSqlBool", "getBool1", "(", ")", "{", "return", "bool1", ";", "}", "public", "NotificationChain", "basicSetBool1", "(", "IfSqlBool", "newBool1", ",", "NotificationChain", "msgs", ")", "{", "IfSqlBool", "oldBool1", "=", "bool1", ";", "bool1", "=", "newBool1", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_COND__BOOL1", ",", "oldBool1", ",", "newBool1", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setBool1", "(", "IfSqlBool", "newBool1", ")", "{", "if", "(", "newBool1", "!=", "bool1", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "bool1", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "bool1", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_SQL_COND__BOOL1", ",", "null", ",", "msgs", ")", ";", "if", "(", "newBool1", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newBool1", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_SQL_COND__BOOL1", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetBool1", "(", "newBool1", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_COND__BOOL1", ",", "newBool1", ",", "newBool1", ")", ")", ";", "}", "public", "EList", "<", "String", ">", "getOper", "(", ")", "{", "if", "(", "oper", "==", "null", ")", "{", "oper", "=", "new", "EDataTypeEList", "<", "String", ">", "(", "String", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "IF_SQL_COND__OPER", ")", ";", "}", "return", "oper", ";", "}", "public", "EList", "<", "IfSqlBool", ">", "getBool2", "(", ")", "{", "if", "(", "bool2", "==", "null", ")", "{", "bool2", "=", "new", "EObjectContainmentEList", "<", "IfSqlBool", ">", "(", "IfSqlBool", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "IF_SQL_COND__BOOL2", ")", ";", "}", "return", "bool2", ";", "}", "@", "Override", "public", "NotificationChain", "eInverseRemove", "(", "InternalEObject", "otherEnd", ",", "int", "featureID", ",", "NotificationChain", "msgs", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_SQL_COND__BOOL1", ":", "return", "basicSetBool1", "(", "null", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_COND__BOOL2", ":", "return", "(", "(", "InternalEList", "<", "?", ">", ")", "getBool2", "(", ")", ")", ".", "basicRemove", "(", "otherEnd", ",", "msgs", ")", ";", "}", "return", "super", ".", "eInverseRemove", "(", "otherEnd", ",", "featureID", ",", "msgs", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_SQL_COND__BOOL1", ":", "return", "getBool1", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_COND__OPER", ":", "return", "getOper", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_COND__BOOL2", ":", "return", "getBool2", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_SQL_COND__BOOL1", ":", "setBool1", "(", "(", "IfSqlBool", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_COND__OPER", ":", "getOper", "(", ")", ".", "clear", "(", ")", ";", "getOper", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "String", ">", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_COND__BOOL2", ":", "getBool2", "(", ")", ".", "clear", "(", ")", ";", "getBool2", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "IfSqlBool", ">", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_SQL_COND__BOOL1", ":", "setBool1", "(", "(", "IfSqlBool", ")", "null", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_COND__OPER", ":", "getOper", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_COND__BOOL2", ":", "getBool2", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_SQL_COND__BOOL1", ":", "return", "bool1", "!=", "null", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_COND__OPER", ":", "return", "oper", "!=", "null", "&&", "!", "oper", ".", "isEmpty", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_COND__BOOL2", ":", "return", "bool2", "!=", "null", "&&", "!", "bool2", ".", "isEmpty", "(", ")", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "eIsProxy", "(", ")", ")", "return", "super", ".", "toString", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "super", ".", "toString", "(", ")", ")", ";", "result", ".", "append", "(", "\"", "(oper:", "\"", ")", ";", "result", ".", "append", "(", "oper", ")", ";", "result", ".", "append", "(", "')'", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
226
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "InternalEObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MetaStatement", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "TableDefinition", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "TableUsage", ";", "public", "class", "TableUsageImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "TableUsage", "{", "protected", "MetaStatement", "statement", ";", "protected", "TableDefinition", "table", ";", "protected", "static", "final", "String", "PREFIX_EDEFAULT", "=", "null", ";", "protected", "String", "prefix", "=", "PREFIX_EDEFAULT", ";", "protected", "TableUsageImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "TABLE_USAGE", ";", "}", "public", "MetaStatement", "getStatement", "(", ")", "{", "if", "(", "statement", "!=", "null", "&&", "statement", ".", "eIsProxy", "(", ")", ")", "{", "InternalEObject", "oldStatement", "=", "(", "InternalEObject", ")", "statement", ";", "statement", "=", "(", "MetaStatement", ")", "eResolveProxy", "(", "oldStatement", ")", ";", "if", "(", "statement", "!=", "oldStatement", ")", "{", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "RESOLVE", ",", "ProcessorDslPackage", ".", "TABLE_USAGE__STATEMENT", ",", "oldStatement", ",", "statement", ")", ")", ";", "}", "}", "return", "statement", ";", "}", "public", "MetaStatement", "basicGetStatement", "(", ")", "{", "return", "statement", ";", "}", "public", "void", "setStatement", "(", "MetaStatement", "newStatement", ")", "{", "MetaStatement", "oldStatement", "=", "statement", ";", "statement", "=", "newStatement", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "TABLE_USAGE__STATEMENT", ",", "oldStatement", ",", "statement", ")", ")", ";", "}", "public", "TableDefinition", "getTable", "(", ")", "{", "if", "(", "table", "!=", "null", "&&", "table", ".", "eIsProxy", "(", ")", ")", "{", "InternalEObject", "oldTable", "=", "(", "InternalEObject", ")", "table", ";", "table", "=", "(", "TableDefinition", ")", "eResolveProxy", "(", "oldTable", ")", ";", "if", "(", "table", "!=", "oldTable", ")", "{", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "RESOLVE", ",", "ProcessorDslPackage", ".", "TABLE_USAGE__TABLE", ",", "oldTable", ",", "table", ")", ")", ";", "}", "}", "return", "table", ";", "}", "public", "TableDefinition", "basicGetTable", "(", ")", "{", "return", "table", ";", "}", "public", "void", "setTable", "(", "TableDefinition", "newTable", ")", "{", "TableDefinition", "oldTable", "=", "table", ";", "table", "=", "newTable", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "TABLE_USAGE__TABLE", ",", "oldTable", ",", "table", ")", ")", ";", "}", "public", "String", "getPrefix", "(", ")", "{", "return", "prefix", ";", "}", "public", "void", "setPrefix", "(", "String", "newPrefix", ")", "{", "String", "oldPrefix", "=", "prefix", ";", "prefix", "=", "newPrefix", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "TABLE_USAGE__PREFIX", ",", "oldPrefix", ",", "prefix", ")", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "TABLE_USAGE__STATEMENT", ":", "if", "(", "resolve", ")", "return", "getStatement", "(", ")", ";", "return", "basicGetStatement", "(", ")", ";", "case", "ProcessorDslPackage", ".", "TABLE_USAGE__TABLE", ":", "if", "(", "resolve", ")", "return", "getTable", "(", ")", ";", "return", "basicGetTable", "(", ")", ";", "case", "ProcessorDslPackage", ".", "TABLE_USAGE__PREFIX", ":", "return", "getPrefix", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "TABLE_USAGE__STATEMENT", ":", "setStatement", "(", "(", "MetaStatement", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "TABLE_USAGE__TABLE", ":", "setTable", "(", "(", "TableDefinition", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "TABLE_USAGE__PREFIX", ":", "setPrefix", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "TABLE_USAGE__STATEMENT", ":", "setStatement", "(", "(", "MetaStatement", ")", "null", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "TABLE_USAGE__TABLE", ":", "setTable", "(", "(", "TableDefinition", ")", "null", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "TABLE_USAGE__PREFIX", ":", "setPrefix", "(", "PREFIX_EDEFAULT", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "TABLE_USAGE__STATEMENT", ":", "return", "statement", "!=", "null", ";", "case", "ProcessorDslPackage", ".", "TABLE_USAGE__TABLE", ":", "return", "table", "!=", "null", ";", "case", "ProcessorDslPackage", ".", "TABLE_USAGE__PREFIX", ":", "return", "PREFIX_EDEFAULT", "==", "null", "?", "prefix", "!=", "null", ":", "!", "PREFIX_EDEFAULT", ".", "equals", "(", "prefix", ")", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "eIsProxy", "(", ")", ")", "return", "super", ".", "toString", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "super", ".", "toString", "(", ")", ")", ";", "result", ".", "append", "(", "\"", "(prefix:", "\"", ")", ";", "result", ".", "append", "(", "prefix", ")", ";", "result", ".", "append", "(", "')'", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
227
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "InternalEObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ConstantUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MetaStatement", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "ConstantUsageImpl", "extends", "PojoUsageImpl", "implements", "ConstantUsage", "{", "protected", "MetaStatement", "statement", ";", "protected", "ConstantUsageImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "CONSTANT_USAGE", ";", "}", "public", "MetaStatement", "getStatement", "(", ")", "{", "if", "(", "statement", "!=", "null", "&&", "statement", ".", "eIsProxy", "(", ")", ")", "{", "InternalEObject", "oldStatement", "=", "(", "InternalEObject", ")", "statement", ";", "statement", "=", "(", "MetaStatement", ")", "eResolveProxy", "(", "oldStatement", ")", ";", "if", "(", "statement", "!=", "oldStatement", ")", "{", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "RESOLVE", ",", "ProcessorDslPackage", ".", "CONSTANT_USAGE__STATEMENT", ",", "oldStatement", ",", "statement", ")", ")", ";", "}", "}", "return", "statement", ";", "}", "public", "MetaStatement", "basicGetStatement", "(", ")", "{", "return", "statement", ";", "}", "public", "void", "setStatement", "(", "MetaStatement", "newStatement", ")", "{", "MetaStatement", "oldStatement", "=", "statement", ";", "statement", "=", "newStatement", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "CONSTANT_USAGE__STATEMENT", ",", "oldStatement", ",", "statement", ")", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "CONSTANT_USAGE__STATEMENT", ":", "if", "(", "resolve", ")", "return", "getStatement", "(", ")", ";", "return", "basicGetStatement", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "CONSTANT_USAGE__STATEMENT", ":", "setStatement", "(", "(", "MetaStatement", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "CONSTANT_USAGE__STATEMENT", ":", "setStatement", "(", "(", "MetaStatement", ")", "null", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "CONSTANT_USAGE__STATEMENT", ":", "return", "statement", "!=", "null", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "}", "</s>" ]
228
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "InternalEObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingRule", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "MappingUsageImpl", "extends", "PojoUsageImpl", "implements", "MappingUsage", "{", "protected", "MappingRule", "statement", ";", "protected", "MappingUsageImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "MAPPING_USAGE", ";", "}", "public", "MappingRule", "getStatement", "(", ")", "{", "if", "(", "statement", "!=", "null", "&&", "statement", ".", "eIsProxy", "(", ")", ")", "{", "InternalEObject", "oldStatement", "=", "(", "InternalEObject", ")", "statement", ";", "statement", "=", "(", "MappingRule", ")", "eResolveProxy", "(", "oldStatement", ")", ";", "if", "(", "statement", "!=", "oldStatement", ")", "{", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "RESOLVE", ",", "ProcessorDslPackage", ".", "MAPPING_USAGE__STATEMENT", ",", "oldStatement", ",", "statement", ")", ")", ";", "}", "}", "return", "statement", ";", "}", "public", "MappingRule", "basicGetStatement", "(", ")", "{", "return", "statement", ";", "}", "public", "void", "setStatement", "(", "MappingRule", "newStatement", ")", "{", "MappingRule", "oldStatement", "=", "statement", ";", "statement", "=", "newStatement", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "MAPPING_USAGE__STATEMENT", ",", "oldStatement", ",", "statement", ")", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING_USAGE__STATEMENT", ":", "if", "(", "resolve", ")", "return", "getStatement", "(", ")", ";", "return", "basicGetStatement", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING_USAGE__STATEMENT", ":", "setStatement", "(", "(", "MappingRule", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING_USAGE__STATEMENT", ":", "setStatement", "(", "(", "MappingRule", ")", "null", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING_USAGE__STATEMENT", ":", "return", "statement", "!=", "null", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "}", "</s>" ]
229
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "InternalEObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ColumnUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MetaStatement", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "ColumnUsageImpl", "extends", "PojoUsageImpl", "implements", "ColumnUsage", "{", "protected", "MetaStatement", "statement", ";", "protected", "ColumnUsageImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "COLUMN_USAGE", ";", "}", "public", "MetaStatement", "getStatement", "(", ")", "{", "if", "(", "statement", "!=", "null", "&&", "statement", ".", "eIsProxy", "(", ")", ")", "{", "InternalEObject", "oldStatement", "=", "(", "InternalEObject", ")", "statement", ";", "statement", "=", "(", "MetaStatement", ")", "eResolveProxy", "(", "oldStatement", ")", ";", "if", "(", "statement", "!=", "oldStatement", ")", "{", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "RESOLVE", ",", "ProcessorDslPackage", ".", "COLUMN_USAGE__STATEMENT", ",", "oldStatement", ",", "statement", ")", ")", ";", "}", "}", "return", "statement", ";", "}", "public", "MetaStatement", "basicGetStatement", "(", ")", "{", "return", "statement", ";", "}", "public", "void", "setStatement", "(", "MetaStatement", "newStatement", ")", "{", "MetaStatement", "oldStatement", "=", "statement", ";", "statement", "=", "newStatement", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "COLUMN_USAGE__STATEMENT", ",", "oldStatement", ",", "statement", ")", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "COLUMN_USAGE__STATEMENT", ":", "if", "(", "resolve", ")", "return", "getStatement", "(", ")", ";", "return", "basicGetStatement", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "COLUMN_USAGE__STATEMENT", ":", "setStatement", "(", "(", "MetaStatement", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "COLUMN_USAGE__STATEMENT", ":", "setStatement", "(", "(", "MetaStatement", ")", "null", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "COLUMN_USAGE__STATEMENT", ":", "return", "statement", "!=", "null", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "}", "</s>" ]
230
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "NotificationChain", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "InternalEObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Column", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Constant", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "DatabaseColumn", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "DatabaseTable", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Identifier", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MetaSql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "SqlFragment", ";", "public", "class", "SqlFragmentImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "SqlFragment", "{", "protected", "static", "final", "String", "VALUE_EDEFAULT", "=", "null", ";", "protected", "String", "value", "=", "VALUE_EDEFAULT", ";", "protected", "Column", "col", ";", "protected", "Constant", "cnst", ";", "protected", "Identifier", "ident", ";", "protected", "MetaSql", "meta", ";", "protected", "DatabaseTable", "dbtab", ";", "protected", "DatabaseColumn", "dbcol", ";", "protected", "SqlFragmentImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "SQL_FRAGMENT", ";", "}", "public", "String", "getValue", "(", ")", "{", "return", "value", ";", "}", "public", "void", "setValue", "(", "String", "newValue", ")", "{", "String", "oldValue", "=", "value", ";", "value", "=", "newValue", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "SQL_FRAGMENT__VALUE", ",", "oldValue", ",", "value", ")", ")", ";", "}", "public", "Column", "getCol", "(", ")", "{", "return", "col", ";", "}", "public", "NotificationChain", "basicSetCol", "(", "Column", "newCol", ",", "NotificationChain", "msgs", ")", "{", "Column", "oldCol", "=", "col", ";", "col", "=", "newCol", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "SQL_FRAGMENT__COL", ",", "oldCol", ",", "newCol", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setCol", "(", "Column", "newCol", ")", "{", "if", "(", "newCol", "!=", "col", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "col", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "col", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "SQL_FRAGMENT__COL", ",", "null", ",", "msgs", ")", ";", "if", "(", "newCol", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newCol", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "SQL_FRAGMENT__COL", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetCol", "(", "newCol", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "SQL_FRAGMENT__COL", ",", "newCol", ",", "newCol", ")", ")", ";", "}", "public", "Constant", "getCnst", "(", ")", "{", "return", "cnst", ";", "}", "public", "NotificationChain", "basicSetCnst", "(", "Constant", "newCnst", ",", "NotificationChain", "msgs", ")", "{", "Constant", "oldCnst", "=", "cnst", ";", "cnst", "=", "newCnst", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "SQL_FRAGMENT__CNST", ",", "oldCnst", ",", "newCnst", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setCnst", "(", "Constant", "newCnst", ")", "{", "if", "(", "newCnst", "!=", "cnst", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "cnst", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "cnst", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "SQL_FRAGMENT__CNST", ",", "null", ",", "msgs", ")", ";", "if", "(", "newCnst", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newCnst", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "SQL_FRAGMENT__CNST", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetCnst", "(", "newCnst", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "SQL_FRAGMENT__CNST", ",", "newCnst", ",", "newCnst", ")", ")", ";", "}", "public", "Identifier", "getIdent", "(", ")", "{", "return", "ident", ";", "}", "public", "NotificationChain", "basicSetIdent", "(", "Identifier", "newIdent", ",", "NotificationChain", "msgs", ")", "{", "Identifier", "oldIdent", "=", "ident", ";", "ident", "=", "newIdent", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "SQL_FRAGMENT__IDENT", ",", "oldIdent", ",", "newIdent", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setIdent", "(", "Identifier", "newIdent", ")", "{", "if", "(", "newIdent", "!=", "ident", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "ident", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "ident", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "SQL_FRAGMENT__IDENT", ",", "null", ",", "msgs", ")", ";", "if", "(", "newIdent", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newIdent", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "SQL_FRAGMENT__IDENT", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetIdent", "(", "newIdent", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "SQL_FRAGMENT__IDENT", ",", "newIdent", ",", "newIdent", ")", ")", ";", "}", "public", "MetaSql", "getMeta", "(", ")", "{", "return", "meta", ";", "}", "public", "NotificationChain", "basicSetMeta", "(", "MetaSql", "newMeta", ",", "NotificationChain", "msgs", ")", "{", "MetaSql", "oldMeta", "=", "meta", ";", "meta", "=", "newMeta", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "SQL_FRAGMENT__META", ",", "oldMeta", ",", "newMeta", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setMeta", "(", "MetaSql", "newMeta", ")", "{", "if", "(", "newMeta", "!=", "meta", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "meta", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "meta", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "SQL_FRAGMENT__META", ",", "null", ",", "msgs", ")", ";", "if", "(", "newMeta", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newMeta", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "SQL_FRAGMENT__META", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetMeta", "(", "newMeta", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "SQL_FRAGMENT__META", ",", "newMeta", ",", "newMeta", ")", ")", ";", "}", "public", "DatabaseTable", "getDbtab", "(", ")", "{", "return", "dbtab", ";", "}", "public", "NotificationChain", "basicSetDbtab", "(", "DatabaseTable", "newDbtab", ",", "NotificationChain", "msgs", ")", "{", "DatabaseTable", "oldDbtab", "=", "dbtab", ";", "dbtab", "=", "newDbtab", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "SQL_FRAGMENT__DBTAB", ",", "oldDbtab", ",", "newDbtab", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setDbtab", "(", "DatabaseTable", "newDbtab", ")", "{", "if", "(", "newDbtab", "!=", "dbtab", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "dbtab", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "dbtab", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "SQL_FRAGMENT__DBTAB", ",", "null", ",", "msgs", ")", ";", "if", "(", "newDbtab", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newDbtab", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "SQL_FRAGMENT__DBTAB", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetDbtab", "(", "newDbtab", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "SQL_FRAGMENT__DBTAB", ",", "newDbtab", ",", "newDbtab", ")", ")", ";", "}", "public", "DatabaseColumn", "getDbcol", "(", ")", "{", "return", "dbcol", ";", "}", "public", "NotificationChain", "basicSetDbcol", "(", "DatabaseColumn", "newDbcol", ",", "NotificationChain", "msgs", ")", "{", "DatabaseColumn", "oldDbcol", "=", "dbcol", ";", "dbcol", "=", "newDbcol", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "SQL_FRAGMENT__DBCOL", ",", "oldDbcol", ",", "newDbcol", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setDbcol", "(", "DatabaseColumn", "newDbcol", ")", "{", "if", "(", "newDbcol", "!=", "dbcol", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "dbcol", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "dbcol", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "SQL_FRAGMENT__DBCOL", ",", "null", ",", "msgs", ")", ";", "if", "(", "newDbcol", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newDbcol", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "SQL_FRAGMENT__DBCOL", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetDbcol", "(", "newDbcol", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "SQL_FRAGMENT__DBCOL", ",", "newDbcol", ",", "newDbcol", ")", ")", ";", "}", "@", "Override", "public", "NotificationChain", "eInverseRemove", "(", "InternalEObject", "otherEnd", ",", "int", "featureID", ",", "NotificationChain", "msgs", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__COL", ":", "return", "basicSetCol", "(", "null", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__CNST", ":", "return", "basicSetCnst", "(", "null", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__IDENT", ":", "return", "basicSetIdent", "(", "null", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__META", ":", "return", "basicSetMeta", "(", "null", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__DBTAB", ":", "return", "basicSetDbtab", "(", "null", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__DBCOL", ":", "return", "basicSetDbcol", "(", "null", ",", "msgs", ")", ";", "}", "return", "super", ".", "eInverseRemove", "(", "otherEnd", ",", "featureID", ",", "msgs", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__VALUE", ":", "return", "getValue", "(", ")", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__COL", ":", "return", "getCol", "(", ")", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__CNST", ":", "return", "getCnst", "(", ")", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__IDENT", ":", "return", "getIdent", "(", ")", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__META", ":", "return", "getMeta", "(", ")", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__DBTAB", ":", "return", "getDbtab", "(", ")", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__DBCOL", ":", "return", "getDbcol", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__VALUE", ":", "setValue", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__COL", ":", "setCol", "(", "(", "Column", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__CNST", ":", "setCnst", "(", "(", "Constant", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__IDENT", ":", "setIdent", "(", "(", "Identifier", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__META", ":", "setMeta", "(", "(", "MetaSql", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__DBTAB", ":", "setDbtab", "(", "(", "DatabaseTable", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__DBCOL", ":", "setDbcol", "(", "(", "DatabaseColumn", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__VALUE", ":", "setValue", "(", "VALUE_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__COL", ":", "setCol", "(", "(", "Column", ")", "null", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__CNST", ":", "setCnst", "(", "(", "Constant", ")", "null", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__IDENT", ":", "setIdent", "(", "(", "Identifier", ")", "null", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__META", ":", "setMeta", "(", "(", "MetaSql", ")", "null", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__DBTAB", ":", "setDbtab", "(", "(", "DatabaseTable", ")", "null", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__DBCOL", ":", "setDbcol", "(", "(", "DatabaseColumn", ")", "null", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__VALUE", ":", "return", "VALUE_EDEFAULT", "==", "null", "?", "value", "!=", "null", ":", "!", "VALUE_EDEFAULT", ".", "equals", "(", "value", ")", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__COL", ":", "return", "col", "!=", "null", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__CNST", ":", "return", "cnst", "!=", "null", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__IDENT", ":", "return", "ident", "!=", "null", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__META", ":", "return", "meta", "!=", "null", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__DBTAB", ":", "return", "dbtab", "!=", "null", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT__DBCOL", ":", "return", "dbcol", "!=", "null", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "eIsProxy", "(", ")", ")", "return", "super", ".", "toString", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "super", ".", "toString", "(", ")", ")", ";", "result", ".", "append", "(", "\"", "(value:", "\"", ")", ";", "result", ".", "append", "(", "value", ")", ";", "result", ".", "append", "(", "')'", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
231
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "java", ".", "util", ".", "Collection", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "NotificationChain", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "InternalEObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "EObjectContainmentEList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "InternalEList", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSqlFragment", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "IfSqlImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "IfSql", "{", "protected", "EList", "<", "IfSqlFragment", ">", "sqls", ";", "protected", "IfSqlImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "IF_SQL", ";", "}", "public", "EList", "<", "IfSqlFragment", ">", "getSqls", "(", ")", "{", "if", "(", "sqls", "==", "null", ")", "{", "sqls", "=", "new", "EObjectContainmentEList", "<", "IfSqlFragment", ">", "(", "IfSqlFragment", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "IF_SQL__SQLS", ")", ";", "}", "return", "sqls", ";", "}", "@", "Override", "public", "NotificationChain", "eInverseRemove", "(", "InternalEObject", "otherEnd", ",", "int", "featureID", ",", "NotificationChain", "msgs", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_SQL__SQLS", ":", "return", "(", "(", "InternalEList", "<", "?", ">", ")", "getSqls", "(", ")", ")", ".", "basicRemove", "(", "otherEnd", ",", "msgs", ")", ";", "}", "return", "super", ".", "eInverseRemove", "(", "otherEnd", ",", "featureID", ",", "msgs", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_SQL__SQLS", ":", "return", "getSqls", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_SQL__SQLS", ":", "getSqls", "(", ")", ".", "clear", "(", ")", ";", "getSqls", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "IfSqlFragment", ">", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_SQL__SQLS", ":", "getSqls", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_SQL__SQLS", ":", "return", "sqls", "!=", "null", "&&", "!", "sqls", ".", "isEmpty", "(", ")", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "}", "</s>" ]
232
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "PojoDefinition", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "PojoDefinitionImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "PojoDefinition", "{", "protected", "static", "final", "String", "NAME_EDEFAULT", "=", "null", ";", "protected", "String", "name", "=", "NAME_EDEFAULT", ";", "protected", "static", "final", "String", "CLASS_EDEFAULT", "=", "null", ";", "protected", "String", "class_", "=", "CLASS_EDEFAULT", ";", "protected", "PojoDefinitionImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "POJO_DEFINITION", ";", "}", "public", "String", "getName", "(", ")", "{", "return", "name", ";", "}", "public", "void", "setName", "(", "String", "newName", ")", "{", "String", "oldName", "=", "name", ";", "name", "=", "newName", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "POJO_DEFINITION__NAME", ",", "oldName", ",", "name", ")", ")", ";", "}", "public", "String", "getClass_", "(", ")", "{", "return", "class_", ";", "}", "public", "void", "setClass", "(", "String", "newClass", ")", "{", "String", "oldClass", "=", "class_", ";", "class_", "=", "newClass", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "POJO_DEFINITION__CLASS", ",", "oldClass", ",", "class_", ")", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "POJO_DEFINITION__NAME", ":", "return", "getName", "(", ")", ";", "case", "ProcessorDslPackage", ".", "POJO_DEFINITION__CLASS", ":", "return", "getClass_", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "POJO_DEFINITION__NAME", ":", "setName", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "POJO_DEFINITION__CLASS", ":", "setClass", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "POJO_DEFINITION__NAME", ":", "setName", "(", "NAME_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "POJO_DEFINITION__CLASS", ":", "setClass", "(", "CLASS_EDEFAULT", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "POJO_DEFINITION__NAME", ":", "return", "NAME_EDEFAULT", "==", "null", "?", "name", "!=", "null", ":", "!", "NAME_EDEFAULT", ".", "equals", "(", "name", ")", ";", "case", "ProcessorDslPackage", ".", "POJO_DEFINITION__CLASS", ":", "return", "CLASS_EDEFAULT", "==", "null", "?", "class_", "!=", "null", ":", "!", "CLASS_EDEFAULT", ".", "equals", "(", "class_", ")", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "eIsProxy", "(", ")", ")", "return", "super", ".", "toString", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "super", ".", "toString", "(", ")", ")", ";", "result", ".", "append", "(", "\"", "(name:", "\"", ")", ";", "result", ".", "append", "(", "name", ")", ";", "result", ".", "append", "(", "\",", "class:", "\"", ")", ";", "result", ".", "append", "(", "class_", ")", ";", "result", ".", "append", "(", "')'", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
233
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "DatabaseColumn", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "DatabaseColumnImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "DatabaseColumn", "{", "protected", "static", "final", "String", "NAME_EDEFAULT", "=", "null", ";", "protected", "String", "name", "=", "NAME_EDEFAULT", ";", "protected", "DatabaseColumnImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "DATABASE_COLUMN", ";", "}", "public", "String", "getName", "(", ")", "{", "return", "name", ";", "}", "public", "void", "setName", "(", "String", "newName", ")", "{", "String", "oldName", "=", "name", ";", "name", "=", "newName", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "DATABASE_COLUMN__NAME", ",", "oldName", ",", "name", ")", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "DATABASE_COLUMN__NAME", ":", "return", "getName", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "DATABASE_COLUMN__NAME", ":", "setName", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "DATABASE_COLUMN__NAME", ":", "setName", "(", "NAME_EDEFAULT", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "DATABASE_COLUMN__NAME", ":", "return", "NAME_EDEFAULT", "==", "null", "?", "name", "!=", "null", ":", "!", "NAME_EDEFAULT", ".", "equals", "(", "name", ")", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "eIsProxy", "(", ")", ")", "return", "super", ".", "toString", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "super", ".", "toString", "(", ")", ")", ";", "result", ".", "append", "(", "\"", "(name:", "\"", ")", ";", "result", ".", "append", "(", "name", ")", ";", "result", ".", "append", "(", "')'", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
234
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "java", ".", "util", ".", "Collection", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "NotificationChain", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "InternalEObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "EObjectContainmentEList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "InternalEList", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Mapping", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingItem", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "MappingImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "Mapping", "{", "protected", "EList", "<", "MappingItem", ">", "mappingItems", ";", "protected", "MappingImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "MAPPING", ";", "}", "public", "EList", "<", "MappingItem", ">", "getMappingItems", "(", ")", "{", "if", "(", "mappingItems", "==", "null", ")", "{", "mappingItems", "=", "new", "EObjectContainmentEList", "<", "MappingItem", ">", "(", "MappingItem", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "MAPPING__MAPPING_ITEMS", ")", ";", "}", "return", "mappingItems", ";", "}", "@", "Override", "public", "NotificationChain", "eInverseRemove", "(", "InternalEObject", "otherEnd", ",", "int", "featureID", ",", "NotificationChain", "msgs", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING__MAPPING_ITEMS", ":", "return", "(", "(", "InternalEList", "<", "?", ">", ")", "getMappingItems", "(", ")", ")", ".", "basicRemove", "(", "otherEnd", ",", "msgs", ")", ";", "}", "return", "super", ".", "eInverseRemove", "(", "otherEnd", ",", "featureID", ",", "msgs", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING__MAPPING_ITEMS", ":", "return", "getMappingItems", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING__MAPPING_ITEMS", ":", "getMappingItems", "(", ")", ".", "clear", "(", ")", ";", "getMappingItems", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "MappingItem", ">", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING__MAPPING_ITEMS", ":", "getMappingItems", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING__MAPPING_ITEMS", ":", "return", "mappingItems", "!=", "null", "&&", "!", "mappingItems", ".", "isEmpty", "(", ")", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "}", "</s>" ]
235
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "java", ".", "util", ".", "Collection", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "NotificationChain", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "InternalEObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "EObjectContainmentEList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "InternalEList", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "OrdSql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "OrdSql2", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "OrdSqlImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "OrdSql", "{", "protected", "EList", "<", "OrdSql2", ">", "sqls", ";", "protected", "OrdSqlImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "ORD_SQL", ";", "}", "public", "EList", "<", "OrdSql2", ">", "getSqls", "(", ")", "{", "if", "(", "sqls", "==", "null", ")", "{", "sqls", "=", "new", "EObjectContainmentEList", "<", "OrdSql2", ">", "(", "OrdSql2", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "ORD_SQL__SQLS", ")", ";", "}", "return", "sqls", ";", "}", "@", "Override", "public", "NotificationChain", "eInverseRemove", "(", "InternalEObject", "otherEnd", ",", "int", "featureID", ",", "NotificationChain", "msgs", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "ORD_SQL__SQLS", ":", "return", "(", "(", "InternalEList", "<", "?", ">", ")", "getSqls", "(", ")", ")", ".", "basicRemove", "(", "otherEnd", ",", "msgs", ")", ";", "}", "return", "super", ".", "eInverseRemove", "(", "otherEnd", ",", "featureID", ",", "msgs", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "ORD_SQL__SQLS", ":", "return", "getSqls", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "ORD_SQL__SQLS", ":", "getSqls", "(", ")", ".", "clear", "(", ")", ";", "getSqls", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "OrdSql2", ">", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "ORD_SQL__SQLS", ":", "getSqls", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "ORD_SQL__SQLS", ":", "return", "sqls", "!=", "null", "&&", "!", "sqls", ".", "isEmpty", "(", ")", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "}", "</s>" ]
236
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "java", ".", "util", ".", "Collection", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "EDataTypeEList", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Identifier", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "IdentifierImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "Identifier", "{", "protected", "static", "final", "String", "MODE_EDEFAULT", "=", "null", ";", "protected", "String", "mode", "=", "MODE_EDEFAULT", ";", "protected", "static", "final", "String", "CASE_EDEFAULT", "=", "null", ";", "protected", "String", "case_", "=", "CASE_EDEFAULT", ";", "protected", "static", "final", "String", "NAME_EDEFAULT", "=", "null", ";", "protected", "String", "name", "=", "NAME_EDEFAULT", ";", "protected", "static", "final", "String", "TYPE_EDEFAULT", "=", "null", ";", "protected", "String", "type", "=", "TYPE_EDEFAULT", ";", "protected", "EList", "<", "String", ">", "vals", ";", "protected", "IdentifierImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "IDENTIFIER", ";", "}", "public", "String", "getMode", "(", ")", "{", "return", "mode", ";", "}", "public", "void", "setMode", "(", "String", "newMode", ")", "{", "String", "oldMode", "=", "mode", ";", "mode", "=", "newMode", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IDENTIFIER__MODE", ",", "oldMode", ",", "mode", ")", ")", ";", "}", "public", "String", "getCase", "(", ")", "{", "return", "case_", ";", "}", "public", "void", "setCase", "(", "String", "newCase", ")", "{", "String", "oldCase", "=", "case_", ";", "case_", "=", "newCase", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IDENTIFIER__CASE", ",", "oldCase", ",", "case_", ")", ")", ";", "}", "public", "String", "getName", "(", ")", "{", "return", "name", ";", "}", "public", "void", "setName", "(", "String", "newName", ")", "{", "String", "oldName", "=", "name", ";", "name", "=", "newName", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IDENTIFIER__NAME", ",", "oldName", ",", "name", ")", ")", ";", "}", "public", "String", "getType", "(", ")", "{", "return", "type", ";", "}", "public", "void", "setType", "(", "String", "newType", ")", "{", "String", "oldType", "=", "type", ";", "type", "=", "newType", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IDENTIFIER__TYPE", ",", "oldType", ",", "type", ")", ")", ";", "}", "public", "EList", "<", "String", ">", "getVals", "(", ")", "{", "if", "(", "vals", "==", "null", ")", "{", "vals", "=", "new", "EDataTypeEList", "<", "String", ">", "(", "String", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "IDENTIFIER__VALS", ")", ";", "}", "return", "vals", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IDENTIFIER__MODE", ":", "return", "getMode", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IDENTIFIER__CASE", ":", "return", "getCase", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IDENTIFIER__NAME", ":", "return", "getName", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IDENTIFIER__TYPE", ":", "return", "getType", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IDENTIFIER__VALS", ":", "return", "getVals", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IDENTIFIER__MODE", ":", "setMode", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IDENTIFIER__CASE", ":", "setCase", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IDENTIFIER__NAME", ":", "setName", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IDENTIFIER__TYPE", ":", "setType", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IDENTIFIER__VALS", ":", "getVals", "(", ")", ".", "clear", "(", ")", ";", "getVals", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "String", ">", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IDENTIFIER__MODE", ":", "setMode", "(", "MODE_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IDENTIFIER__CASE", ":", "setCase", "(", "CASE_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IDENTIFIER__NAME", ":", "setName", "(", "NAME_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IDENTIFIER__TYPE", ":", "setType", "(", "TYPE_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IDENTIFIER__VALS", ":", "getVals", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IDENTIFIER__MODE", ":", "return", "MODE_EDEFAULT", "==", "null", "?", "mode", "!=", "null", ":", "!", "MODE_EDEFAULT", ".", "equals", "(", "mode", ")", ";", "case", "ProcessorDslPackage", ".", "IDENTIFIER__CASE", ":", "return", "CASE_EDEFAULT", "==", "null", "?", "case_", "!=", "null", ":", "!", "CASE_EDEFAULT", ".", "equals", "(", "case_", ")", ";", "case", "ProcessorDslPackage", ".", "IDENTIFIER__NAME", ":", "return", "NAME_EDEFAULT", "==", "null", "?", "name", "!=", "null", ":", "!", "NAME_EDEFAULT", ".", "equals", "(", "name", ")", ";", "case", "ProcessorDslPackage", ".", "IDENTIFIER__TYPE", ":", "return", "TYPE_EDEFAULT", "==", "null", "?", "type", "!=", "null", ":", "!", "TYPE_EDEFAULT", ".", "equals", "(", "type", ")", ";", "case", "ProcessorDslPackage", ".", "IDENTIFIER__VALS", ":", "return", "vals", "!=", "null", "&&", "!", "vals", ".", "isEmpty", "(", ")", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "eIsProxy", "(", ")", ")", "return", "super", ".", "toString", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "super", ".", "toString", "(", ")", ")", ";", "result", ".", "append", "(", "\"", "(mode:", "\"", ")", ";", "result", ".", "append", "(", "mode", ")", ";", "result", ".", "append", "(", "\",", "case:", "\"", ")", ";", "result", ".", "append", "(", "case_", ")", ";", "result", ".", "append", "(", "\",", "name:", "\"", ")", ";", "result", ".", "append", "(", "name", ")", ";", "result", ".", "append", "(", "\",", "type:", "\"", ")", ";", "result", ".", "append", "(", "type", ")", ";", "result", ".", "append", "(", "\",", "vals:", "\"", ")", ";", "result", ".", "append", "(", "vals", ")", ";", "result", ".", "append", "(", "')'", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
237
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EAttribute", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EPackage", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EReference", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "EPackageImpl", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Artifacts", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Column", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ColumnUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Constant", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ConstantUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "DatabaseColumn", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "DatabaseTable", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Identifier", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IdentifierUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfMetaSql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSqlBool", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSqlCond", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSqlFragment", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Mapping", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingColumn", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingItem", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingRule", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MetaSql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MetaStatement", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "OptionalFeature", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "OrdSql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "OrdSql2", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "PojoDefinition", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "PojoUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslFactory", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Property", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Sql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "SqlFragment", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "TableDefinition", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "TableUsage", ";", "public", "class", "ProcessorDslPackageImpl", "extends", "EPackageImpl", "implements", "ProcessorDslPackage", "{", "private", "EClass", "artifactsEClass", "=", "null", ";", "private", "EClass", "propertyEClass", "=", "null", ";", "private", "EClass", "pojoDefinitionEClass", "=", "null", ";", "private", "EClass", "pojoUsageEClass", "=", "null", ";", "private", "EClass", "columnUsageEClass", "=", "null", ";", "private", "EClass", "identifierUsageEClass", "=", "null", ";", "private", "EClass", "constantUsageEClass", "=", "null", ";", "private", "EClass", "mappingUsageEClass", "=", "null", ";", "private", "EClass", "tableDefinitionEClass", "=", "null", ";", "private", "EClass", "tableUsageEClass", "=", "null", ";", "private", "EClass", "metaStatementEClass", "=", "null", ";", "private", "EClass", "sqlEClass", "=", "null", ";", "private", "EClass", "sqlFragmentEClass", "=", "null", ";", "private", "EClass", "metaSqlEClass", "=", "null", ";", "private", "EClass", "ifSqlEClass", "=", "null", ";", "private", "EClass", "ifSqlFragmentEClass", "=", "null", ";", "private", "EClass", "ifMetaSqlEClass", "=", "null", ";", "private", "EClass", "ifSqlCondEClass", "=", "null", ";", "private", "EClass", "ifSqlBoolEClass", "=", "null", ";", "private", "EClass", "ordSqlEClass", "=", "null", ";", "private", "EClass", "ordSql2EClass", "=", "null", ";", "private", "EClass", "columnEClass", "=", "null", ";", "private", "EClass", "constantEClass", "=", "null", ";", "private", "EClass", "identifierEClass", "=", "null", ";", "private", "EClass", "databaseColumnEClass", "=", "null", ";", "private", "EClass", "databaseTableEClass", "=", "null", ";", "private", "EClass", "mappingRuleEClass", "=", "null", ";", "private", "EClass", "mappingEClass", "=", "null", ";", "private", "EClass", "mappingItemEClass", "=", "null", ";", "private", "EClass", "mappingColumnEClass", "=", "null", ";", "private", "EClass", "optionalFeatureEClass", "=", "null", ";", "private", "ProcessorDslPackageImpl", "(", ")", "{", "super", "(", "eNS_URI", ",", "ProcessorDslFactory", ".", "eINSTANCE", ")", ";", "}", "private", "static", "boolean", "isInited", "=", "false", ";", "public", "static", "ProcessorDslPackage", "init", "(", ")", "{", "if", "(", "isInited", ")", "return", "(", "ProcessorDslPackage", ")", "EPackage", ".", "Registry", ".", "INSTANCE", ".", "getEPackage", "(", "ProcessorDslPackage", ".", "eNS_URI", ")", ";", "ProcessorDslPackageImpl", "theProcessorDslPackage", "=", "(", "ProcessorDslPackageImpl", ")", "(", "EPackage", ".", "Registry", ".", "INSTANCE", ".", "get", "(", "eNS_URI", ")", "instanceof", "ProcessorDslPackageImpl", "?", "EPackage", ".", "Registry", ".", "INSTANCE", ".", "get", "(", "eNS_URI", ")", ":", "new", "ProcessorDslPackageImpl", "(", ")", ")", ";", "isInited", "=", "true", ";", "theProcessorDslPackage", ".", "createPackageContents", "(", ")", ";", "theProcessorDslPackage", ".", "initializePackageContents", "(", ")", ";", "theProcessorDslPackage", ".", "freeze", "(", ")", ";", "EPackage", ".", "Registry", ".", "INSTANCE", ".", "put", "(", "ProcessorDslPackage", ".", "eNS_URI", ",", "theProcessorDslPackage", ")", ";", "return", "theProcessorDslPackage", ";", "}", "public", "EClass", "getArtifacts", "(", ")", "{", "return", "artifactsEClass", ";", "}", "public", "EReference", "getArtifacts_Features", "(", ")", "{", "return", "(", "EReference", ")", "artifactsEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EReference", "getArtifacts_Statements", "(", ")", "{", "return", "(", "EReference", ")", "artifactsEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "1", ")", ";", "}", "public", "EReference", "getArtifacts_Mappings", "(", ")", "{", "return", "(", "EReference", ")", "artifactsEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "2", ")", ";", "}", "public", "EReference", "getArtifacts_Pojos", "(", ")", "{", "return", "(", "EReference", ")", "artifactsEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "3", ")", ";", "}", "public", "EReference", "getArtifacts_Usages", "(", ")", "{", "return", "(", "EReference", ")", "artifactsEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "4", ")", ";", "}", "public", "EReference", "getArtifacts_Properties", "(", ")", "{", "return", "(", "EReference", ")", "artifactsEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "5", ")", ";", "}", "public", "EReference", "getArtifacts_Tables", "(", ")", "{", "return", "(", "EReference", ")", "artifactsEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "6", ")", ";", "}", "public", "EReference", "getArtifacts_TableUsages", "(", ")", "{", "return", "(", "EReference", ")", "artifactsEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "7", ")", ";", "}", "public", "EClass", "getProperty", "(", ")", "{", "return", "propertyEClass", ";", "}", "public", "EAttribute", "getProperty_Name", "(", ")", "{", "return", "(", "EAttribute", ")", "propertyEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EAttribute", "getProperty_DoResolvePojo", "(", ")", "{", "return", "(", "EAttribute", ")", "propertyEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "1", ")", ";", "}", "public", "EAttribute", "getProperty_DoResolveDb", "(", ")", "{", "return", "(", "EAttribute", ")", "propertyEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "2", ")", ";", "}", "public", "EAttribute", "getProperty_DbUrl", "(", ")", "{", "return", "(", "EAttribute", ")", "propertyEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "3", ")", ";", "}", "public", "EAttribute", "getProperty_DbUsername", "(", ")", "{", "return", "(", "EAttribute", ")", "propertyEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "4", ")", ";", "}", "public", "EAttribute", "getProperty_DbPassword", "(", ")", "{", "return", "(", "EAttribute", ")", "propertyEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "5", ")", ";", "}", "public", "EAttribute", "getProperty_DbSchema", "(", ")", "{", "return", "(", "EAttribute", ")", "propertyEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "6", ")", ";", "}", "public", "EAttribute", "getProperty_DbDriver", "(", ")", "{", "return", "(", "EAttribute", ")", "propertyEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "7", ")", ";", "}", "public", "EClass", "getPojoDefinition", "(", ")", "{", "return", "pojoDefinitionEClass", ";", "}", "public", "EAttribute", "getPojoDefinition_Name", "(", ")", "{", "return", "(", "EAttribute", ")", "pojoDefinitionEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EAttribute", "getPojoDefinition_Class", "(", ")", "{", "return", "(", "EAttribute", ")", "pojoDefinitionEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "1", ")", ";", "}", "public", "EClass", "getPojoUsage", "(", ")", "{", "return", "pojoUsageEClass", ";", "}", "public", "EReference", "getPojoUsage_Pojo", "(", ")", "{", "return", "(", "EReference", ")", "pojoUsageEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EClass", "getColumnUsage", "(", ")", "{", "return", "columnUsageEClass", ";", "}", "public", "EReference", "getColumnUsage_Statement", "(", ")", "{", "return", "(", "EReference", ")", "columnUsageEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EClass", "getIdentifierUsage", "(", ")", "{", "return", "identifierUsageEClass", ";", "}", "public", "EReference", "getIdentifierUsage_Statement", "(", ")", "{", "return", "(", "EReference", ")", "identifierUsageEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EClass", "getConstantUsage", "(", ")", "{", "return", "constantUsageEClass", ";", "}", "public", "EReference", "getConstantUsage_Statement", "(", ")", "{", "return", "(", "EReference", ")", "constantUsageEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EClass", "getMappingUsage", "(", ")", "{", "return", "mappingUsageEClass", ";", "}", "public", "EReference", "getMappingUsage_Statement", "(", ")", "{", "return", "(", "EReference", ")", "mappingUsageEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EClass", "getTableDefinition", "(", ")", "{", "return", "tableDefinitionEClass", ";", "}", "public", "EAttribute", "getTableDefinition_Name", "(", ")", "{", "return", "(", "EAttribute", ")", "tableDefinitionEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EAttribute", "getTableDefinition_Table", "(", ")", "{", "return", "(", "EAttribute", ")", "tableDefinitionEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "1", ")", ";", "}", "public", "EClass", "getTableUsage", "(", ")", "{", "return", "tableUsageEClass", ";", "}", "public", "EReference", "getTableUsage_Statement", "(", ")", "{", "return", "(", "EReference", ")", "tableUsageEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EReference", "getTableUsage_Table", "(", ")", "{", "return", "(", "EReference", ")", "tableUsageEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "1", ")", ";", "}", "public", "EAttribute", "getTableUsage_Prefix", "(", ")", "{", "return", "(", "EAttribute", ")", "tableUsageEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "2", ")", ";", "}", "public", "EClass", "getMetaStatement", "(", ")", "{", "return", "metaStatementEClass", ";", "}", "public", "EAttribute", "getMetaStatement_Name", "(", ")", "{", "return", "(", "EAttribute", ")", "metaStatementEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EAttribute", "getMetaStatement_Type", "(", ")", "{", "return", "(", "EAttribute", ")", "metaStatementEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "1", ")", ";", "}", "public", "EAttribute", "getMetaStatement_Filters", "(", ")", "{", "return", "(", "EAttribute", ")", "metaStatementEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "2", ")", ";", "}", "public", "EReference", "getMetaStatement_Statement", "(", ")", "{", "return", "(", "EReference", ")", "metaStatementEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "3", ")", ";", "}", "public", "EClass", "getSql", "(", ")", "{", "return", "sqlEClass", ";", "}", "public", "EReference", "getSql_Sqls", "(", ")", "{", "return", "(", "EReference", ")", "sqlEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EClass", "getSqlFragment", "(", ")", "{", "return", "sqlFragmentEClass", ";", "}", "public", "EAttribute", "getSqlFragment_Value", "(", ")", "{", "return", "(", "EAttribute", ")", "sqlFragmentEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EReference", "getSqlFragment_Col", "(", ")", "{", "return", "(", "EReference", ")", "sqlFragmentEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "1", ")", ";", "}", "public", "EReference", "getSqlFragment_Cnst", "(", ")", "{", "return", "(", "EReference", ")", "sqlFragmentEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "2", ")", ";", "}", "public", "EReference", "getSqlFragment_Ident", "(", ")", "{", "return", "(", "EReference", ")", "sqlFragmentEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "3", ")", ";", "}", "public", "EReference", "getSqlFragment_Meta", "(", ")", "{", "return", "(", "EReference", ")", "sqlFragmentEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "4", ")", ";", "}", "public", "EReference", "getSqlFragment_Dbtab", "(", ")", "{", "return", "(", "EReference", ")", "sqlFragmentEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "5", ")", ";", "}", "public", "EReference", "getSqlFragment_Dbcol", "(", ")", "{", "return", "(", "EReference", ")", "sqlFragmentEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "6", ")", ";", "}", "public", "EClass", "getMetaSql", "(", ")", "{", "return", "metaSqlEClass", ";", "}", "public", "EReference", "getMetaSql_Ifs", "(", ")", "{", "return", "(", "EReference", ")", "metaSqlEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EAttribute", "getMetaSql_Type", "(", ")", "{", "return", "(", "EAttribute", ")", "metaSqlEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "1", ")", ";", "}", "public", "EReference", "getMetaSql_Cond", "(", ")", "{", "return", "(", "EReference", ")", "metaSqlEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "2", ")", ";", "}", "public", "EAttribute", "getMetaSql_Ftype", "(", ")", "{", "return", "(", "EAttribute", ")", "metaSqlEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "3", ")", ";", "}", "public", "EReference", "getMetaSql_Ord", "(", ")", "{", "return", "(", "EReference", ")", "metaSqlEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "4", ")", ";", "}", "public", "EClass", "getIfSql", "(", ")", "{", "return", "ifSqlEClass", ";", "}", "public", "EReference", "getIfSql_Sqls", "(", ")", "{", "return", "(", "EReference", ")", "ifSqlEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EClass", "getIfSqlFragment", "(", ")", "{", "return", "ifSqlFragmentEClass", ";", "}", "public", "EAttribute", "getIfSqlFragment_Value", "(", ")", "{", "return", "(", "EAttribute", ")", "ifSqlFragmentEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EReference", "getIfSqlFragment_Col", "(", ")", "{", "return", "(", "EReference", ")", "ifSqlFragmentEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "1", ")", ";", "}", "public", "EReference", "getIfSqlFragment_Cnst", "(", ")", "{", "return", "(", "EReference", ")", "ifSqlFragmentEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "2", ")", ";", "}", "public", "EReference", "getIfSqlFragment_Ident", "(", ")", "{", "return", "(", "EReference", ")", "ifSqlFragmentEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "3", ")", ";", "}", "public", "EReference", "getIfSqlFragment_Dbtab", "(", ")", "{", "return", "(", "EReference", ")", "ifSqlFragmentEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "4", ")", ";", "}", "public", "EReference", "getIfSqlFragment_Dbcol", "(", ")", "{", "return", "(", "EReference", ")", "ifSqlFragmentEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "5", ")", ";", "}", "public", "EReference", "getIfSqlFragment_Meta", "(", ")", "{", "return", "(", "EReference", ")", "ifSqlFragmentEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "6", ")", ";", "}", "public", "EClass", "getIfMetaSql", "(", ")", "{", "return", "ifMetaSqlEClass", ";", "}", "public", "EReference", "getIfMetaSql_Ifs", "(", ")", "{", "return", "(", "EReference", ")", "ifMetaSqlEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EAttribute", "getIfMetaSql_Type", "(", ")", "{", "return", "(", "EAttribute", ")", "ifMetaSqlEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "1", ")", ";", "}", "public", "EReference", "getIfMetaSql_Cond", "(", ")", "{", "return", "(", "EReference", ")", "ifMetaSqlEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "2", ")", ";", "}", "public", "EClass", "getIfSqlCond", "(", ")", "{", "return", "ifSqlCondEClass", ";", "}", "public", "EReference", "getIfSqlCond_Bool1", "(", ")", "{", "return", "(", "EReference", ")", "ifSqlCondEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EAttribute", "getIfSqlCond_Oper", "(", ")", "{", "return", "(", "EAttribute", ")", "ifSqlCondEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "1", ")", ";", "}", "public", "EReference", "getIfSqlCond_Bool2", "(", ")", "{", "return", "(", "EReference", ")", "ifSqlCondEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "2", ")", ";", "}", "public", "EClass", "getIfSqlBool", "(", ")", "{", "return", "ifSqlBoolEClass", ";", "}", "public", "EAttribute", "getIfSqlBool_Not", "(", ")", "{", "return", "(", "EAttribute", ")", "ifSqlBoolEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EReference", "getIfSqlBool_Cnst", "(", ")", "{", "return", "(", "EReference", ")", "ifSqlBoolEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "1", ")", ";", "}", "public", "EReference", "getIfSqlBool_Ident", "(", ")", "{", "return", "(", "EReference", ")", "ifSqlBoolEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "2", ")", ";", "}", "public", "EReference", "getIfSqlBool_Cond", "(", ")", "{", "return", "(", "EReference", ")", "ifSqlBoolEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "3", ")", ";", "}", "public", "EClass", "getOrdSql", "(", ")", "{", "return", "ordSqlEClass", ";", "}", "public", "EReference", "getOrdSql_Sqls", "(", ")", "{", "return", "(", "EReference", ")", "ordSqlEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EClass", "getOrdSql2", "(", ")", "{", "return", "ordSql2EClass", ";", "}", "public", "EAttribute", "getOrdSql2_Value", "(", ")", "{", "return", "(", "EAttribute", ")", "ordSql2EClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EReference", "getOrdSql2_Cnst", "(", ")", "{", "return", "(", "EReference", ")", "ordSql2EClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "1", ")", ";", "}", "public", "EReference", "getOrdSql2_Ident", "(", ")", "{", "return", "(", "EReference", ")", "ordSql2EClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "2", ")", ";", "}", "public", "EReference", "getOrdSql2_Dbcol", "(", ")", "{", "return", "(", "EReference", ")", "ordSql2EClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "3", ")", ";", "}", "public", "EClass", "getColumn", "(", ")", "{", "return", "columnEClass", ";", "}", "public", "EAttribute", "getColumn_Name", "(", ")", "{", "return", "(", "EAttribute", ")", "columnEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EAttribute", "getColumn_Type", "(", ")", "{", "return", "(", "EAttribute", ")", "columnEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "1", ")", ";", "}", "public", "EAttribute", "getColumn_Vals", "(", ")", "{", "return", "(", "EAttribute", ")", "columnEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "2", ")", ";", "}", "public", "EClass", "getConstant", "(", ")", "{", "return", "constantEClass", ";", "}", "public", "EAttribute", "getConstant_Case", "(", ")", "{", "return", "(", "EAttribute", ")", "constantEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EAttribute", "getConstant_Name", "(", ")", "{", "return", "(", "EAttribute", ")", "constantEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "1", ")", ";", "}", "public", "EAttribute", "getConstant_Type", "(", ")", "{", "return", "(", "EAttribute", ")", "constantEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "2", ")", ";", "}", "public", "EAttribute", "getConstant_Vals", "(", ")", "{", "return", "(", "EAttribute", ")", "constantEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "3", ")", ";", "}", "public", "EClass", "getIdentifier", "(", ")", "{", "return", "identifierEClass", ";", "}", "public", "EAttribute", "getIdentifier_Mode", "(", ")", "{", "return", "(", "EAttribute", ")", "identifierEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EAttribute", "getIdentifier_Case", "(", ")", "{", "return", "(", "EAttribute", ")", "identifierEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "1", ")", ";", "}", "public", "EAttribute", "getIdentifier_Name", "(", ")", "{", "return", "(", "EAttribute", ")", "identifierEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "2", ")", ";", "}", "public", "EAttribute", "getIdentifier_Type", "(", ")", "{", "return", "(", "EAttribute", ")", "identifierEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "3", ")", ";", "}", "public", "EAttribute", "getIdentifier_Vals", "(", ")", "{", "return", "(", "EAttribute", ")", "identifierEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "4", ")", ";", "}", "public", "EClass", "getDatabaseColumn", "(", ")", "{", "return", "databaseColumnEClass", ";", "}", "public", "EAttribute", "getDatabaseColumn_Name", "(", ")", "{", "return", "(", "EAttribute", ")", "databaseColumnEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EClass", "getDatabaseTable", "(", ")", "{", "return", "databaseTableEClass", ";", "}", "public", "EAttribute", "getDatabaseTable_Name", "(", ")", "{", "return", "(", "EAttribute", ")", "databaseTableEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EClass", "getMappingRule", "(", ")", "{", "return", "mappingRuleEClass", ";", "}", "public", "EAttribute", "getMappingRule_Name", "(", ")", "{", "return", "(", "EAttribute", ")", "mappingRuleEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EAttribute", "getMappingRule_Type", "(", ")", "{", "return", "(", "EAttribute", ")", "mappingRuleEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "1", ")", ";", "}", "public", "EAttribute", "getMappingRule_Filters", "(", ")", "{", "return", "(", "EAttribute", ")", "mappingRuleEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "2", ")", ";", "}", "public", "EReference", "getMappingRule_Mapping", "(", ")", "{", "return", "(", "EReference", ")", "mappingRuleEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "3", ")", ";", "}", "public", "EClass", "getMapping", "(", ")", "{", "return", "mappingEClass", ";", "}", "public", "EReference", "getMapping_MappingItems", "(", ")", "{", "return", "(", "EReference", ")", "mappingEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EClass", "getMappingItem", "(", ")", "{", "return", "mappingItemEClass", ";", "}", "public", "EAttribute", "getMappingItem_Col", "(", ")", "{", "return", "(", "EAttribute", ")", "mappingItemEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EAttribute", "getMappingItem_Type", "(", ")", "{", "return", "(", "EAttribute", ")", "mappingItemEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "1", ")", ";", "}", "public", "EReference", "getMappingItem_Attr", "(", ")", "{", "return", "(", "EReference", ")", "mappingItemEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "2", ")", ";", "}", "public", "EClass", "getMappingColumn", "(", ")", "{", "return", "mappingColumnEClass", ";", "}", "public", "EAttribute", "getMappingColumn_Name", "(", ")", "{", "return", "(", "EAttribute", ")", "mappingColumnEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EAttribute", "getMappingColumn_Vals", "(", ")", "{", "return", "(", "EAttribute", ")", "mappingColumnEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "1", ")", ";", "}", "public", "EClass", "getOptionalFeature", "(", ")", "{", "return", "optionalFeatureEClass", ";", "}", "public", "EAttribute", "getOptionalFeature_Name", "(", ")", "{", "return", "(", "EAttribute", ")", "optionalFeatureEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "0", ")", ";", "}", "public", "EAttribute", "getOptionalFeature_Type", "(", ")", "{", "return", "(", "EAttribute", ")", "optionalFeatureEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "1", ")", ";", "}", "public", "EAttribute", "getOptionalFeature_Filters", "(", ")", "{", "return", "(", "EAttribute", ")", "optionalFeatureEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "2", ")", ";", "}", "public", "EAttribute", "getOptionalFeature_Option", "(", ")", "{", "return", "(", "EAttribute", ")", "optionalFeatureEClass", ".", "getEStructuralFeatures", "(", ")", ".", "get", "(", "3", ")", ";", "}", "public", "ProcessorDslFactory", "getProcessorDslFactory", "(", ")", "{", "return", "(", "ProcessorDslFactory", ")", "getEFactoryInstance", "(", ")", ";", "}", "private", "boolean", "isCreated", "=", "false", ";", "public", "void", "createPackageContents", "(", ")", "{", "if", "(", "isCreated", ")", "return", ";", "isCreated", "=", "true", ";", "artifactsEClass", "=", "createEClass", "(", "ARTIFACTS", ")", ";", "createEReference", "(", "artifactsEClass", ",", "ARTIFACTS__FEATURES", ")", ";", "createEReference", "(", "artifactsEClass", ",", "ARTIFACTS__STATEMENTS", ")", ";", "createEReference", "(", "artifactsEClass", ",", "ARTIFACTS__MAPPINGS", ")", ";", "createEReference", "(", "artifactsEClass", ",", "ARTIFACTS__POJOS", ")", ";", "createEReference", "(", "artifactsEClass", ",", "ARTIFACTS__USAGES", ")", ";", "createEReference", "(", "artifactsEClass", ",", "ARTIFACTS__PROPERTIES", ")", ";", "createEReference", "(", "artifactsEClass", ",", "ARTIFACTS__TABLES", ")", ";", "createEReference", "(", "artifactsEClass", ",", "ARTIFACTS__TABLE_USAGES", ")", ";", "propertyEClass", "=", "createEClass", "(", "PROPERTY", ")", ";", "createEAttribute", "(", "propertyEClass", ",", "PROPERTY__NAME", ")", ";", "createEAttribute", "(", "propertyEClass", ",", "PROPERTY__DO_RESOLVE_POJO", ")", ";", "createEAttribute", "(", "propertyEClass", ",", "PROPERTY__DO_RESOLVE_DB", ")", ";", "createEAttribute", "(", "propertyEClass", ",", "PROPERTY__DB_URL", ")", ";", "createEAttribute", "(", "propertyEClass", ",", "PROPERTY__DB_USERNAME", ")", ";", "createEAttribute", "(", "propertyEClass", ",", "PROPERTY__DB_PASSWORD", ")", ";", "createEAttribute", "(", "propertyEClass", ",", "PROPERTY__DB_SCHEMA", ")", ";", "createEAttribute", "(", "propertyEClass", ",", "PROPERTY__DB_DRIVER", ")", ";", "pojoDefinitionEClass", "=", "createEClass", "(", "POJO_DEFINITION", ")", ";", "createEAttribute", "(", "pojoDefinitionEClass", ",", "POJO_DEFINITION__NAME", ")", ";", "createEAttribute", "(", "pojoDefinitionEClass", ",", "POJO_DEFINITION__CLASS", ")", ";", "pojoUsageEClass", "=", "createEClass", "(", "POJO_USAGE", ")", ";", "createEReference", "(", "pojoUsageEClass", ",", "POJO_USAGE__POJO", ")", ";", "columnUsageEClass", "=", "createEClass", "(", "COLUMN_USAGE", ")", ";", "createEReference", "(", "columnUsageEClass", ",", "COLUMN_USAGE__STATEMENT", ")", ";", "identifierUsageEClass", "=", "createEClass", "(", "IDENTIFIER_USAGE", ")", ";", "createEReference", "(", "identifierUsageEClass", ",", "IDENTIFIER_USAGE__STATEMENT", ")", ";", "constantUsageEClass", "=", "createEClass", "(", "CONSTANT_USAGE", ")", ";", "createEReference", "(", "constantUsageEClass", ",", "CONSTANT_USAGE__STATEMENT", ")", ";", "mappingUsageEClass", "=", "createEClass", "(", "MAPPING_USAGE", ")", ";", "createEReference", "(", "mappingUsageEClass", ",", "MAPPING_USAGE__STATEMENT", ")", ";", "tableDefinitionEClass", "=", "createEClass", "(", "TABLE_DEFINITION", ")", ";", "createEAttribute", "(", "tableDefinitionEClass", ",", "TABLE_DEFINITION__NAME", ")", ";", "createEAttribute", "(", "tableDefinitionEClass", ",", "TABLE_DEFINITION__TABLE", ")", ";", "tableUsageEClass", "=", "createEClass", "(", "TABLE_USAGE", ")", ";", "createEReference", "(", "tableUsageEClass", ",", "TABLE_USAGE__STATEMENT", ")", ";", "createEReference", "(", "tableUsageEClass", ",", "TABLE_USAGE__TABLE", ")", ";", "createEAttribute", "(", "tableUsageEClass", ",", "TABLE_USAGE__PREFIX", ")", ";", "metaStatementEClass", "=", "createEClass", "(", "META_STATEMENT", ")", ";", "createEAttribute", "(", "metaStatementEClass", ",", "META_STATEMENT__NAME", ")", ";", "createEAttribute", "(", "metaStatementEClass", ",", "META_STATEMENT__TYPE", ")", ";", "createEAttribute", "(", "metaStatementEClass", ",", "META_STATEMENT__FILTERS", ")", ";", "createEReference", "(", "metaStatementEClass", ",", "META_STATEMENT__STATEMENT", ")", ";", "sqlEClass", "=", "createEClass", "(", "SQL", ")", ";", "createEReference", "(", "sqlEClass", ",", "SQL__SQLS", ")", ";", "sqlFragmentEClass", "=", "createEClass", "(", "SQL_FRAGMENT", ")", ";", "createEAttribute", "(", "sqlFragmentEClass", ",", "SQL_FRAGMENT__VALUE", ")", ";", "createEReference", "(", "sqlFragmentEClass", ",", "SQL_FRAGMENT__COL", ")", ";", "createEReference", "(", "sqlFragmentEClass", ",", "SQL_FRAGMENT__CNST", ")", ";", "createEReference", "(", "sqlFragmentEClass", ",", "SQL_FRAGMENT__IDENT", ")", ";", "createEReference", "(", "sqlFragmentEClass", ",", "SQL_FRAGMENT__META", ")", ";", "createEReference", "(", "sqlFragmentEClass", ",", "SQL_FRAGMENT__DBTAB", ")", ";", "createEReference", "(", "sqlFragmentEClass", ",", "SQL_FRAGMENT__DBCOL", ")", ";", "metaSqlEClass", "=", "createEClass", "(", "META_SQL", ")", ";", "createEReference", "(", "metaSqlEClass", ",", "META_SQL__IFS", ")", ";", "createEAttribute", "(", "metaSqlEClass", ",", "META_SQL__TYPE", ")", ";", "createEReference", "(", "metaSqlEClass", ",", "META_SQL__COND", ")", ";", "createEAttribute", "(", "metaSqlEClass", ",", "META_SQL__FTYPE", ")", ";", "createEReference", "(", "metaSqlEClass", ",", "META_SQL__ORD", ")", ";", "ifSqlEClass", "=", "createEClass", "(", "IF_SQL", ")", ";", "createEReference", "(", "ifSqlEClass", ",", "IF_SQL__SQLS", ")", ";", "ifSqlFragmentEClass", "=", "createEClass", "(", "IF_SQL_FRAGMENT", ")", ";", "createEAttribute", "(", "ifSqlFragmentEClass", ",", "IF_SQL_FRAGMENT__VALUE", ")", ";", "createEReference", "(", "ifSqlFragmentEClass", ",", "IF_SQL_FRAGMENT__COL", ")", ";", "createEReference", "(", "ifSqlFragmentEClass", ",", "IF_SQL_FRAGMENT__CNST", ")", ";", "createEReference", "(", "ifSqlFragmentEClass", ",", "IF_SQL_FRAGMENT__IDENT", ")", ";", "createEReference", "(", "ifSqlFragmentEClass", ",", "IF_SQL_FRAGMENT__DBTAB", ")", ";", "createEReference", "(", "ifSqlFragmentEClass", ",", "IF_SQL_FRAGMENT__DBCOL", ")", ";", "createEReference", "(", "ifSqlFragmentEClass", ",", "IF_SQL_FRAGMENT__META", ")", ";", "ifMetaSqlEClass", "=", "createEClass", "(", "IF_META_SQL", ")", ";", "createEReference", "(", "ifMetaSqlEClass", ",", "IF_META_SQL__IFS", ")", ";", "createEAttribute", "(", "ifMetaSqlEClass", ",", "IF_META_SQL__TYPE", ")", ";", "createEReference", "(", "ifMetaSqlEClass", ",", "IF_META_SQL__COND", ")", ";", "ifSqlCondEClass", "=", "createEClass", "(", "IF_SQL_COND", ")", ";", "createEReference", "(", "ifSqlCondEClass", ",", "IF_SQL_COND__BOOL1", ")", ";", "createEAttribute", "(", "ifSqlCondEClass", ",", "IF_SQL_COND__OPER", ")", ";", "createEReference", "(", "ifSqlCondEClass", ",", "IF_SQL_COND__BOOL2", ")", ";", "ifSqlBoolEClass", "=", "createEClass", "(", "IF_SQL_BOOL", ")", ";", "createEAttribute", "(", "ifSqlBoolEClass", ",", "IF_SQL_BOOL__NOT", ")", ";", "createEReference", "(", "ifSqlBoolEClass", ",", "IF_SQL_BOOL__CNST", ")", ";", "createEReference", "(", "ifSqlBoolEClass", ",", "IF_SQL_BOOL__IDENT", ")", ";", "createEReference", "(", "ifSqlBoolEClass", ",", "IF_SQL_BOOL__COND", ")", ";", "ordSqlEClass", "=", "createEClass", "(", "ORD_SQL", ")", ";", "createEReference", "(", "ordSqlEClass", ",", "ORD_SQL__SQLS", ")", ";", "ordSql2EClass", "=", "createEClass", "(", "ORD_SQL2", ")", ";", "createEAttribute", "(", "ordSql2EClass", ",", "ORD_SQL2__VALUE", ")", ";", "createEReference", "(", "ordSql2EClass", ",", "ORD_SQL2__CNST", ")", ";", "createEReference", "(", "ordSql2EClass", ",", "ORD_SQL2__IDENT", ")", ";", "createEReference", "(", "ordSql2EClass", ",", "ORD_SQL2__DBCOL", ")", ";", "columnEClass", "=", "createEClass", "(", "COLUMN", ")", ";", "createEAttribute", "(", "columnEClass", ",", "COLUMN__NAME", ")", ";", "createEAttribute", "(", "columnEClass", ",", "COLUMN__TYPE", ")", ";", "createEAttribute", "(", "columnEClass", ",", "COLUMN__VALS", ")", ";", "constantEClass", "=", "createEClass", "(", "CONSTANT", ")", ";", "createEAttribute", "(", "constantEClass", ",", "CONSTANT__CASE", ")", ";", "createEAttribute", "(", "constantEClass", ",", "CONSTANT__NAME", ")", ";", "createEAttribute", "(", "constantEClass", ",", "CONSTANT__TYPE", ")", ";", "createEAttribute", "(", "constantEClass", ",", "CONSTANT__VALS", ")", ";", "identifierEClass", "=", "createEClass", "(", "IDENTIFIER", ")", ";", "createEAttribute", "(", "identifierEClass", ",", "IDENTIFIER__MODE", ")", ";", "createEAttribute", "(", "identifierEClass", ",", "IDENTIFIER__CASE", ")", ";", "createEAttribute", "(", "identifierEClass", ",", "IDENTIFIER__NAME", ")", ";", "createEAttribute", "(", "identifierEClass", ",", "IDENTIFIER__TYPE", ")", ";", "createEAttribute", "(", "identifierEClass", ",", "IDENTIFIER__VALS", ")", ";", "databaseColumnEClass", "=", "createEClass", "(", "DATABASE_COLUMN", ")", ";", "createEAttribute", "(", "databaseColumnEClass", ",", "DATABASE_COLUMN__NAME", ")", ";", "databaseTableEClass", "=", "createEClass", "(", "DATABASE_TABLE", ")", ";", "createEAttribute", "(", "databaseTableEClass", ",", "DATABASE_TABLE__NAME", ")", ";", "mappingRuleEClass", "=", "createEClass", "(", "MAPPING_RULE", ")", ";", "createEAttribute", "(", "mappingRuleEClass", ",", "MAPPING_RULE__NAME", ")", ";", "createEAttribute", "(", "mappingRuleEClass", ",", "MAPPING_RULE__TYPE", ")", ";", "createEAttribute", "(", "mappingRuleEClass", ",", "MAPPING_RULE__FILTERS", ")", ";", "createEReference", "(", "mappingRuleEClass", ",", "MAPPING_RULE__MAPPING", ")", ";", "mappingEClass", "=", "createEClass", "(", "MAPPING", ")", ";", "createEReference", "(", "mappingEClass", ",", "MAPPING__MAPPING_ITEMS", ")", ";", "mappingItemEClass", "=", "createEClass", "(", "MAPPING_ITEM", ")", ";", "createEAttribute", "(", "mappingItemEClass", ",", "MAPPING_ITEM__COL", ")", ";", "createEAttribute", "(", "mappingItemEClass", ",", "MAPPING_ITEM__TYPE", ")", ";", "createEReference", "(", "mappingItemEClass", ",", "MAPPING_ITEM__ATTR", ")", ";", "mappingColumnEClass", "=", "createEClass", "(", "MAPPING_COLUMN", ")", ";", "createEAttribute", "(", "mappingColumnEClass", ",", "MAPPING_COLUMN__NAME", ")", ";", "createEAttribute", "(", "mappingColumnEClass", ",", "MAPPING_COLUMN__VALS", ")", ";", "optionalFeatureEClass", "=", "createEClass", "(", "OPTIONAL_FEATURE", ")", ";", "createEAttribute", "(", "optionalFeatureEClass", ",", "OPTIONAL_FEATURE__NAME", ")", ";", "createEAttribute", "(", "optionalFeatureEClass", ",", "OPTIONAL_FEATURE__TYPE", ")", ";", "createEAttribute", "(", "optionalFeatureEClass", ",", "OPTIONAL_FEATURE__FILTERS", ")", ";", "createEAttribute", "(", "optionalFeatureEClass", ",", "OPTIONAL_FEATURE__OPTION", ")", ";", "}", "private", "boolean", "isInitialized", "=", "false", ";", "public", "void", "initializePackageContents", "(", ")", "{", "if", "(", "isInitialized", ")", "return", ";", "isInitialized", "=", "true", ";", "setName", "(", "eNAME", ")", ";", "setNsPrefix", "(", "eNS_PREFIX", ")", ";", "setNsURI", "(", "eNS_URI", ")", ";", "columnUsageEClass", ".", "getESuperTypes", "(", ")", ".", "add", "(", "this", ".", "getPojoUsage", "(", ")", ")", ";", "identifierUsageEClass", ".", "getESuperTypes", "(", ")", ".", "add", "(", "this", ".", "getPojoUsage", "(", ")", ")", ";", "constantUsageEClass", ".", "getESuperTypes", "(", ")", ".", "add", "(", "this", ".", "getPojoUsage", "(", ")", ")", ";", "mappingUsageEClass", ".", "getESuperTypes", "(", ")", ".", "add", "(", "this", ".", "getPojoUsage", "(", ")", ")", ";", "initEClass", "(", "artifactsEClass", ",", "Artifacts", ".", "class", ",", "\"Artifacts\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEReference", "(", "getArtifacts_Features", "(", ")", ",", "this", ".", "getOptionalFeature", "(", ")", ",", "null", ",", "\"features\"", ",", "null", ",", "0", ",", "-", "1", ",", "Artifacts", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getArtifacts_Statements", "(", ")", ",", "this", ".", "getMetaStatement", "(", ")", ",", "null", ",", "\"statements\"", ",", "null", ",", "0", ",", "-", "1", ",", "Artifacts", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getArtifacts_Mappings", "(", ")", ",", "this", ".", "getMappingRule", "(", ")", ",", "null", ",", "\"mappings\"", ",", "null", ",", "0", ",", "-", "1", ",", "Artifacts", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getArtifacts_Pojos", "(", ")", ",", "this", ".", "getPojoDefinition", "(", ")", ",", "null", ",", "\"pojos\"", ",", "null", ",", "0", ",", "-", "1", ",", "Artifacts", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getArtifacts_Usages", "(", ")", ",", "this", ".", "getPojoUsage", "(", ")", ",", "null", ",", "\"usages\"", ",", "null", ",", "0", ",", "-", "1", ",", "Artifacts", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getArtifacts_Properties", "(", ")", ",", "this", ".", "getProperty", "(", ")", ",", "null", ",", "\"properties\"", ",", "null", ",", "0", ",", "-", "1", ",", "Artifacts", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getArtifacts_Tables", "(", ")", ",", "this", ".", "getTableDefinition", "(", ")", ",", "null", ",", "\"tables\"", ",", "null", ",", "0", ",", "-", "1", ",", "Artifacts", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getArtifacts_TableUsages", "(", ")", ",", "this", ".", "getTableUsage", "(", ")", ",", "null", ",", "\"tableUsages\"", ",", "null", ",", "0", ",", "-", "1", ",", "Artifacts", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "propertyEClass", ",", "Property", ".", "class", ",", "\"Property\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEAttribute", "(", "getProperty_Name", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"name\"", ",", "null", ",", "0", ",", "1", ",", "Property", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getProperty_DoResolvePojo", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"\"", ",", "null", ",", "0", ",", "1", ",", "Property", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getProperty_DoResolveDb", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"doResolveDb\"", ",", "null", ",", "0", ",", "1", ",", "Property", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getProperty_DbUrl", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"dbUrl\"", ",", "null", ",", "0", ",", "1", ",", "Property", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getProperty_DbUsername", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"dbUsername\"", ",", "null", ",", "0", ",", "1", ",", "Property", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getProperty_DbPassword", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"dbPassword\"", ",", "null", ",", "0", ",", "1", ",", "Property", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getProperty_DbSchema", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"dbSchema\"", ",", "null", ",", "0", ",", "1", ",", "Property", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getProperty_DbDriver", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"dbDriver\"", ",", "null", ",", "0", ",", "1", ",", "Property", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "pojoDefinitionEClass", ",", "PojoDefinition", ".", "class", ",", "\"\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEAttribute", "(", "getPojoDefinition_Name", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"name\"", ",", "null", ",", "0", ",", "1", ",", "PojoDefinition", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getPojoDefinition_Class", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"class\"", ",", "null", ",", "0", ",", "1", ",", "PojoDefinition", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "pojoUsageEClass", ",", "PojoUsage", ".", "class", ",", "\"PojoUsage\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEReference", "(", "getPojoUsage_Pojo", "(", ")", ",", "this", ".", "getPojoDefinition", "(", ")", ",", "null", ",", "\"pojo\"", ",", "null", ",", "0", ",", "1", ",", "PojoUsage", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_COMPOSITE", ",", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "columnUsageEClass", ",", "ColumnUsage", ".", "class", ",", "\"ColumnUsage\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEReference", "(", "getColumnUsage_Statement", "(", ")", ",", "this", ".", "getMetaStatement", "(", ")", ",", "null", ",", "\"statement\"", ",", "null", ",", "0", ",", "1", ",", "ColumnUsage", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_COMPOSITE", ",", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "identifierUsageEClass", ",", "IdentifierUsage", ".", "class", ",", "\"\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEReference", "(", "getIdentifierUsage_Statement", "(", ")", ",", "this", ".", "getMetaStatement", "(", ")", ",", "null", ",", "\"statement\"", ",", "null", ",", "0", ",", "1", ",", "IdentifierUsage", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_COMPOSITE", ",", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "constantUsageEClass", ",", "ConstantUsage", ".", "class", ",", "\"\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEReference", "(", "getConstantUsage_Statement", "(", ")", ",", "this", ".", "getMetaStatement", "(", ")", ",", "null", ",", "\"statement\"", ",", "null", ",", "0", ",", "1", ",", "ConstantUsage", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_COMPOSITE", ",", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "mappingUsageEClass", ",", "MappingUsage", ".", "class", ",", "\"MappingUsage\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEReference", "(", "getMappingUsage_Statement", "(", ")", ",", "this", ".", "getMappingRule", "(", ")", ",", "null", ",", "\"statement\"", ",", "null", ",", "0", ",", "1", ",", "MappingUsage", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_COMPOSITE", ",", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "tableDefinitionEClass", ",", "TableDefinition", ".", "class", ",", "\"\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEAttribute", "(", "getTableDefinition_Name", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"name\"", ",", "null", ",", "0", ",", "1", ",", "TableDefinition", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getTableDefinition_Table", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"table\"", ",", "null", ",", "0", ",", "1", ",", "TableDefinition", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "tableUsageEClass", ",", "TableUsage", ".", "class", ",", "\"TableUsage\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEReference", "(", "getTableUsage_Statement", "(", ")", ",", "this", ".", "getMetaStatement", "(", ")", ",", "null", ",", "\"statement\"", ",", "null", ",", "0", ",", "1", ",", "TableUsage", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_COMPOSITE", ",", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getTableUsage_Table", "(", ")", ",", "this", ".", "getTableDefinition", "(", ")", ",", "null", ",", "\"table\"", ",", "null", ",", "0", ",", "1", ",", "TableUsage", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_COMPOSITE", ",", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getTableUsage_Prefix", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"prefix\"", ",", "null", ",", "0", ",", "1", ",", "TableUsage", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "metaStatementEClass", ",", "MetaStatement", ".", "class", ",", "\"\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEAttribute", "(", "getMetaStatement_Name", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"name\"", ",", "null", ",", "0", ",", "1", ",", "MetaStatement", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getMetaStatement_Type", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"type\"", ",", "null", ",", "0", ",", "1", ",", "MetaStatement", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getMetaStatement_Filters", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"filters\"", ",", "null", ",", "0", ",", "-", "1", ",", "MetaStatement", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "!", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getMetaStatement_Statement", "(", ")", ",", "this", ".", "getSql", "(", ")", ",", "null", ",", "\"statement\"", ",", "null", ",", "0", ",", "1", ",", "MetaStatement", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "sqlEClass", ",", "Sql", ".", "class", ",", "\"Sql\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEReference", "(", "getSql_Sqls", "(", ")", ",", "this", ".", "getSqlFragment", "(", ")", ",", "null", ",", "\"sqls\"", ",", "null", ",", "0", ",", "-", "1", ",", "Sql", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "sqlFragmentEClass", ",", "SqlFragment", ".", "class", ",", "\"SqlFragment\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEAttribute", "(", "getSqlFragment_Value", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"value\"", ",", "null", ",", "0", ",", "1", ",", "SqlFragment", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getSqlFragment_Col", "(", ")", ",", "this", ".", "getColumn", "(", ")", ",", "null", ",", "\"col\"", ",", "null", ",", "0", ",", "1", ",", "SqlFragment", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getSqlFragment_Cnst", "(", ")", ",", "this", ".", "getConstant", "(", ")", ",", "null", ",", "\"cnst\"", ",", "null", ",", "0", ",", "1", ",", "SqlFragment", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getSqlFragment_Ident", "(", ")", ",", "this", ".", "getIdentifier", "(", ")", ",", "null", ",", "\"ident\"", ",", "null", ",", "0", ",", "1", ",", "SqlFragment", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getSqlFragment_Meta", "(", ")", ",", "this", ".", "getMetaSql", "(", ")", ",", "null", ",", "\"meta\"", ",", "null", ",", "0", ",", "1", ",", "SqlFragment", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getSqlFragment_Dbtab", "(", ")", ",", "this", ".", "getDatabaseTable", "(", ")", ",", "null", ",", "\"dbtab\"", ",", "null", ",", "0", ",", "1", ",", "SqlFragment", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getSqlFragment_Dbcol", "(", ")", ",", "this", ".", "getDatabaseColumn", "(", ")", ",", "null", ",", "\"dbcol\"", ",", "null", ",", "0", ",", "1", ",", "SqlFragment", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "metaSqlEClass", ",", "MetaSql", ".", "class", ",", "\"MetaSql\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEReference", "(", "getMetaSql_Ifs", "(", ")", ",", "this", ".", "getIfSql", "(", ")", ",", "null", ",", "\"ifs\"", ",", "null", ",", "0", ",", "-", "1", ",", "MetaSql", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getMetaSql_Type", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"type\"", ",", "null", ",", "0", ",", "1", ",", "MetaSql", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getMetaSql_Cond", "(", ")", ",", "this", ".", "getIfSqlCond", "(", ")", ",", "null", ",", "\"cond\"", ",", "null", ",", "0", ",", "1", ",", "MetaSql", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getMetaSql_Ftype", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"ftype\"", ",", "null", ",", "0", ",", "1", ",", "MetaSql", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getMetaSql_Ord", "(", ")", ",", "this", ".", "getOrdSql", "(", ")", ",", "null", ",", "\"ord\"", ",", "null", ",", "0", ",", "1", ",", "MetaSql", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "ifSqlEClass", ",", "IfSql", ".", "class", ",", "\"IfSql\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEReference", "(", "getIfSql_Sqls", "(", ")", ",", "this", ".", "getIfSqlFragment", "(", ")", ",", "null", ",", "\"sqls\"", ",", "null", ",", "0", ",", "-", "1", ",", "IfSql", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "ifSqlFragmentEClass", ",", "IfSqlFragment", ".", "class", ",", "\"\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEAttribute", "(", "getIfSqlFragment_Value", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"value\"", ",", "null", ",", "0", ",", "1", ",", "IfSqlFragment", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getIfSqlFragment_Col", "(", ")", ",", "this", ".", "getColumn", "(", ")", ",", "null", ",", "\"col\"", ",", "null", ",", "0", ",", "1", ",", "IfSqlFragment", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getIfSqlFragment_Cnst", "(", ")", ",", "this", ".", "getConstant", "(", ")", ",", "null", ",", "\"cnst\"", ",", "null", ",", "0", ",", "1", ",", "IfSqlFragment", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getIfSqlFragment_Ident", "(", ")", ",", "this", ".", "getIdentifier", "(", ")", ",", "null", ",", "\"ident\"", ",", "null", ",", "0", ",", "1", ",", "IfSqlFragment", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getIfSqlFragment_Dbtab", "(", ")", ",", "this", ".", "getDatabaseTable", "(", ")", ",", "null", ",", "\"dbtab\"", ",", "null", ",", "0", ",", "1", ",", "IfSqlFragment", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getIfSqlFragment_Dbcol", "(", ")", ",", "this", ".", "getDatabaseColumn", "(", ")", ",", "null", ",", "\"dbcol\"", ",", "null", ",", "0", ",", "1", ",", "IfSqlFragment", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getIfSqlFragment_Meta", "(", ")", ",", "this", ".", "getIfMetaSql", "(", ")", ",", "null", ",", "\"meta\"", ",", "null", ",", "0", ",", "1", ",", "IfSqlFragment", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "ifMetaSqlEClass", ",", "IfMetaSql", ".", "class", ",", "\"IfMetaSql\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEReference", "(", "getIfMetaSql_Ifs", "(", ")", ",", "this", ".", "getIfSql", "(", ")", ",", "null", ",", "\"ifs\"", ",", "null", ",", "0", ",", "-", "1", ",", "IfMetaSql", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getIfMetaSql_Type", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"type\"", ",", "null", ",", "0", ",", "1", ",", "IfMetaSql", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getIfMetaSql_Cond", "(", ")", ",", "this", ".", "getIfSqlCond", "(", ")", ",", "null", ",", "\"cond\"", ",", "null", ",", "0", ",", "1", ",", "IfMetaSql", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "ifSqlCondEClass", ",", "IfSqlCond", ".", "class", ",", "\"IfSqlCond\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEReference", "(", "getIfSqlCond_Bool1", "(", ")", ",", "this", ".", "getIfSqlBool", "(", ")", ",", "null", ",", "\"bool1\"", ",", "null", ",", "0", ",", "1", ",", "IfSqlCond", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getIfSqlCond_Oper", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"oper\"", ",", "null", ",", "0", ",", "-", "1", ",", "IfSqlCond", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "!", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getIfSqlCond_Bool2", "(", ")", ",", "this", ".", "getIfSqlBool", "(", ")", ",", "null", ",", "\"bool2\"", ",", "null", ",", "0", ",", "-", "1", ",", "IfSqlCond", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "ifSqlBoolEClass", ",", "IfSqlBool", ".", "class", ",", "\"IfSqlBool\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEAttribute", "(", "getIfSqlBool_Not", "(", ")", ",", "ecorePackage", ".", "getEBoolean", "(", ")", ",", "\"not\"", ",", "null", ",", "0", ",", "1", ",", "IfSqlBool", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getIfSqlBool_Cnst", "(", ")", ",", "this", ".", "getConstant", "(", ")", ",", "null", ",", "\"cnst\"", ",", "null", ",", "0", ",", "1", ",", "IfSqlBool", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getIfSqlBool_Ident", "(", ")", ",", "this", ".", "getIdentifier", "(", ")", ",", "null", ",", "\"ident\"", ",", "null", ",", "0", ",", "1", ",", "IfSqlBool", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getIfSqlBool_Cond", "(", ")", ",", "this", ".", "getIfSqlCond", "(", ")", ",", "null", ",", "\"cond\"", ",", "null", ",", "0", ",", "1", ",", "IfSqlBool", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "ordSqlEClass", ",", "OrdSql", ".", "class", ",", "\"OrdSql\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEReference", "(", "getOrdSql_Sqls", "(", ")", ",", "this", ".", "getOrdSql2", "(", ")", ",", "null", ",", "\"sqls\"", ",", "null", ",", "0", ",", "-", "1", ",", "OrdSql", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "ordSql2EClass", ",", "OrdSql2", ".", "class", ",", "\"OrdSql2\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEAttribute", "(", "getOrdSql2_Value", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"value\"", ",", "null", ",", "0", ",", "1", ",", "OrdSql2", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getOrdSql2_Cnst", "(", ")", ",", "this", ".", "getConstant", "(", ")", ",", "null", ",", "\"cnst\"", ",", "null", ",", "0", ",", "1", ",", "OrdSql2", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getOrdSql2_Ident", "(", ")", ",", "this", ".", "getIdentifier", "(", ")", ",", "null", ",", "\"ident\"", ",", "null", ",", "0", ",", "1", ",", "OrdSql2", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getOrdSql2_Dbcol", "(", ")", ",", "this", ".", "getDatabaseColumn", "(", ")", ",", "null", ",", "\"dbcol\"", ",", "null", ",", "0", ",", "1", ",", "OrdSql2", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "columnEClass", ",", "Column", ".", "class", ",", "\"Column\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEAttribute", "(", "getColumn_Name", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"name\"", ",", "null", ",", "0", ",", "1", ",", "Column", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getColumn_Type", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"type\"", ",", "null", ",", "0", ",", "1", ",", "Column", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getColumn_Vals", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"vals\"", ",", "null", ",", "0", ",", "-", "1", ",", "Column", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "!", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "constantEClass", ",", "Constant", ".", "class", ",", "\"Constant\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEAttribute", "(", "getConstant_Case", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"case\"", ",", "null", ",", "0", ",", "1", ",", "Constant", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getConstant_Name", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"name\"", ",", "null", ",", "0", ",", "1", ",", "Constant", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getConstant_Type", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"type\"", ",", "null", ",", "0", ",", "1", ",", "Constant", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getConstant_Vals", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"vals\"", ",", "null", ",", "0", ",", "-", "1", ",", "Constant", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "!", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "identifierEClass", ",", "Identifier", ".", "class", ",", "\"Identifier\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEAttribute", "(", "getIdentifier_Mode", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"mode\"", ",", "null", ",", "0", ",", "1", ",", "Identifier", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getIdentifier_Case", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"case\"", ",", "null", ",", "0", ",", "1", ",", "Identifier", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getIdentifier_Name", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"name\"", ",", "null", ",", "0", ",", "1", ",", "Identifier", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getIdentifier_Type", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"type\"", ",", "null", ",", "0", ",", "1", ",", "Identifier", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getIdentifier_Vals", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"vals\"", ",", "null", ",", "0", ",", "-", "1", ",", "Identifier", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "!", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "databaseColumnEClass", ",", "DatabaseColumn", ".", "class", ",", "\"\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEAttribute", "(", "getDatabaseColumn_Name", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"name\"", ",", "null", ",", "0", ",", "1", ",", "DatabaseColumn", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "databaseTableEClass", ",", "DatabaseTable", ".", "class", ",", "\"\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEAttribute", "(", "getDatabaseTable_Name", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"name\"", ",", "null", ",", "0", ",", "1", ",", "DatabaseTable", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "mappingRuleEClass", ",", "MappingRule", ".", "class", ",", "\"MappingRule\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEAttribute", "(", "getMappingRule_Name", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"name\"", ",", "null", ",", "0", ",", "1", ",", "MappingRule", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getMappingRule_Type", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"type\"", ",", "null", ",", "0", ",", "1", ",", "MappingRule", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getMappingRule_Filters", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"filters\"", ",", "null", ",", "0", ",", "-", "1", ",", "MappingRule", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "!", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getMappingRule_Mapping", "(", ")", ",", "this", ".", "getMapping", "(", ")", ",", "null", ",", "\"mapping\"", ",", "null", ",", "0", ",", "1", ",", "MappingRule", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "mappingEClass", ",", "Mapping", ".", "class", ",", "\"Mapping\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEReference", "(", "getMapping_MappingItems", "(", ")", ",", "this", ".", "getMappingItem", "(", ")", ",", "null", ",", "\"mappingItems\"", ",", "null", ",", "0", ",", "-", "1", ",", "Mapping", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "mappingItemEClass", ",", "MappingItem", ".", "class", ",", "\"MappingItem\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEAttribute", "(", "getMappingItem_Col", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"col\"", ",", "null", ",", "0", ",", "1", ",", "MappingItem", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getMappingItem_Type", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"type\"", ",", "null", ",", "0", ",", "1", ",", "MappingItem", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEReference", "(", "getMappingItem_Attr", "(", ")", ",", "this", ".", "getMappingColumn", "(", ")", ",", "null", ",", "\"attr\"", ",", "null", ",", "0", ",", "1", ",", "MappingItem", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "IS_COMPOSITE", ",", "!", "IS_RESOLVE_PROXIES", ",", "!", "IS_UNSETTABLE", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "mappingColumnEClass", ",", "MappingColumn", ".", "class", ",", "\"\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEAttribute", "(", "getMappingColumn_Name", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"name\"", ",", "null", ",", "0", ",", "1", ",", "MappingColumn", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getMappingColumn_Vals", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"vals\"", ",", "null", ",", "0", ",", "-", "1", ",", "MappingColumn", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "!", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEClass", "(", "optionalFeatureEClass", ",", "OptionalFeature", ".", "class", ",", "\"\"", ",", "!", "IS_ABSTRACT", ",", "!", "IS_INTERFACE", ",", "IS_GENERATED_INSTANCE_CLASS", ")", ";", "initEAttribute", "(", "getOptionalFeature_Name", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"name\"", ",", "null", ",", "0", ",", "1", ",", "OptionalFeature", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getOptionalFeature_Type", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"type\"", ",", "null", ",", "0", ",", "1", ",", "OptionalFeature", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getOptionalFeature_Filters", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"filters\"", ",", "null", ",", "0", ",", "-", "1", ",", "OptionalFeature", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "!", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "initEAttribute", "(", "getOptionalFeature_Option", "(", ")", ",", "ecorePackage", ".", "getEString", "(", ")", ",", "\"option\"", ",", "null", ",", "0", ",", "1", ",", "OptionalFeature", ".", "class", ",", "!", "IS_TRANSIENT", ",", "!", "IS_VOLATILE", ",", "IS_CHANGEABLE", ",", "!", "IS_UNSETTABLE", ",", "!", "IS_ID", ",", "IS_UNIQUE", ",", "!", "IS_DERIVED", ",", "IS_ORDERED", ")", ";", "createResource", "(", "eNS_URI", ")", ";", "}", "}", "</s>" ]
238
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "java", ".", "util", ".", "Collection", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "NotificationChain", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "InternalEObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "EDataTypeEList", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MetaStatement", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Sql", ";", "public", "class", "MetaStatementImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "MetaStatement", "{", "protected", "static", "final", "String", "NAME_EDEFAULT", "=", "null", ";", "protected", "String", "name", "=", "NAME_EDEFAULT", ";", "protected", "static", "final", "String", "TYPE_EDEFAULT", "=", "null", ";", "protected", "String", "type", "=", "TYPE_EDEFAULT", ";", "protected", "EList", "<", "String", ">", "filters", ";", "protected", "Sql", "statement", ";", "protected", "MetaStatementImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "META_STATEMENT", ";", "}", "public", "String", "getName", "(", ")", "{", "return", "name", ";", "}", "public", "void", "setName", "(", "String", "newName", ")", "{", "String", "oldName", "=", "name", ";", "name", "=", "newName", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "META_STATEMENT__NAME", ",", "oldName", ",", "name", ")", ")", ";", "}", "public", "String", "getType", "(", ")", "{", "return", "type", ";", "}", "public", "void", "setType", "(", "String", "newType", ")", "{", "String", "oldType", "=", "type", ";", "type", "=", "newType", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "META_STATEMENT__TYPE", ",", "oldType", ",", "type", ")", ")", ";", "}", "public", "EList", "<", "String", ">", "getFilters", "(", ")", "{", "if", "(", "filters", "==", "null", ")", "{", "filters", "=", "new", "EDataTypeEList", "<", "String", ">", "(", "String", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "META_STATEMENT__FILTERS", ")", ";", "}", "return", "filters", ";", "}", "public", "Sql", "getStatement", "(", ")", "{", "return", "statement", ";", "}", "public", "NotificationChain", "basicSetStatement", "(", "Sql", "newStatement", ",", "NotificationChain", "msgs", ")", "{", "Sql", "oldStatement", "=", "statement", ";", "statement", "=", "newStatement", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "META_STATEMENT__STATEMENT", ",", "oldStatement", ",", "newStatement", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setStatement", "(", "Sql", "newStatement", ")", "{", "if", "(", "newStatement", "!=", "statement", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "statement", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "statement", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "META_STATEMENT__STATEMENT", ",", "null", ",", "msgs", ")", ";", "if", "(", "newStatement", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newStatement", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "META_STATEMENT__STATEMENT", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetStatement", "(", "newStatement", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "META_STATEMENT__STATEMENT", ",", "newStatement", ",", "newStatement", ")", ")", ";", "}", "@", "Override", "public", "NotificationChain", "eInverseRemove", "(", "InternalEObject", "otherEnd", ",", "int", "featureID", ",", "NotificationChain", "msgs", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "META_STATEMENT__STATEMENT", ":", "return", "basicSetStatement", "(", "null", ",", "msgs", ")", ";", "}", "return", "super", ".", "eInverseRemove", "(", "otherEnd", ",", "featureID", ",", "msgs", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "META_STATEMENT__NAME", ":", "return", "getName", "(", ")", ";", "case", "ProcessorDslPackage", ".", "META_STATEMENT__TYPE", ":", "return", "getType", "(", ")", ";", "case", "ProcessorDslPackage", ".", "META_STATEMENT__FILTERS", ":", "return", "getFilters", "(", ")", ";", "case", "ProcessorDslPackage", ".", "META_STATEMENT__STATEMENT", ":", "return", "getStatement", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "META_STATEMENT__NAME", ":", "setName", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "META_STATEMENT__TYPE", ":", "setType", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "META_STATEMENT__FILTERS", ":", "getFilters", "(", ")", ".", "clear", "(", ")", ";", "getFilters", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "String", ">", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "META_STATEMENT__STATEMENT", ":", "setStatement", "(", "(", "Sql", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "META_STATEMENT__NAME", ":", "setName", "(", "NAME_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "META_STATEMENT__TYPE", ":", "setType", "(", "TYPE_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "META_STATEMENT__FILTERS", ":", "getFilters", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "META_STATEMENT__STATEMENT", ":", "setStatement", "(", "(", "Sql", ")", "null", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "META_STATEMENT__NAME", ":", "return", "NAME_EDEFAULT", "==", "null", "?", "name", "!=", "null", ":", "!", "NAME_EDEFAULT", ".", "equals", "(", "name", ")", ";", "case", "ProcessorDslPackage", ".", "META_STATEMENT__TYPE", ":", "return", "TYPE_EDEFAULT", "==", "null", "?", "type", "!=", "null", ":", "!", "TYPE_EDEFAULT", ".", "equals", "(", "type", ")", ";", "case", "ProcessorDslPackage", ".", "META_STATEMENT__FILTERS", ":", "return", "filters", "!=", "null", "&&", "!", "filters", ".", "isEmpty", "(", ")", ";", "case", "ProcessorDslPackage", ".", "META_STATEMENT__STATEMENT", ":", "return", "statement", "!=", "null", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "eIsProxy", "(", ")", ")", "return", "super", ".", "toString", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "super", ".", "toString", "(", ")", ")", ";", "result", ".", "append", "(", "\"", "(name:", "\"", ")", ";", "result", ".", "append", "(", "name", ")", ";", "result", ".", "append", "(", "\",", "type:", "\"", ")", ";", "result", ".", "append", "(", "type", ")", ";", "result", ".", "append", "(", "\",", "filters:", "\"", ")", ";", "result", ".", "append", "(", "filters", ")", ";", "result", ".", "append", "(", "')'", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
239
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "java", ".", "util", ".", "Collection", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "EDataTypeEList", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingColumn", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "MappingColumnImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "MappingColumn", "{", "protected", "static", "final", "String", "NAME_EDEFAULT", "=", "null", ";", "protected", "String", "name", "=", "NAME_EDEFAULT", ";", "protected", "EList", "<", "String", ">", "vals", ";", "protected", "MappingColumnImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "MAPPING_COLUMN", ";", "}", "public", "String", "getName", "(", ")", "{", "return", "name", ";", "}", "public", "void", "setName", "(", "String", "newName", ")", "{", "String", "oldName", "=", "name", ";", "name", "=", "newName", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "MAPPING_COLUMN__NAME", ",", "oldName", ",", "name", ")", ")", ";", "}", "public", "EList", "<", "String", ">", "getVals", "(", ")", "{", "if", "(", "vals", "==", "null", ")", "{", "vals", "=", "new", "EDataTypeEList", "<", "String", ">", "(", "String", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "MAPPING_COLUMN__VALS", ")", ";", "}", "return", "vals", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING_COLUMN__NAME", ":", "return", "getName", "(", ")", ";", "case", "ProcessorDslPackage", ".", "MAPPING_COLUMN__VALS", ":", "return", "getVals", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING_COLUMN__NAME", ":", "setName", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "MAPPING_COLUMN__VALS", ":", "getVals", "(", ")", ".", "clear", "(", ")", ";", "getVals", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "String", ">", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING_COLUMN__NAME", ":", "setName", "(", "NAME_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "MAPPING_COLUMN__VALS", ":", "getVals", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING_COLUMN__NAME", ":", "return", "NAME_EDEFAULT", "==", "null", "?", "name", "!=", "null", ":", "!", "NAME_EDEFAULT", ".", "equals", "(", "name", ")", ";", "case", "ProcessorDslPackage", ".", "MAPPING_COLUMN__VALS", ":", "return", "vals", "!=", "null", "&&", "!", "vals", ".", "isEmpty", "(", ")", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "eIsProxy", "(", ")", ")", "return", "super", ".", "toString", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "super", ".", "toString", "(", ")", ")", ";", "result", ".", "append", "(", "\"", "(name:", "\"", ")", ";", "result", ".", "append", "(", "name", ")", ";", "result", ".", "append", "(", "\",", "vals:", "\"", ")", ";", "result", ".", "append", "(", "vals", ")", ";", "result", ".", "append", "(", "')'", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
240
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "java", ".", "util", ".", "Collection", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "NotificationChain", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "InternalEObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "EObjectContainmentEList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "InternalEList", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Sql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "SqlFragment", ";", "public", "class", "SqlImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "Sql", "{", "protected", "EList", "<", "SqlFragment", ">", "sqls", ";", "protected", "SqlImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "SQL", ";", "}", "public", "EList", "<", "SqlFragment", ">", "getSqls", "(", ")", "{", "if", "(", "sqls", "==", "null", ")", "{", "sqls", "=", "new", "EObjectContainmentEList", "<", "SqlFragment", ">", "(", "SqlFragment", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "SQL__SQLS", ")", ";", "}", "return", "sqls", ";", "}", "@", "Override", "public", "NotificationChain", "eInverseRemove", "(", "InternalEObject", "otherEnd", ",", "int", "featureID", ",", "NotificationChain", "msgs", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "SQL__SQLS", ":", "return", "(", "(", "InternalEList", "<", "?", ">", ")", "getSqls", "(", ")", ")", ".", "basicRemove", "(", "otherEnd", ",", "msgs", ")", ";", "}", "return", "super", ".", "eInverseRemove", "(", "otherEnd", ",", "featureID", ",", "msgs", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "SQL__SQLS", ":", "return", "getSqls", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "SQL__SQLS", ":", "getSqls", "(", ")", ".", "clear", "(", ")", ";", "getSqls", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "SqlFragment", ">", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "SQL__SQLS", ":", "getSqls", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "SQL__SQLS", ":", "return", "sqls", "!=", "null", "&&", "!", "sqls", ".", "isEmpty", "(", ")", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "}", "</s>" ]
241
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "java", ".", "util", ".", "Collection", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "EDataTypeEList", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Constant", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "ConstantImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "Constant", "{", "protected", "static", "final", "String", "CASE_EDEFAULT", "=", "null", ";", "protected", "String", "case_", "=", "CASE_EDEFAULT", ";", "protected", "static", "final", "String", "NAME_EDEFAULT", "=", "null", ";", "protected", "String", "name", "=", "NAME_EDEFAULT", ";", "protected", "static", "final", "String", "TYPE_EDEFAULT", "=", "null", ";", "protected", "String", "type", "=", "TYPE_EDEFAULT", ";", "protected", "EList", "<", "String", ">", "vals", ";", "protected", "ConstantImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "CONSTANT", ";", "}", "public", "String", "getCase", "(", ")", "{", "return", "case_", ";", "}", "public", "void", "setCase", "(", "String", "newCase", ")", "{", "String", "oldCase", "=", "case_", ";", "case_", "=", "newCase", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "CONSTANT__CASE", ",", "oldCase", ",", "case_", ")", ")", ";", "}", "public", "String", "getName", "(", ")", "{", "return", "name", ";", "}", "public", "void", "setName", "(", "String", "newName", ")", "{", "String", "oldName", "=", "name", ";", "name", "=", "newName", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "CONSTANT__NAME", ",", "oldName", ",", "name", ")", ")", ";", "}", "public", "String", "getType", "(", ")", "{", "return", "type", ";", "}", "public", "void", "setType", "(", "String", "newType", ")", "{", "String", "oldType", "=", "type", ";", "type", "=", "newType", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "CONSTANT__TYPE", ",", "oldType", ",", "type", ")", ")", ";", "}", "public", "EList", "<", "String", ">", "getVals", "(", ")", "{", "if", "(", "vals", "==", "null", ")", "{", "vals", "=", "new", "EDataTypeEList", "<", "String", ">", "(", "String", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "CONSTANT__VALS", ")", ";", "}", "return", "vals", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "CONSTANT__CASE", ":", "return", "getCase", "(", ")", ";", "case", "ProcessorDslPackage", ".", "CONSTANT__NAME", ":", "return", "getName", "(", ")", ";", "case", "ProcessorDslPackage", ".", "CONSTANT__TYPE", ":", "return", "getType", "(", ")", ";", "case", "ProcessorDslPackage", ".", "CONSTANT__VALS", ":", "return", "getVals", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "CONSTANT__CASE", ":", "setCase", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "CONSTANT__NAME", ":", "setName", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "CONSTANT__TYPE", ":", "setType", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "CONSTANT__VALS", ":", "getVals", "(", ")", ".", "clear", "(", ")", ";", "getVals", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "String", ">", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "CONSTANT__CASE", ":", "setCase", "(", "CASE_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "CONSTANT__NAME", ":", "setName", "(", "NAME_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "CONSTANT__TYPE", ":", "setType", "(", "TYPE_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "CONSTANT__VALS", ":", "getVals", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "CONSTANT__CASE", ":", "return", "CASE_EDEFAULT", "==", "null", "?", "case_", "!=", "null", ":", "!", "CASE_EDEFAULT", ".", "equals", "(", "case_", ")", ";", "case", "ProcessorDslPackage", ".", "CONSTANT__NAME", ":", "return", "NAME_EDEFAULT", "==", "null", "?", "name", "!=", "null", ":", "!", "NAME_EDEFAULT", ".", "equals", "(", "name", ")", ";", "case", "ProcessorDslPackage", ".", "CONSTANT__TYPE", ":", "return", "TYPE_EDEFAULT", "==", "null", "?", "type", "!=", "null", ":", "!", "TYPE_EDEFAULT", ".", "equals", "(", "type", ")", ";", "case", "ProcessorDslPackage", ".", "CONSTANT__VALS", ":", "return", "vals", "!=", "null", "&&", "!", "vals", ".", "isEmpty", "(", ")", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "eIsProxy", "(", ")", ")", "return", "super", ".", "toString", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "super", ".", "toString", "(", ")", ")", ";", "result", ".", "append", "(", "\"", "(case:", "\"", ")", ";", "result", ".", "append", "(", "case_", ")", ";", "result", ".", "append", "(", "\",", "name:", "\"", ")", ";", "result", ".", "append", "(", "name", ")", ";", "result", ".", "append", "(", "\",", "type:", "\"", ")", ";", "result", ".", "append", "(", "type", ")", ";", "result", ".", "append", "(", "\",", "vals:", "\"", ")", ";", "result", ".", "append", "(", "vals", ")", ";", "result", ".", "append", "(", "')'", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
242
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "NotificationChain", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "InternalEObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Column", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Constant", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "DatabaseColumn", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "DatabaseTable", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Identifier", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfMetaSql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSqlFragment", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "IfSqlFragmentImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "IfSqlFragment", "{", "protected", "static", "final", "String", "VALUE_EDEFAULT", "=", "null", ";", "protected", "String", "value", "=", "VALUE_EDEFAULT", ";", "protected", "Column", "col", ";", "protected", "Constant", "cnst", ";", "protected", "Identifier", "ident", ";", "protected", "DatabaseTable", "dbtab", ";", "protected", "DatabaseColumn", "dbcol", ";", "protected", "IfMetaSql", "meta", ";", "protected", "IfSqlFragmentImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "IF_SQL_FRAGMENT", ";", "}", "public", "String", "getValue", "(", ")", "{", "return", "value", ";", "}", "public", "void", "setValue", "(", "String", "newValue", ")", "{", "String", "oldValue", "=", "value", ";", "value", "=", "newValue", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__VALUE", ",", "oldValue", ",", "value", ")", ")", ";", "}", "public", "Column", "getCol", "(", ")", "{", "return", "col", ";", "}", "public", "NotificationChain", "basicSetCol", "(", "Column", "newCol", ",", "NotificationChain", "msgs", ")", "{", "Column", "oldCol", "=", "col", ";", "col", "=", "newCol", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__COL", ",", "oldCol", ",", "newCol", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setCol", "(", "Column", "newCol", ")", "{", "if", "(", "newCol", "!=", "col", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "col", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "col", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__COL", ",", "null", ",", "msgs", ")", ";", "if", "(", "newCol", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newCol", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__COL", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetCol", "(", "newCol", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__COL", ",", "newCol", ",", "newCol", ")", ")", ";", "}", "public", "Constant", "getCnst", "(", ")", "{", "return", "cnst", ";", "}", "public", "NotificationChain", "basicSetCnst", "(", "Constant", "newCnst", ",", "NotificationChain", "msgs", ")", "{", "Constant", "oldCnst", "=", "cnst", ";", "cnst", "=", "newCnst", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__CNST", ",", "oldCnst", ",", "newCnst", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setCnst", "(", "Constant", "newCnst", ")", "{", "if", "(", "newCnst", "!=", "cnst", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "cnst", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "cnst", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__CNST", ",", "null", ",", "msgs", ")", ";", "if", "(", "newCnst", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newCnst", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__CNST", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetCnst", "(", "newCnst", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__CNST", ",", "newCnst", ",", "newCnst", ")", ")", ";", "}", "public", "Identifier", "getIdent", "(", ")", "{", "return", "ident", ";", "}", "public", "NotificationChain", "basicSetIdent", "(", "Identifier", "newIdent", ",", "NotificationChain", "msgs", ")", "{", "Identifier", "oldIdent", "=", "ident", ";", "ident", "=", "newIdent", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__IDENT", ",", "oldIdent", ",", "newIdent", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setIdent", "(", "Identifier", "newIdent", ")", "{", "if", "(", "newIdent", "!=", "ident", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "ident", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "ident", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__IDENT", ",", "null", ",", "msgs", ")", ";", "if", "(", "newIdent", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newIdent", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__IDENT", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetIdent", "(", "newIdent", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__IDENT", ",", "newIdent", ",", "newIdent", ")", ")", ";", "}", "public", "DatabaseTable", "getDbtab", "(", ")", "{", "return", "dbtab", ";", "}", "public", "NotificationChain", "basicSetDbtab", "(", "DatabaseTable", "newDbtab", ",", "NotificationChain", "msgs", ")", "{", "DatabaseTable", "oldDbtab", "=", "dbtab", ";", "dbtab", "=", "newDbtab", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__DBTAB", ",", "oldDbtab", ",", "newDbtab", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setDbtab", "(", "DatabaseTable", "newDbtab", ")", "{", "if", "(", "newDbtab", "!=", "dbtab", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "dbtab", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "dbtab", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__DBTAB", ",", "null", ",", "msgs", ")", ";", "if", "(", "newDbtab", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newDbtab", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__DBTAB", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetDbtab", "(", "newDbtab", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__DBTAB", ",", "newDbtab", ",", "newDbtab", ")", ")", ";", "}", "public", "DatabaseColumn", "getDbcol", "(", ")", "{", "return", "dbcol", ";", "}", "public", "NotificationChain", "basicSetDbcol", "(", "DatabaseColumn", "newDbcol", ",", "NotificationChain", "msgs", ")", "{", "DatabaseColumn", "oldDbcol", "=", "dbcol", ";", "dbcol", "=", "newDbcol", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__DBCOL", ",", "oldDbcol", ",", "newDbcol", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setDbcol", "(", "DatabaseColumn", "newDbcol", ")", "{", "if", "(", "newDbcol", "!=", "dbcol", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "dbcol", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "dbcol", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__DBCOL", ",", "null", ",", "msgs", ")", ";", "if", "(", "newDbcol", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newDbcol", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__DBCOL", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetDbcol", "(", "newDbcol", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__DBCOL", ",", "newDbcol", ",", "newDbcol", ")", ")", ";", "}", "public", "IfMetaSql", "getMeta", "(", ")", "{", "return", "meta", ";", "}", "public", "NotificationChain", "basicSetMeta", "(", "IfMetaSql", "newMeta", ",", "NotificationChain", "msgs", ")", "{", "IfMetaSql", "oldMeta", "=", "meta", ";", "meta", "=", "newMeta", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__META", ",", "oldMeta", ",", "newMeta", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setMeta", "(", "IfMetaSql", "newMeta", ")", "{", "if", "(", "newMeta", "!=", "meta", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "meta", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "meta", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__META", ",", "null", ",", "msgs", ")", ";", "if", "(", "newMeta", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newMeta", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__META", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetMeta", "(", "newMeta", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__META", ",", "newMeta", ",", "newMeta", ")", ")", ";", "}", "@", "Override", "public", "NotificationChain", "eInverseRemove", "(", "InternalEObject", "otherEnd", ",", "int", "featureID", ",", "NotificationChain", "msgs", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__COL", ":", "return", "basicSetCol", "(", "null", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__CNST", ":", "return", "basicSetCnst", "(", "null", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__IDENT", ":", "return", "basicSetIdent", "(", "null", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__DBTAB", ":", "return", "basicSetDbtab", "(", "null", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__DBCOL", ":", "return", "basicSetDbcol", "(", "null", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__META", ":", "return", "basicSetMeta", "(", "null", ",", "msgs", ")", ";", "}", "return", "super", ".", "eInverseRemove", "(", "otherEnd", ",", "featureID", ",", "msgs", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__VALUE", ":", "return", "getValue", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__COL", ":", "return", "getCol", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__CNST", ":", "return", "getCnst", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__IDENT", ":", "return", "getIdent", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__DBTAB", ":", "return", "getDbtab", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__DBCOL", ":", "return", "getDbcol", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__META", ":", "return", "getMeta", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__VALUE", ":", "setValue", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__COL", ":", "setCol", "(", "(", "Column", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__CNST", ":", "setCnst", "(", "(", "Constant", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__IDENT", ":", "setIdent", "(", "(", "Identifier", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__DBTAB", ":", "setDbtab", "(", "(", "DatabaseTable", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__DBCOL", ":", "setDbcol", "(", "(", "DatabaseColumn", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__META", ":", "setMeta", "(", "(", "IfMetaSql", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__VALUE", ":", "setValue", "(", "VALUE_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__COL", ":", "setCol", "(", "(", "Column", ")", "null", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__CNST", ":", "setCnst", "(", "(", "Constant", ")", "null", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__IDENT", ":", "setIdent", "(", "(", "Identifier", ")", "null", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__DBTAB", ":", "setDbtab", "(", "(", "DatabaseTable", ")", "null", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__DBCOL", ":", "setDbcol", "(", "(", "DatabaseColumn", ")", "null", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__META", ":", "setMeta", "(", "(", "IfMetaSql", ")", "null", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__VALUE", ":", "return", "VALUE_EDEFAULT", "==", "null", "?", "value", "!=", "null", ":", "!", "VALUE_EDEFAULT", ".", "equals", "(", "value", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__COL", ":", "return", "col", "!=", "null", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__CNST", ":", "return", "cnst", "!=", "null", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__IDENT", ":", "return", "ident", "!=", "null", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__DBTAB", ":", "return", "dbtab", "!=", "null", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__DBCOL", ":", "return", "dbcol", "!=", "null", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT__META", ":", "return", "meta", "!=", "null", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "eIsProxy", "(", ")", ")", "return", "super", ".", "toString", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "super", ".", "toString", "(", ")", ")", ";", "result", ".", "append", "(", "\"", "(value:", "\"", ")", ";", "result", ".", "append", "(", "value", ")", ";", "result", ".", "append", "(", "')'", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
243
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "TableDefinition", ";", "public", "class", "TableDefinitionImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "TableDefinition", "{", "protected", "static", "final", "String", "NAME_EDEFAULT", "=", "null", ";", "protected", "String", "name", "=", "NAME_EDEFAULT", ";", "protected", "static", "final", "String", "TABLE_EDEFAULT", "=", "null", ";", "protected", "String", "table", "=", "TABLE_EDEFAULT", ";", "protected", "TableDefinitionImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "TABLE_DEFINITION", ";", "}", "public", "String", "getName", "(", ")", "{", "return", "name", ";", "}", "public", "void", "setName", "(", "String", "newName", ")", "{", "String", "oldName", "=", "name", ";", "name", "=", "newName", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "TABLE_DEFINITION__NAME", ",", "oldName", ",", "name", ")", ")", ";", "}", "public", "String", "getTable", "(", ")", "{", "return", "table", ";", "}", "public", "void", "setTable", "(", "String", "newTable", ")", "{", "String", "oldTable", "=", "table", ";", "table", "=", "newTable", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "TABLE_DEFINITION__TABLE", ",", "oldTable", ",", "table", ")", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "TABLE_DEFINITION__NAME", ":", "return", "getName", "(", ")", ";", "case", "ProcessorDslPackage", ".", "TABLE_DEFINITION__TABLE", ":", "return", "getTable", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "TABLE_DEFINITION__NAME", ":", "setName", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "TABLE_DEFINITION__TABLE", ":", "setTable", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "TABLE_DEFINITION__NAME", ":", "setName", "(", "NAME_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "TABLE_DEFINITION__TABLE", ":", "setTable", "(", "TABLE_EDEFAULT", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "TABLE_DEFINITION__NAME", ":", "return", "NAME_EDEFAULT", "==", "null", "?", "name", "!=", "null", ":", "!", "NAME_EDEFAULT", ".", "equals", "(", "name", ")", ";", "case", "ProcessorDslPackage", ".", "TABLE_DEFINITION__TABLE", ":", "return", "TABLE_EDEFAULT", "==", "null", "?", "table", "!=", "null", ":", "!", "TABLE_EDEFAULT", ".", "equals", "(", "table", ")", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "eIsProxy", "(", ")", ")", "return", "super", ".", "toString", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "super", ".", "toString", "(", ")", ")", ";", "result", ".", "append", "(", "\"", "(name:", "\"", ")", ";", "result", ".", "append", "(", "name", ")", ";", "result", ".", "append", "(", "\",", "table:", "\"", ")", ";", "result", ".", "append", "(", "table", ")", ";", "result", ".", "append", "(", "')'", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
244
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "java", ".", "util", ".", "Collection", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "NotificationChain", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "InternalEObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "EObjectContainmentEList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "InternalEList", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfMetaSql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSqlCond", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "IfMetaSqlImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "IfMetaSql", "{", "protected", "EList", "<", "IfSql", ">", "ifs", ";", "protected", "static", "final", "String", "TYPE_EDEFAULT", "=", "null", ";", "protected", "String", "type", "=", "TYPE_EDEFAULT", ";", "protected", "IfSqlCond", "cond", ";", "protected", "IfMetaSqlImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "IF_META_SQL", ";", "}", "public", "EList", "<", "IfSql", ">", "getIfs", "(", ")", "{", "if", "(", "ifs", "==", "null", ")", "{", "ifs", "=", "new", "EObjectContainmentEList", "<", "IfSql", ">", "(", "IfSql", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "IF_META_SQL__IFS", ")", ";", "}", "return", "ifs", ";", "}", "public", "String", "getType", "(", ")", "{", "return", "type", ";", "}", "public", "void", "setType", "(", "String", "newType", ")", "{", "String", "oldType", "=", "type", ";", "type", "=", "newType", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_META_SQL__TYPE", ",", "oldType", ",", "type", ")", ")", ";", "}", "public", "IfSqlCond", "getCond", "(", ")", "{", "return", "cond", ";", "}", "public", "NotificationChain", "basicSetCond", "(", "IfSqlCond", "newCond", ",", "NotificationChain", "msgs", ")", "{", "IfSqlCond", "oldCond", "=", "cond", ";", "cond", "=", "newCond", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_META_SQL__COND", ",", "oldCond", ",", "newCond", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setCond", "(", "IfSqlCond", "newCond", ")", "{", "if", "(", "newCond", "!=", "cond", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "cond", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "cond", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_META_SQL__COND", ",", "null", ",", "msgs", ")", ";", "if", "(", "newCond", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newCond", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_META_SQL__COND", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetCond", "(", "newCond", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_META_SQL__COND", ",", "newCond", ",", "newCond", ")", ")", ";", "}", "@", "Override", "public", "NotificationChain", "eInverseRemove", "(", "InternalEObject", "otherEnd", ",", "int", "featureID", ",", "NotificationChain", "msgs", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_META_SQL__IFS", ":", "return", "(", "(", "InternalEList", "<", "?", ">", ")", "getIfs", "(", ")", ")", ".", "basicRemove", "(", "otherEnd", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "IF_META_SQL__COND", ":", "return", "basicSetCond", "(", "null", ",", "msgs", ")", ";", "}", "return", "super", ".", "eInverseRemove", "(", "otherEnd", ",", "featureID", ",", "msgs", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_META_SQL__IFS", ":", "return", "getIfs", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IF_META_SQL__TYPE", ":", "return", "getType", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IF_META_SQL__COND", ":", "return", "getCond", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_META_SQL__IFS", ":", "getIfs", "(", ")", ".", "clear", "(", ")", ";", "getIfs", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "IfSql", ">", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_META_SQL__TYPE", ":", "setType", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_META_SQL__COND", ":", "setCond", "(", "(", "IfSqlCond", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_META_SQL__IFS", ":", "getIfs", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_META_SQL__TYPE", ":", "setType", "(", "TYPE_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_META_SQL__COND", ":", "setCond", "(", "(", "IfSqlCond", ")", "null", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_META_SQL__IFS", ":", "return", "ifs", "!=", "null", "&&", "!", "ifs", ".", "isEmpty", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IF_META_SQL__TYPE", ":", "return", "TYPE_EDEFAULT", "==", "null", "?", "type", "!=", "null", ":", "!", "TYPE_EDEFAULT", ".", "equals", "(", "type", ")", ";", "case", "ProcessorDslPackage", ".", "IF_META_SQL__COND", ":", "return", "cond", "!=", "null", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "eIsProxy", "(", ")", ")", "return", "super", ".", "toString", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "super", ".", "toString", "(", ")", ")", ";", "result", ".", "append", "(", "\"", "(type:", "\"", ")", ";", "result", ".", "append", "(", "type", ")", ";", "result", ".", "append", "(", "')'", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
245
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "DatabaseTable", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "DatabaseTableImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "DatabaseTable", "{", "protected", "static", "final", "String", "NAME_EDEFAULT", "=", "null", ";", "protected", "String", "name", "=", "NAME_EDEFAULT", ";", "protected", "DatabaseTableImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "DATABASE_TABLE", ";", "}", "public", "String", "getName", "(", ")", "{", "return", "name", ";", "}", "public", "void", "setName", "(", "String", "newName", ")", "{", "String", "oldName", "=", "name", ";", "name", "=", "newName", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "DATABASE_TABLE__NAME", ",", "oldName", ",", "name", ")", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "DATABASE_TABLE__NAME", ":", "return", "getName", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "DATABASE_TABLE__NAME", ":", "setName", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "DATABASE_TABLE__NAME", ":", "setName", "(", "NAME_EDEFAULT", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "DATABASE_TABLE__NAME", ":", "return", "NAME_EDEFAULT", "==", "null", "?", "name", "!=", "null", ":", "!", "NAME_EDEFAULT", ".", "equals", "(", "name", ")", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "eIsProxy", "(", ")", ")", "return", "super", ".", "toString", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "super", ".", "toString", "(", ")", ")", ";", "result", ".", "append", "(", "\"", "(name:", "\"", ")", ";", "result", ".", "append", "(", "name", ")", ";", "result", ".", "append", "(", "')'", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
246
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "NotificationChain", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "InternalEObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Constant", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Identifier", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSqlBool", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSqlCond", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "IfSqlBoolImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "IfSqlBool", "{", "protected", "static", "final", "boolean", "NOT_EDEFAULT", "=", "false", ";", "protected", "boolean", "not", "=", "NOT_EDEFAULT", ";", "protected", "Constant", "cnst", ";", "protected", "Identifier", "ident", ";", "protected", "IfSqlCond", "cond", ";", "protected", "IfSqlBoolImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "IF_SQL_BOOL", ";", "}", "public", "boolean", "isNot", "(", ")", "{", "return", "not", ";", "}", "public", "void", "setNot", "(", "boolean", "newNot", ")", "{", "boolean", "oldNot", "=", "not", ";", "not", "=", "newNot", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_BOOL__NOT", ",", "oldNot", ",", "not", ")", ")", ";", "}", "public", "Constant", "getCnst", "(", ")", "{", "return", "cnst", ";", "}", "public", "NotificationChain", "basicSetCnst", "(", "Constant", "newCnst", ",", "NotificationChain", "msgs", ")", "{", "Constant", "oldCnst", "=", "cnst", ";", "cnst", "=", "newCnst", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_BOOL__CNST", ",", "oldCnst", ",", "newCnst", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setCnst", "(", "Constant", "newCnst", ")", "{", "if", "(", "newCnst", "!=", "cnst", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "cnst", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "cnst", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_SQL_BOOL__CNST", ",", "null", ",", "msgs", ")", ";", "if", "(", "newCnst", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newCnst", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_SQL_BOOL__CNST", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetCnst", "(", "newCnst", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_BOOL__CNST", ",", "newCnst", ",", "newCnst", ")", ")", ";", "}", "public", "Identifier", "getIdent", "(", ")", "{", "return", "ident", ";", "}", "public", "NotificationChain", "basicSetIdent", "(", "Identifier", "newIdent", ",", "NotificationChain", "msgs", ")", "{", "Identifier", "oldIdent", "=", "ident", ";", "ident", "=", "newIdent", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_BOOL__IDENT", ",", "oldIdent", ",", "newIdent", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setIdent", "(", "Identifier", "newIdent", ")", "{", "if", "(", "newIdent", "!=", "ident", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "ident", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "ident", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_SQL_BOOL__IDENT", ",", "null", ",", "msgs", ")", ";", "if", "(", "newIdent", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newIdent", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_SQL_BOOL__IDENT", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetIdent", "(", "newIdent", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_BOOL__IDENT", ",", "newIdent", ",", "newIdent", ")", ")", ";", "}", "public", "IfSqlCond", "getCond", "(", ")", "{", "return", "cond", ";", "}", "public", "NotificationChain", "basicSetCond", "(", "IfSqlCond", "newCond", ",", "NotificationChain", "msgs", ")", "{", "IfSqlCond", "oldCond", "=", "cond", ";", "cond", "=", "newCond", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_BOOL__COND", ",", "oldCond", ",", "newCond", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setCond", "(", "IfSqlCond", "newCond", ")", "{", "if", "(", "newCond", "!=", "cond", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "cond", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "cond", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_SQL_BOOL__COND", ",", "null", ",", "msgs", ")", ";", "if", "(", "newCond", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newCond", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "IF_SQL_BOOL__COND", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetCond", "(", "newCond", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IF_SQL_BOOL__COND", ",", "newCond", ",", "newCond", ")", ")", ";", "}", "@", "Override", "public", "NotificationChain", "eInverseRemove", "(", "InternalEObject", "otherEnd", ",", "int", "featureID", ",", "NotificationChain", "msgs", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL__CNST", ":", "return", "basicSetCnst", "(", "null", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL__IDENT", ":", "return", "basicSetIdent", "(", "null", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL__COND", ":", "return", "basicSetCond", "(", "null", ",", "msgs", ")", ";", "}", "return", "super", ".", "eInverseRemove", "(", "otherEnd", ",", "featureID", ",", "msgs", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL__NOT", ":", "return", "isNot", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL__CNST", ":", "return", "getCnst", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL__IDENT", ":", "return", "getIdent", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL__COND", ":", "return", "getCond", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL__NOT", ":", "setNot", "(", "(", "Boolean", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL__CNST", ":", "setCnst", "(", "(", "Constant", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL__IDENT", ":", "setIdent", "(", "(", "Identifier", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL__COND", ":", "setCond", "(", "(", "IfSqlCond", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL__NOT", ":", "setNot", "(", "NOT_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL__CNST", ":", "setCnst", "(", "(", "Constant", ")", "null", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL__IDENT", ":", "setIdent", "(", "(", "Identifier", ")", "null", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL__COND", ":", "setCond", "(", "(", "IfSqlCond", ")", "null", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL__NOT", ":", "return", "not", "!=", "NOT_EDEFAULT", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL__CNST", ":", "return", "cnst", "!=", "null", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL__IDENT", ":", "return", "ident", "!=", "null", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL__COND", ":", "return", "cond", "!=", "null", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "eIsProxy", "(", ")", ")", "return", "super", ".", "toString", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "super", ".", "toString", "(", ")", ")", ";", "result", ".", "append", "(", "\"", "(not:", "\"", ")", ";", "result", ".", "append", "(", "not", ")", ";", "result", ".", "append", "(", "')'", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
247
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "java", ".", "util", ".", "Collection", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "EDataTypeEList", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "OptionalFeature", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "OptionalFeatureImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "OptionalFeature", "{", "protected", "static", "final", "String", "NAME_EDEFAULT", "=", "null", ";", "protected", "String", "name", "=", "NAME_EDEFAULT", ";", "protected", "static", "final", "String", "TYPE_EDEFAULT", "=", "null", ";", "protected", "String", "type", "=", "TYPE_EDEFAULT", ";", "protected", "EList", "<", "String", ">", "filters", ";", "protected", "static", "final", "String", "OPTION_EDEFAULT", "=", "null", ";", "protected", "String", "option", "=", "OPTION_EDEFAULT", ";", "protected", "OptionalFeatureImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "OPTIONAL_FEATURE", ";", "}", "public", "String", "getName", "(", ")", "{", "return", "name", ";", "}", "public", "void", "setName", "(", "String", "newName", ")", "{", "String", "oldName", "=", "name", ";", "name", "=", "newName", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE__NAME", ",", "oldName", ",", "name", ")", ")", ";", "}", "public", "String", "getType", "(", ")", "{", "return", "type", ";", "}", "public", "void", "setType", "(", "String", "newType", ")", "{", "String", "oldType", "=", "type", ";", "type", "=", "newType", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE__TYPE", ",", "oldType", ",", "type", ")", ")", ";", "}", "public", "EList", "<", "String", ">", "getFilters", "(", ")", "{", "if", "(", "filters", "==", "null", ")", "{", "filters", "=", "new", "EDataTypeEList", "<", "String", ">", "(", "String", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE__FILTERS", ")", ";", "}", "return", "filters", ";", "}", "public", "String", "getOption", "(", ")", "{", "return", "option", ";", "}", "public", "void", "setOption", "(", "String", "newOption", ")", "{", "String", "oldOption", "=", "option", ";", "option", "=", "newOption", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE__OPTION", ",", "oldOption", ",", "option", ")", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE__NAME", ":", "return", "getName", "(", ")", ";", "case", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE__TYPE", ":", "return", "getType", "(", ")", ";", "case", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE__FILTERS", ":", "return", "getFilters", "(", ")", ";", "case", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE__OPTION", ":", "return", "getOption", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE__NAME", ":", "setName", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE__TYPE", ":", "setType", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE__FILTERS", ":", "getFilters", "(", ")", ".", "clear", "(", ")", ";", "getFilters", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "String", ">", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE__OPTION", ":", "setOption", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE__NAME", ":", "setName", "(", "NAME_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE__TYPE", ":", "setType", "(", "TYPE_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE__FILTERS", ":", "getFilters", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE__OPTION", ":", "setOption", "(", "OPTION_EDEFAULT", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE__NAME", ":", "return", "NAME_EDEFAULT", "==", "null", "?", "name", "!=", "null", ":", "!", "NAME_EDEFAULT", ".", "equals", "(", "name", ")", ";", "case", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE__TYPE", ":", "return", "TYPE_EDEFAULT", "==", "null", "?", "type", "!=", "null", ":", "!", "TYPE_EDEFAULT", ".", "equals", "(", "type", ")", ";", "case", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE__FILTERS", ":", "return", "filters", "!=", "null", "&&", "!", "filters", ".", "isEmpty", "(", ")", ";", "case", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE__OPTION", ":", "return", "OPTION_EDEFAULT", "==", "null", "?", "option", "!=", "null", ":", "!", "OPTION_EDEFAULT", ".", "equals", "(", "option", ")", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "eIsProxy", "(", ")", ")", "return", "super", ".", "toString", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "super", ".", "toString", "(", ")", ")", ";", "result", ".", "append", "(", "\"", "(name:", "\"", ")", ";", "result", ".", "append", "(", "name", ")", ";", "result", ".", "append", "(", "\",", "type:", "\"", ")", ";", "result", ".", "append", "(", "type", ")", ";", "result", ".", "append", "(", "\",", "filters:", "\"", ")", ";", "result", ".", "append", "(", "filters", ")", ";", "result", ".", "append", "(", "\",", "option:", "\"", ")", ";", "result", ".", "append", "(", "option", ")", ";", "result", ".", "append", "(", "')'", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
248
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EPackage", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "EFactoryImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "plugin", ".", "EcorePlugin", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "*", ";", "public", "class", "ProcessorDslFactoryImpl", "extends", "EFactoryImpl", "implements", "ProcessorDslFactory", "{", "public", "static", "ProcessorDslFactory", "init", "(", ")", "{", "try", "{", "ProcessorDslFactory", "theProcessorDslFactory", "=", "(", "ProcessorDslFactory", ")", "EPackage", ".", "Registry", ".", "INSTANCE", ".", "getEFactory", "(", "\"\"", ")", ";", "if", "(", "theProcessorDslFactory", "!=", "null", ")", "{", "return", "theProcessorDslFactory", ";", "}", "}", "catch", "(", "Exception", "exception", ")", "{", "EcorePlugin", ".", "INSTANCE", ".", "log", "(", "exception", ")", ";", "}", "return", "new", "ProcessorDslFactoryImpl", "(", ")", ";", "}", "public", "ProcessorDslFactoryImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "public", "EObject", "create", "(", "EClass", "eClass", ")", "{", "switch", "(", "eClass", ".", "getClassifierID", "(", ")", ")", "{", "case", "ProcessorDslPackage", ".", "ARTIFACTS", ":", "return", "createArtifacts", "(", ")", ";", "case", "ProcessorDslPackage", ".", "PROPERTY", ":", "return", "createProperty", "(", ")", ";", "case", "ProcessorDslPackage", ".", "POJO_DEFINITION", ":", "return", "createPojoDefinition", "(", ")", ";", "case", "ProcessorDslPackage", ".", "POJO_USAGE", ":", "return", "createPojoUsage", "(", ")", ";", "case", "ProcessorDslPackage", ".", "COLUMN_USAGE", ":", "return", "createColumnUsage", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IDENTIFIER_USAGE", ":", "return", "createIdentifierUsage", "(", ")", ";", "case", "ProcessorDslPackage", ".", "CONSTANT_USAGE", ":", "return", "createConstantUsage", "(", ")", ";", "case", "ProcessorDslPackage", ".", "MAPPING_USAGE", ":", "return", "createMappingUsage", "(", ")", ";", "case", "ProcessorDslPackage", ".", "TABLE_DEFINITION", ":", "return", "createTableDefinition", "(", ")", ";", "case", "ProcessorDslPackage", ".", "TABLE_USAGE", ":", "return", "createTableUsage", "(", ")", ";", "case", "ProcessorDslPackage", ".", "META_STATEMENT", ":", "return", "createMetaStatement", "(", ")", ";", "case", "ProcessorDslPackage", ".", "SQL", ":", "return", "createSql", "(", ")", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT", ":", "return", "createSqlFragment", "(", ")", ";", "case", "ProcessorDslPackage", ".", "META_SQL", ":", "return", "createMetaSql", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL", ":", "return", "createIfSql", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT", ":", "return", "createIfSqlFragment", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IF_META_SQL", ":", "return", "createIfMetaSql", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_COND", ":", "return", "createIfSqlCond", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL", ":", "return", "createIfSqlBool", "(", ")", ";", "case", "ProcessorDslPackage", ".", "ORD_SQL", ":", "return", "createOrdSql", "(", ")", ";", "case", "ProcessorDslPackage", ".", "ORD_SQL2", ":", "return", "createOrdSql2", "(", ")", ";", "case", "ProcessorDslPackage", ".", "COLUMN", ":", "return", "createColumn", "(", ")", ";", "case", "ProcessorDslPackage", ".", "CONSTANT", ":", "return", "createConstant", "(", ")", ";", "case", "ProcessorDslPackage", ".", "IDENTIFIER", ":", "return", "createIdentifier", "(", ")", ";", "case", "ProcessorDslPackage", ".", "DATABASE_COLUMN", ":", "return", "createDatabaseColumn", "(", ")", ";", "case", "ProcessorDslPackage", ".", "DATABASE_TABLE", ":", "return", "createDatabaseTable", "(", ")", ";", "case", "ProcessorDslPackage", ".", "MAPPING_RULE", ":", "return", "createMappingRule", "(", ")", ";", "case", "ProcessorDslPackage", ".", "MAPPING", ":", "return", "createMapping", "(", ")", ";", "case", "ProcessorDslPackage", ".", "MAPPING_ITEM", ":", "return", "createMappingItem", "(", ")", ";", "case", "ProcessorDslPackage", ".", "MAPPING_COLUMN", ":", "return", "createMappingColumn", "(", ")", ";", "case", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE", ":", "return", "createOptionalFeature", "(", ")", ";", "default", ":", "throw", "new", "IllegalArgumentException", "(", "\"The", "class", "'\"", "+", "eClass", ".", "getName", "(", ")", "+", "\"\"", ")", ";", "}", "}", "public", "Artifacts", "createArtifacts", "(", ")", "{", "ArtifactsImpl", "artifacts", "=", "new", "ArtifactsImpl", "(", ")", ";", "return", "artifacts", ";", "}", "public", "Property", "createProperty", "(", ")", "{", "PropertyImpl", "property", "=", "new", "PropertyImpl", "(", ")", ";", "return", "property", ";", "}", "public", "PojoDefinition", "createPojoDefinition", "(", ")", "{", "PojoDefinitionImpl", "pojoDefinition", "=", "new", "PojoDefinitionImpl", "(", ")", ";", "return", "pojoDefinition", ";", "}", "public", "PojoUsage", "createPojoUsage", "(", ")", "{", "PojoUsageImpl", "pojoUsage", "=", "new", "PojoUsageImpl", "(", ")", ";", "return", "pojoUsage", ";", "}", "public", "ColumnUsage", "createColumnUsage", "(", ")", "{", "ColumnUsageImpl", "columnUsage", "=", "new", "ColumnUsageImpl", "(", ")", ";", "return", "columnUsage", ";", "}", "public", "IdentifierUsage", "createIdentifierUsage", "(", ")", "{", "IdentifierUsageImpl", "identifierUsage", "=", "new", "IdentifierUsageImpl", "(", ")", ";", "return", "identifierUsage", ";", "}", "public", "ConstantUsage", "createConstantUsage", "(", ")", "{", "ConstantUsageImpl", "constantUsage", "=", "new", "ConstantUsageImpl", "(", ")", ";", "return", "constantUsage", ";", "}", "public", "MappingUsage", "createMappingUsage", "(", ")", "{", "MappingUsageImpl", "mappingUsage", "=", "new", "MappingUsageImpl", "(", ")", ";", "return", "mappingUsage", ";", "}", "public", "TableDefinition", "createTableDefinition", "(", ")", "{", "TableDefinitionImpl", "tableDefinition", "=", "new", "TableDefinitionImpl", "(", ")", ";", "return", "tableDefinition", ";", "}", "public", "TableUsage", "createTableUsage", "(", ")", "{", "TableUsageImpl", "tableUsage", "=", "new", "TableUsageImpl", "(", ")", ";", "return", "tableUsage", ";", "}", "public", "MetaStatement", "createMetaStatement", "(", ")", "{", "MetaStatementImpl", "metaStatement", "=", "new", "MetaStatementImpl", "(", ")", ";", "return", "metaStatement", ";", "}", "public", "Sql", "createSql", "(", ")", "{", "SqlImpl", "sql", "=", "new", "SqlImpl", "(", ")", ";", "return", "sql", ";", "}", "public", "SqlFragment", "createSqlFragment", "(", ")", "{", "SqlFragmentImpl", "sqlFragment", "=", "new", "SqlFragmentImpl", "(", ")", ";", "return", "sqlFragment", ";", "}", "public", "MetaSql", "createMetaSql", "(", ")", "{", "MetaSqlImpl", "metaSql", "=", "new", "MetaSqlImpl", "(", ")", ";", "return", "metaSql", ";", "}", "public", "IfSql", "createIfSql", "(", ")", "{", "IfSqlImpl", "ifSql", "=", "new", "IfSqlImpl", "(", ")", ";", "return", "ifSql", ";", "}", "public", "IfSqlFragment", "createIfSqlFragment", "(", ")", "{", "IfSqlFragmentImpl", "ifSqlFragment", "=", "new", "IfSqlFragmentImpl", "(", ")", ";", "return", "ifSqlFragment", ";", "}", "public", "IfMetaSql", "createIfMetaSql", "(", ")", "{", "IfMetaSqlImpl", "ifMetaSql", "=", "new", "IfMetaSqlImpl", "(", ")", ";", "return", "ifMetaSql", ";", "}", "public", "IfSqlCond", "createIfSqlCond", "(", ")", "{", "IfSqlCondImpl", "ifSqlCond", "=", "new", "IfSqlCondImpl", "(", ")", ";", "return", "ifSqlCond", ";", "}", "public", "IfSqlBool", "createIfSqlBool", "(", ")", "{", "IfSqlBoolImpl", "ifSqlBool", "=", "new", "IfSqlBoolImpl", "(", ")", ";", "return", "ifSqlBool", ";", "}", "public", "OrdSql", "createOrdSql", "(", ")", "{", "OrdSqlImpl", "ordSql", "=", "new", "OrdSqlImpl", "(", ")", ";", "return", "ordSql", ";", "}", "public", "OrdSql2", "createOrdSql2", "(", ")", "{", "OrdSql2Impl", "ordSql2", "=", "new", "OrdSql2Impl", "(", ")", ";", "return", "ordSql2", ";", "}", "public", "Column", "createColumn", "(", ")", "{", "ColumnImpl", "column", "=", "new", "ColumnImpl", "(", ")", ";", "return", "column", ";", "}", "public", "Constant", "createConstant", "(", ")", "{", "ConstantImpl", "constant", "=", "new", "ConstantImpl", "(", ")", ";", "return", "constant", ";", "}", "public", "Identifier", "createIdentifier", "(", ")", "{", "IdentifierImpl", "identifier", "=", "new", "IdentifierImpl", "(", ")", ";", "return", "identifier", ";", "}", "public", "DatabaseColumn", "createDatabaseColumn", "(", ")", "{", "DatabaseColumnImpl", "databaseColumn", "=", "new", "DatabaseColumnImpl", "(", ")", ";", "return", "databaseColumn", ";", "}", "public", "DatabaseTable", "createDatabaseTable", "(", ")", "{", "DatabaseTableImpl", "databaseTable", "=", "new", "DatabaseTableImpl", "(", ")", ";", "return", "databaseTable", ";", "}", "public", "MappingRule", "createMappingRule", "(", ")", "{", "MappingRuleImpl", "mappingRule", "=", "new", "MappingRuleImpl", "(", ")", ";", "return", "mappingRule", ";", "}", "public", "Mapping", "createMapping", "(", ")", "{", "MappingImpl", "mapping", "=", "new", "MappingImpl", "(", ")", ";", "return", "mapping", ";", "}", "public", "MappingItem", "createMappingItem", "(", ")", "{", "MappingItemImpl", "mappingItem", "=", "new", "MappingItemImpl", "(", ")", ";", "return", "mappingItem", ";", "}", "public", "MappingColumn", "createMappingColumn", "(", ")", "{", "MappingColumnImpl", "mappingColumn", "=", "new", "MappingColumnImpl", "(", ")", ";", "return", "mappingColumn", ";", "}", "public", "OptionalFeature", "createOptionalFeature", "(", ")", "{", "OptionalFeatureImpl", "optionalFeature", "=", "new", "OptionalFeatureImpl", "(", ")", ";", "return", "optionalFeature", ";", "}", "public", "ProcessorDslPackage", "getProcessorDslPackage", "(", ")", "{", "return", "(", "ProcessorDslPackage", ")", "getEPackage", "(", ")", ";", "}", "@", "Deprecated", "public", "static", "ProcessorDslPackage", "getPackage", "(", ")", "{", "return", "ProcessorDslPackage", ".", "eINSTANCE", ";", "}", "}", "</s>" ]
249
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "InternalEObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IdentifierUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MetaStatement", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "IdentifierUsageImpl", "extends", "PojoUsageImpl", "implements", "IdentifierUsage", "{", "protected", "MetaStatement", "statement", ";", "protected", "IdentifierUsageImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "IDENTIFIER_USAGE", ";", "}", "public", "MetaStatement", "getStatement", "(", ")", "{", "if", "(", "statement", "!=", "null", "&&", "statement", ".", "eIsProxy", "(", ")", ")", "{", "InternalEObject", "oldStatement", "=", "(", "InternalEObject", ")", "statement", ";", "statement", "=", "(", "MetaStatement", ")", "eResolveProxy", "(", "oldStatement", ")", ";", "if", "(", "statement", "!=", "oldStatement", ")", "{", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "RESOLVE", ",", "ProcessorDslPackage", ".", "IDENTIFIER_USAGE__STATEMENT", ",", "oldStatement", ",", "statement", ")", ")", ";", "}", "}", "return", "statement", ";", "}", "public", "MetaStatement", "basicGetStatement", "(", ")", "{", "return", "statement", ";", "}", "public", "void", "setStatement", "(", "MetaStatement", "newStatement", ")", "{", "MetaStatement", "oldStatement", "=", "statement", ";", "statement", "=", "newStatement", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "IDENTIFIER_USAGE__STATEMENT", ",", "oldStatement", ",", "statement", ")", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IDENTIFIER_USAGE__STATEMENT", ":", "if", "(", "resolve", ")", "return", "getStatement", "(", ")", ";", "return", "basicGetStatement", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IDENTIFIER_USAGE__STATEMENT", ":", "setStatement", "(", "(", "MetaStatement", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IDENTIFIER_USAGE__STATEMENT", ":", "setStatement", "(", "(", "MetaStatement", ")", "null", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "IDENTIFIER_USAGE__STATEMENT", ":", "return", "statement", "!=", "null", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "}", "</s>" ]
250
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "java", ".", "util", ".", "Collection", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "NotificationChain", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "InternalEObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "EObjectContainmentEList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "InternalEList", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSqlCond", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MetaSql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "OrdSql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "MetaSqlImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "MetaSql", "{", "protected", "EList", "<", "IfSql", ">", "ifs", ";", "protected", "static", "final", "String", "TYPE_EDEFAULT", "=", "null", ";", "protected", "String", "type", "=", "TYPE_EDEFAULT", ";", "protected", "IfSqlCond", "cond", ";", "protected", "static", "final", "String", "FTYPE_EDEFAULT", "=", "null", ";", "protected", "String", "ftype", "=", "FTYPE_EDEFAULT", ";", "protected", "OrdSql", "ord", ";", "protected", "MetaSqlImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "META_SQL", ";", "}", "public", "EList", "<", "IfSql", ">", "getIfs", "(", ")", "{", "if", "(", "ifs", "==", "null", ")", "{", "ifs", "=", "new", "EObjectContainmentEList", "<", "IfSql", ">", "(", "IfSql", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "META_SQL__IFS", ")", ";", "}", "return", "ifs", ";", "}", "public", "String", "getType", "(", ")", "{", "return", "type", ";", "}", "public", "void", "setType", "(", "String", "newType", ")", "{", "String", "oldType", "=", "type", ";", "type", "=", "newType", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "META_SQL__TYPE", ",", "oldType", ",", "type", ")", ")", ";", "}", "public", "IfSqlCond", "getCond", "(", ")", "{", "return", "cond", ";", "}", "public", "NotificationChain", "basicSetCond", "(", "IfSqlCond", "newCond", ",", "NotificationChain", "msgs", ")", "{", "IfSqlCond", "oldCond", "=", "cond", ";", "cond", "=", "newCond", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "META_SQL__COND", ",", "oldCond", ",", "newCond", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setCond", "(", "IfSqlCond", "newCond", ")", "{", "if", "(", "newCond", "!=", "cond", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "cond", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "cond", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "META_SQL__COND", ",", "null", ",", "msgs", ")", ";", "if", "(", "newCond", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newCond", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "META_SQL__COND", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetCond", "(", "newCond", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "META_SQL__COND", ",", "newCond", ",", "newCond", ")", ")", ";", "}", "public", "String", "getFtype", "(", ")", "{", "return", "ftype", ";", "}", "public", "void", "setFtype", "(", "String", "newFtype", ")", "{", "String", "oldFtype", "=", "ftype", ";", "ftype", "=", "newFtype", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "META_SQL__FTYPE", ",", "oldFtype", ",", "ftype", ")", ")", ";", "}", "public", "OrdSql", "getOrd", "(", ")", "{", "return", "ord", ";", "}", "public", "NotificationChain", "basicSetOrd", "(", "OrdSql", "newOrd", ",", "NotificationChain", "msgs", ")", "{", "OrdSql", "oldOrd", "=", "ord", ";", "ord", "=", "newOrd", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "META_SQL__ORD", ",", "oldOrd", ",", "newOrd", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setOrd", "(", "OrdSql", "newOrd", ")", "{", "if", "(", "newOrd", "!=", "ord", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "ord", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "ord", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "META_SQL__ORD", ",", "null", ",", "msgs", ")", ";", "if", "(", "newOrd", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newOrd", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "META_SQL__ORD", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetOrd", "(", "newOrd", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "META_SQL__ORD", ",", "newOrd", ",", "newOrd", ")", ")", ";", "}", "@", "Override", "public", "NotificationChain", "eInverseRemove", "(", "InternalEObject", "otherEnd", ",", "int", "featureID", ",", "NotificationChain", "msgs", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "META_SQL__IFS", ":", "return", "(", "(", "InternalEList", "<", "?", ">", ")", "getIfs", "(", ")", ")", ".", "basicRemove", "(", "otherEnd", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "META_SQL__COND", ":", "return", "basicSetCond", "(", "null", ",", "msgs", ")", ";", "case", "ProcessorDslPackage", ".", "META_SQL__ORD", ":", "return", "basicSetOrd", "(", "null", ",", "msgs", ")", ";", "}", "return", "super", ".", "eInverseRemove", "(", "otherEnd", ",", "featureID", ",", "msgs", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "META_SQL__IFS", ":", "return", "getIfs", "(", ")", ";", "case", "ProcessorDslPackage", ".", "META_SQL__TYPE", ":", "return", "getType", "(", ")", ";", "case", "ProcessorDslPackage", ".", "META_SQL__COND", ":", "return", "getCond", "(", ")", ";", "case", "ProcessorDslPackage", ".", "META_SQL__FTYPE", ":", "return", "getFtype", "(", ")", ";", "case", "ProcessorDslPackage", ".", "META_SQL__ORD", ":", "return", "getOrd", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "META_SQL__IFS", ":", "getIfs", "(", ")", ".", "clear", "(", ")", ";", "getIfs", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "IfSql", ">", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "META_SQL__TYPE", ":", "setType", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "META_SQL__COND", ":", "setCond", "(", "(", "IfSqlCond", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "META_SQL__FTYPE", ":", "setFtype", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "META_SQL__ORD", ":", "setOrd", "(", "(", "OrdSql", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "META_SQL__IFS", ":", "getIfs", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "META_SQL__TYPE", ":", "setType", "(", "TYPE_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "META_SQL__COND", ":", "setCond", "(", "(", "IfSqlCond", ")", "null", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "META_SQL__FTYPE", ":", "setFtype", "(", "FTYPE_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "META_SQL__ORD", ":", "setOrd", "(", "(", "OrdSql", ")", "null", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "META_SQL__IFS", ":", "return", "ifs", "!=", "null", "&&", "!", "ifs", ".", "isEmpty", "(", ")", ";", "case", "ProcessorDslPackage", ".", "META_SQL__TYPE", ":", "return", "TYPE_EDEFAULT", "==", "null", "?", "type", "!=", "null", ":", "!", "TYPE_EDEFAULT", ".", "equals", "(", "type", ")", ";", "case", "ProcessorDslPackage", ".", "META_SQL__COND", ":", "return", "cond", "!=", "null", ";", "case", "ProcessorDslPackage", ".", "META_SQL__FTYPE", ":", "return", "FTYPE_EDEFAULT", "==", "null", "?", "ftype", "!=", "null", ":", "!", "FTYPE_EDEFAULT", ".", "equals", "(", "ftype", ")", ";", "case", "ProcessorDslPackage", ".", "META_SQL__ORD", ":", "return", "ord", "!=", "null", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "eIsProxy", "(", ")", ")", "return", "super", ".", "toString", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "super", ".", "toString", "(", ")", ")", ";", "result", ".", "append", "(", "\"", "(type:", "\"", ")", ";", "result", ".", "append", "(", "type", ")", ";", "result", ".", "append", "(", "\",", "ftype:", "\"", ")", ";", "result", ".", "append", "(", "ftype", ")", ";", "result", ".", "append", "(", "')'", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
251
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "NotificationChain", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "InternalEObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingColumn", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingItem", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "MappingItemImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "MappingItem", "{", "protected", "static", "final", "String", "COL_EDEFAULT", "=", "null", ";", "protected", "String", "col", "=", "COL_EDEFAULT", ";", "protected", "static", "final", "String", "TYPE_EDEFAULT", "=", "null", ";", "protected", "String", "type", "=", "TYPE_EDEFAULT", ";", "protected", "MappingColumn", "attr", ";", "protected", "MappingItemImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "MAPPING_ITEM", ";", "}", "public", "String", "getCol", "(", ")", "{", "return", "col", ";", "}", "public", "void", "setCol", "(", "String", "newCol", ")", "{", "String", "oldCol", "=", "col", ";", "col", "=", "newCol", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "MAPPING_ITEM__COL", ",", "oldCol", ",", "col", ")", ")", ";", "}", "public", "String", "getType", "(", ")", "{", "return", "type", ";", "}", "public", "void", "setType", "(", "String", "newType", ")", "{", "String", "oldType", "=", "type", ";", "type", "=", "newType", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "MAPPING_ITEM__TYPE", ",", "oldType", ",", "type", ")", ")", ";", "}", "public", "MappingColumn", "getAttr", "(", ")", "{", "return", "attr", ";", "}", "public", "NotificationChain", "basicSetAttr", "(", "MappingColumn", "newAttr", ",", "NotificationChain", "msgs", ")", "{", "MappingColumn", "oldAttr", "=", "attr", ";", "attr", "=", "newAttr", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "MAPPING_ITEM__ATTR", ",", "oldAttr", ",", "newAttr", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setAttr", "(", "MappingColumn", "newAttr", ")", "{", "if", "(", "newAttr", "!=", "attr", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "attr", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "attr", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "MAPPING_ITEM__ATTR", ",", "null", ",", "msgs", ")", ";", "if", "(", "newAttr", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newAttr", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "MAPPING_ITEM__ATTR", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetAttr", "(", "newAttr", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "MAPPING_ITEM__ATTR", ",", "newAttr", ",", "newAttr", ")", ")", ";", "}", "@", "Override", "public", "NotificationChain", "eInverseRemove", "(", "InternalEObject", "otherEnd", ",", "int", "featureID", ",", "NotificationChain", "msgs", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING_ITEM__ATTR", ":", "return", "basicSetAttr", "(", "null", ",", "msgs", ")", ";", "}", "return", "super", ".", "eInverseRemove", "(", "otherEnd", ",", "featureID", ",", "msgs", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING_ITEM__COL", ":", "return", "getCol", "(", ")", ";", "case", "ProcessorDslPackage", ".", "MAPPING_ITEM__TYPE", ":", "return", "getType", "(", ")", ";", "case", "ProcessorDslPackage", ".", "MAPPING_ITEM__ATTR", ":", "return", "getAttr", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING_ITEM__COL", ":", "setCol", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "MAPPING_ITEM__TYPE", ":", "setType", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "MAPPING_ITEM__ATTR", ":", "setAttr", "(", "(", "MappingColumn", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING_ITEM__COL", ":", "setCol", "(", "COL_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "MAPPING_ITEM__TYPE", ":", "setType", "(", "TYPE_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "MAPPING_ITEM__ATTR", ":", "setAttr", "(", "(", "MappingColumn", ")", "null", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING_ITEM__COL", ":", "return", "COL_EDEFAULT", "==", "null", "?", "col", "!=", "null", ":", "!", "COL_EDEFAULT", ".", "equals", "(", "col", ")", ";", "case", "ProcessorDslPackage", ".", "MAPPING_ITEM__TYPE", ":", "return", "TYPE_EDEFAULT", "==", "null", "?", "type", "!=", "null", ":", "!", "TYPE_EDEFAULT", ".", "equals", "(", "type", ")", ";", "case", "ProcessorDslPackage", ".", "MAPPING_ITEM__ATTR", ":", "return", "attr", "!=", "null", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "eIsProxy", "(", ")", ")", "return", "super", ".", "toString", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "super", ".", "toString", "(", ")", ")", ";", "result", ".", "append", "(", "\"", "(col:", "\"", ")", ";", "result", ".", "append", "(", "col", ")", ";", "result", ".", "append", "(", "\",", "type:", "\"", ")", ";", "result", ".", "append", "(", "type", ")", ";", "result", ".", "append", "(", "')'", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
252
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "java", ".", "util", ".", "Collection", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "EDataTypeEList", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Column", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "ColumnImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "Column", "{", "protected", "static", "final", "String", "NAME_EDEFAULT", "=", "null", ";", "protected", "String", "name", "=", "NAME_EDEFAULT", ";", "protected", "static", "final", "String", "TYPE_EDEFAULT", "=", "null", ";", "protected", "String", "type", "=", "TYPE_EDEFAULT", ";", "protected", "EList", "<", "String", ">", "vals", ";", "protected", "ColumnImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "COLUMN", ";", "}", "public", "String", "getName", "(", ")", "{", "return", "name", ";", "}", "public", "void", "setName", "(", "String", "newName", ")", "{", "String", "oldName", "=", "name", ";", "name", "=", "newName", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "COLUMN__NAME", ",", "oldName", ",", "name", ")", ")", ";", "}", "public", "String", "getType", "(", ")", "{", "return", "type", ";", "}", "public", "void", "setType", "(", "String", "newType", ")", "{", "String", "oldType", "=", "type", ";", "type", "=", "newType", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "COLUMN__TYPE", ",", "oldType", ",", "type", ")", ")", ";", "}", "public", "EList", "<", "String", ">", "getVals", "(", ")", "{", "if", "(", "vals", "==", "null", ")", "{", "vals", "=", "new", "EDataTypeEList", "<", "String", ">", "(", "String", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "COLUMN__VALS", ")", ";", "}", "return", "vals", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "COLUMN__NAME", ":", "return", "getName", "(", ")", ";", "case", "ProcessorDslPackage", ".", "COLUMN__TYPE", ":", "return", "getType", "(", ")", ";", "case", "ProcessorDslPackage", ".", "COLUMN__VALS", ":", "return", "getVals", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "COLUMN__NAME", ":", "setName", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "COLUMN__TYPE", ":", "setType", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "COLUMN__VALS", ":", "getVals", "(", ")", ".", "clear", "(", ")", ";", "getVals", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "String", ">", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "COLUMN__NAME", ":", "setName", "(", "NAME_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "COLUMN__TYPE", ":", "setType", "(", "TYPE_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "COLUMN__VALS", ":", "getVals", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "COLUMN__NAME", ":", "return", "NAME_EDEFAULT", "==", "null", "?", "name", "!=", "null", ":", "!", "NAME_EDEFAULT", ".", "equals", "(", "name", ")", ";", "case", "ProcessorDslPackage", ".", "COLUMN__TYPE", ":", "return", "TYPE_EDEFAULT", "==", "null", "?", "type", "!=", "null", ":", "!", "TYPE_EDEFAULT", ".", "equals", "(", "type", ")", ";", "case", "ProcessorDslPackage", ".", "COLUMN__VALS", ":", "return", "vals", "!=", "null", "&&", "!", "vals", ".", "isEmpty", "(", ")", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "eIsProxy", "(", ")", ")", "return", "super", ".", "toString", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "super", ".", "toString", "(", ")", ")", ";", "result", ".", "append", "(", "\"", "(name:", "\"", ")", ";", "result", ".", "append", "(", "name", ")", ";", "result", ".", "append", "(", "\",", "type:", "\"", ")", ";", "result", ".", "append", "(", "type", ")", ";", "result", ".", "append", "(", "\",", "vals:", "\"", ")", ";", "result", ".", "append", "(", "vals", ")", ";", "result", ".", "append", "(", "')'", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
253
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Property", ";", "public", "class", "PropertyImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "Property", "{", "protected", "static", "final", "String", "NAME_EDEFAULT", "=", "null", ";", "protected", "String", "name", "=", "NAME_EDEFAULT", ";", "protected", "static", "final", "String", "DO_RESOLVE_POJO_EDEFAULT", "=", "null", ";", "protected", "String", "doResolvePojo", "=", "DO_RESOLVE_POJO_EDEFAULT", ";", "protected", "static", "final", "String", "DO_RESOLVE_DB_EDEFAULT", "=", "null", ";", "protected", "String", "doResolveDb", "=", "DO_RESOLVE_DB_EDEFAULT", ";", "protected", "static", "final", "String", "DB_URL_EDEFAULT", "=", "null", ";", "protected", "String", "dbUrl", "=", "DB_URL_EDEFAULT", ";", "protected", "static", "final", "String", "DB_USERNAME_EDEFAULT", "=", "null", ";", "protected", "String", "dbUsername", "=", "DB_USERNAME_EDEFAULT", ";", "protected", "static", "final", "String", "DB_PASSWORD_EDEFAULT", "=", "null", ";", "protected", "String", "dbPassword", "=", "DB_PASSWORD_EDEFAULT", ";", "protected", "static", "final", "String", "DB_SCHEMA_EDEFAULT", "=", "null", ";", "protected", "String", "dbSchema", "=", "DB_SCHEMA_EDEFAULT", ";", "protected", "static", "final", "String", "DB_DRIVER_EDEFAULT", "=", "null", ";", "protected", "String", "dbDriver", "=", "DB_DRIVER_EDEFAULT", ";", "protected", "PropertyImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "PROPERTY", ";", "}", "public", "String", "getName", "(", ")", "{", "return", "name", ";", "}", "public", "void", "setName", "(", "String", "newName", ")", "{", "String", "oldName", "=", "name", ";", "name", "=", "newName", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "PROPERTY__NAME", ",", "oldName", ",", "name", ")", ")", ";", "}", "public", "String", "getDoResolvePojo", "(", ")", "{", "return", "doResolvePojo", ";", "}", "public", "void", "setDoResolvePojo", "(", "String", "newDoResolvePojo", ")", "{", "String", "oldDoResolvePojo", "=", "doResolvePojo", ";", "doResolvePojo", "=", "newDoResolvePojo", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "PROPERTY__DO_RESOLVE_POJO", ",", "oldDoResolvePojo", ",", "doResolvePojo", ")", ")", ";", "}", "public", "String", "getDoResolveDb", "(", ")", "{", "return", "doResolveDb", ";", "}", "public", "void", "setDoResolveDb", "(", "String", "newDoResolveDb", ")", "{", "String", "oldDoResolveDb", "=", "doResolveDb", ";", "doResolveDb", "=", "newDoResolveDb", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "PROPERTY__DO_RESOLVE_DB", ",", "oldDoResolveDb", ",", "doResolveDb", ")", ")", ";", "}", "public", "String", "getDbUrl", "(", ")", "{", "return", "dbUrl", ";", "}", "public", "void", "setDbUrl", "(", "String", "newDbUrl", ")", "{", "String", "oldDbUrl", "=", "dbUrl", ";", "dbUrl", "=", "newDbUrl", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "PROPERTY__DB_URL", ",", "oldDbUrl", ",", "dbUrl", ")", ")", ";", "}", "public", "String", "getDbUsername", "(", ")", "{", "return", "dbUsername", ";", "}", "public", "void", "setDbUsername", "(", "String", "newDbUsername", ")", "{", "String", "oldDbUsername", "=", "dbUsername", ";", "dbUsername", "=", "newDbUsername", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "PROPERTY__DB_USERNAME", ",", "oldDbUsername", ",", "dbUsername", ")", ")", ";", "}", "public", "String", "getDbPassword", "(", ")", "{", "return", "dbPassword", ";", "}", "public", "void", "setDbPassword", "(", "String", "newDbPassword", ")", "{", "String", "oldDbPassword", "=", "dbPassword", ";", "dbPassword", "=", "newDbPassword", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "PROPERTY__DB_PASSWORD", ",", "oldDbPassword", ",", "dbPassword", ")", ")", ";", "}", "public", "String", "getDbSchema", "(", ")", "{", "return", "dbSchema", ";", "}", "public", "void", "setDbSchema", "(", "String", "newDbSchema", ")", "{", "String", "oldDbSchema", "=", "dbSchema", ";", "dbSchema", "=", "newDbSchema", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "PROPERTY__DB_SCHEMA", ",", "oldDbSchema", ",", "dbSchema", ")", ")", ";", "}", "public", "String", "getDbDriver", "(", ")", "{", "return", "dbDriver", ";", "}", "public", "void", "setDbDriver", "(", "String", "newDbDriver", ")", "{", "String", "oldDbDriver", "=", "dbDriver", ";", "dbDriver", "=", "newDbDriver", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "PROPERTY__DB_DRIVER", ",", "oldDbDriver", ",", "dbDriver", ")", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "PROPERTY__NAME", ":", "return", "getName", "(", ")", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DO_RESOLVE_POJO", ":", "return", "getDoResolvePojo", "(", ")", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DO_RESOLVE_DB", ":", "return", "getDoResolveDb", "(", ")", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DB_URL", ":", "return", "getDbUrl", "(", ")", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DB_USERNAME", ":", "return", "getDbUsername", "(", ")", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DB_PASSWORD", ":", "return", "getDbPassword", "(", ")", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DB_SCHEMA", ":", "return", "getDbSchema", "(", ")", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DB_DRIVER", ":", "return", "getDbDriver", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "PROPERTY__NAME", ":", "setName", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DO_RESOLVE_POJO", ":", "setDoResolvePojo", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DO_RESOLVE_DB", ":", "setDoResolveDb", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DB_URL", ":", "setDbUrl", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DB_USERNAME", ":", "setDbUsername", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DB_PASSWORD", ":", "setDbPassword", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DB_SCHEMA", ":", "setDbSchema", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DB_DRIVER", ":", "setDbDriver", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "PROPERTY__NAME", ":", "setName", "(", "NAME_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DO_RESOLVE_POJO", ":", "setDoResolvePojo", "(", "DO_RESOLVE_POJO_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DO_RESOLVE_DB", ":", "setDoResolveDb", "(", "DO_RESOLVE_DB_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DB_URL", ":", "setDbUrl", "(", "DB_URL_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DB_USERNAME", ":", "setDbUsername", "(", "DB_USERNAME_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DB_PASSWORD", ":", "setDbPassword", "(", "DB_PASSWORD_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DB_SCHEMA", ":", "setDbSchema", "(", "DB_SCHEMA_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DB_DRIVER", ":", "setDbDriver", "(", "DB_DRIVER_EDEFAULT", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "PROPERTY__NAME", ":", "return", "NAME_EDEFAULT", "==", "null", "?", "name", "!=", "null", ":", "!", "NAME_EDEFAULT", ".", "equals", "(", "name", ")", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DO_RESOLVE_POJO", ":", "return", "DO_RESOLVE_POJO_EDEFAULT", "==", "null", "?", "doResolvePojo", "!=", "null", ":", "!", "DO_RESOLVE_POJO_EDEFAULT", ".", "equals", "(", "doResolvePojo", ")", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DO_RESOLVE_DB", ":", "return", "DO_RESOLVE_DB_EDEFAULT", "==", "null", "?", "doResolveDb", "!=", "null", ":", "!", "DO_RESOLVE_DB_EDEFAULT", ".", "equals", "(", "doResolveDb", ")", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DB_URL", ":", "return", "DB_URL_EDEFAULT", "==", "null", "?", "dbUrl", "!=", "null", ":", "!", "DB_URL_EDEFAULT", ".", "equals", "(", "dbUrl", ")", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DB_USERNAME", ":", "return", "DB_USERNAME_EDEFAULT", "==", "null", "?", "dbUsername", "!=", "null", ":", "!", "DB_USERNAME_EDEFAULT", ".", "equals", "(", "dbUsername", ")", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DB_PASSWORD", ":", "return", "DB_PASSWORD_EDEFAULT", "==", "null", "?", "dbPassword", "!=", "null", ":", "!", "DB_PASSWORD_EDEFAULT", ".", "equals", "(", "dbPassword", ")", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DB_SCHEMA", ":", "return", "DB_SCHEMA_EDEFAULT", "==", "null", "?", "dbSchema", "!=", "null", ":", "!", "DB_SCHEMA_EDEFAULT", ".", "equals", "(", "dbSchema", ")", ";", "case", "ProcessorDslPackage", ".", "PROPERTY__DB_DRIVER", ":", "return", "DB_DRIVER_EDEFAULT", "==", "null", "?", "dbDriver", "!=", "null", ":", "!", "DB_DRIVER_EDEFAULT", ".", "equals", "(", "dbDriver", ")", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "eIsProxy", "(", ")", ")", "return", "super", ".", "toString", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "super", ".", "toString", "(", ")", ")", ";", "result", ".", "append", "(", "\"", "(name:", "\"", ")", ";", "result", ".", "append", "(", "name", ")", ";", "result", ".", "append", "(", "\"\"", ")", ";", "result", ".", "append", "(", "doResolvePojo", ")", ";", "result", ".", "append", "(", "\"\"", ")", ";", "result", ".", "append", "(", "doResolveDb", ")", ";", "result", ".", "append", "(", "\",", "dbUrl:", "\"", ")", ";", "result", ".", "append", "(", "dbUrl", ")", ";", "result", ".", "append", "(", "\"\"", ")", ";", "result", ".", "append", "(", "dbUsername", ")", ";", "result", ".", "append", "(", "\"\"", ")", ";", "result", ".", "append", "(", "dbPassword", ")", ";", "result", ".", "append", "(", "\",", "dbSchema:", "\"", ")", ";", "result", ".", "append", "(", "dbSchema", ")", ";", "result", ".", "append", "(", "\",", "dbDriver:", "\"", ")", ";", "result", ".", "append", "(", "dbDriver", ")", ";", "result", ".", "append", "(", "')'", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
254
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ";", "import", "java", ".", "util", ".", "Collection", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "NotificationChain", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "InternalEObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "ENotificationImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "impl", ".", "MinimalEObjectImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "EDataTypeEList", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Mapping", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingRule", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "public", "class", "MappingRuleImpl", "extends", "MinimalEObjectImpl", ".", "Container", "implements", "MappingRule", "{", "protected", "static", "final", "String", "NAME_EDEFAULT", "=", "null", ";", "protected", "String", "name", "=", "NAME_EDEFAULT", ";", "protected", "static", "final", "String", "TYPE_EDEFAULT", "=", "null", ";", "protected", "String", "type", "=", "TYPE_EDEFAULT", ";", "protected", "EList", "<", "String", ">", "filters", ";", "protected", "Mapping", "mapping", ";", "protected", "MappingRuleImpl", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "protected", "EClass", "eStaticClass", "(", ")", "{", "return", "ProcessorDslPackage", ".", "Literals", ".", "MAPPING_RULE", ";", "}", "public", "String", "getName", "(", ")", "{", "return", "name", ";", "}", "public", "void", "setName", "(", "String", "newName", ")", "{", "String", "oldName", "=", "name", ";", "name", "=", "newName", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "MAPPING_RULE__NAME", ",", "oldName", ",", "name", ")", ")", ";", "}", "public", "String", "getType", "(", ")", "{", "return", "type", ";", "}", "public", "void", "setType", "(", "String", "newType", ")", "{", "String", "oldType", "=", "type", ";", "type", "=", "newType", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "MAPPING_RULE__TYPE", ",", "oldType", ",", "type", ")", ")", ";", "}", "public", "EList", "<", "String", ">", "getFilters", "(", ")", "{", "if", "(", "filters", "==", "null", ")", "{", "filters", "=", "new", "EDataTypeEList", "<", "String", ">", "(", "String", ".", "class", ",", "this", ",", "ProcessorDslPackage", ".", "MAPPING_RULE__FILTERS", ")", ";", "}", "return", "filters", ";", "}", "public", "Mapping", "getMapping", "(", ")", "{", "return", "mapping", ";", "}", "public", "NotificationChain", "basicSetMapping", "(", "Mapping", "newMapping", ",", "NotificationChain", "msgs", ")", "{", "Mapping", "oldMapping", "=", "mapping", ";", "mapping", "=", "newMapping", ";", "if", "(", "eNotificationRequired", "(", ")", ")", "{", "ENotificationImpl", "notification", "=", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "MAPPING_RULE__MAPPING", ",", "oldMapping", ",", "newMapping", ")", ";", "if", "(", "msgs", "==", "null", ")", "msgs", "=", "notification", ";", "else", "msgs", ".", "add", "(", "notification", ")", ";", "}", "return", "msgs", ";", "}", "public", "void", "setMapping", "(", "Mapping", "newMapping", ")", "{", "if", "(", "newMapping", "!=", "mapping", ")", "{", "NotificationChain", "msgs", "=", "null", ";", "if", "(", "mapping", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "mapping", ")", ".", "eInverseRemove", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "MAPPING_RULE__MAPPING", ",", "null", ",", "msgs", ")", ";", "if", "(", "newMapping", "!=", "null", ")", "msgs", "=", "(", "(", "InternalEObject", ")", "newMapping", ")", ".", "eInverseAdd", "(", "this", ",", "EOPPOSITE_FEATURE_BASE", "-", "ProcessorDslPackage", ".", "MAPPING_RULE__MAPPING", ",", "null", ",", "msgs", ")", ";", "msgs", "=", "basicSetMapping", "(", "newMapping", ",", "msgs", ")", ";", "if", "(", "msgs", "!=", "null", ")", "msgs", ".", "dispatch", "(", ")", ";", "}", "else", "if", "(", "eNotificationRequired", "(", ")", ")", "eNotify", "(", "new", "ENotificationImpl", "(", "this", ",", "Notification", ".", "SET", ",", "ProcessorDslPackage", ".", "MAPPING_RULE__MAPPING", ",", "newMapping", ",", "newMapping", ")", ")", ";", "}", "@", "Override", "public", "NotificationChain", "eInverseRemove", "(", "InternalEObject", "otherEnd", ",", "int", "featureID", ",", "NotificationChain", "msgs", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING_RULE__MAPPING", ":", "return", "basicSetMapping", "(", "null", ",", "msgs", ")", ";", "}", "return", "super", ".", "eInverseRemove", "(", "otherEnd", ",", "featureID", ",", "msgs", ")", ";", "}", "@", "Override", "public", "Object", "eGet", "(", "int", "featureID", ",", "boolean", "resolve", ",", "boolean", "coreType", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING_RULE__NAME", ":", "return", "getName", "(", ")", ";", "case", "ProcessorDslPackage", ".", "MAPPING_RULE__TYPE", ":", "return", "getType", "(", ")", ";", "case", "ProcessorDslPackage", ".", "MAPPING_RULE__FILTERS", ":", "return", "getFilters", "(", ")", ";", "case", "ProcessorDslPackage", ".", "MAPPING_RULE__MAPPING", ":", "return", "getMapping", "(", ")", ";", "}", "return", "super", ".", "eGet", "(", "featureID", ",", "resolve", ",", "coreType", ")", ";", "}", "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "@", "Override", "public", "void", "eSet", "(", "int", "featureID", ",", "Object", "newValue", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING_RULE__NAME", ":", "setName", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "MAPPING_RULE__TYPE", ":", "setType", "(", "(", "String", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "MAPPING_RULE__FILTERS", ":", "getFilters", "(", ")", ".", "clear", "(", ")", ";", "getFilters", "(", ")", ".", "addAll", "(", "(", "Collection", "<", "?", "extends", "String", ">", ")", "newValue", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "MAPPING_RULE__MAPPING", ":", "setMapping", "(", "(", "Mapping", ")", "newValue", ")", ";", "return", ";", "}", "super", ".", "eSet", "(", "featureID", ",", "newValue", ")", ";", "}", "@", "Override", "public", "void", "eUnset", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING_RULE__NAME", ":", "setName", "(", "NAME_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "MAPPING_RULE__TYPE", ":", "setType", "(", "TYPE_EDEFAULT", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "MAPPING_RULE__FILTERS", ":", "getFilters", "(", ")", ".", "clear", "(", ")", ";", "return", ";", "case", "ProcessorDslPackage", ".", "MAPPING_RULE__MAPPING", ":", "setMapping", "(", "(", "Mapping", ")", "null", ")", ";", "return", ";", "}", "super", ".", "eUnset", "(", "featureID", ")", ";", "}", "@", "Override", "public", "boolean", "eIsSet", "(", "int", "featureID", ")", "{", "switch", "(", "featureID", ")", "{", "case", "ProcessorDslPackage", ".", "MAPPING_RULE__NAME", ":", "return", "NAME_EDEFAULT", "==", "null", "?", "name", "!=", "null", ":", "!", "NAME_EDEFAULT", ".", "equals", "(", "name", ")", ";", "case", "ProcessorDslPackage", ".", "MAPPING_RULE__TYPE", ":", "return", "TYPE_EDEFAULT", "==", "null", "?", "type", "!=", "null", ":", "!", "TYPE_EDEFAULT", ".", "equals", "(", "type", ")", ";", "case", "ProcessorDslPackage", ".", "MAPPING_RULE__FILTERS", ":", "return", "filters", "!=", "null", "&&", "!", "filters", ".", "isEmpty", "(", ")", ";", "case", "ProcessorDslPackage", ".", "MAPPING_RULE__MAPPING", ":", "return", "mapping", "!=", "null", ";", "}", "return", "super", ".", "eIsSet", "(", "featureID", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "if", "(", "eIsProxy", "(", ")", ")", "return", "super", ".", "toString", "(", ")", ";", "StringBuffer", "result", "=", "new", "StringBuffer", "(", "super", ".", "toString", "(", ")", ")", ";", "result", ".", "append", "(", "\"", "(name:", "\"", ")", ";", "result", ".", "append", "(", "name", ")", ";", "result", ".", "append", "(", "\",", "type:", "\"", ")", ";", "result", ".", "append", "(", "type", ")", ";", "result", ".", "append", "(", "\",", "filters:", "\"", ")", ";", "result", ".", "append", "(", "filters", ")", ";", "result", ".", "append", "(", "')'", ")", ";", "return", "result", ".", "toString", "(", ")", ";", "}", "}", "</s>" ]
255
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "SqlFragment", "extends", "EObject", "{", "String", "getValue", "(", ")", ";", "void", "setValue", "(", "String", "value", ")", ";", "Column", "getCol", "(", ")", ";", "void", "setCol", "(", "Column", "value", ")", ";", "Constant", "getCnst", "(", ")", ";", "void", "setCnst", "(", "Constant", "value", ")", ";", "Identifier", "getIdent", "(", ")", ";", "void", "setIdent", "(", "Identifier", "value", ")", ";", "MetaSql", "getMeta", "(", ")", ";", "void", "setMeta", "(", "MetaSql", "value", ")", ";", "DatabaseTable", "getDbtab", "(", ")", ";", "void", "setDbtab", "(", "DatabaseTable", "value", ")", ";", "DatabaseColumn", "getDbcol", "(", ")", ";", "void", "setDbcol", "(", "DatabaseColumn", "value", ")", ";", "}", "</s>" ]
256
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "Constant", "extends", "EObject", "{", "String", "getCase", "(", ")", ";", "void", "setCase", "(", "String", "value", ")", ";", "String", "getName", "(", ")", ";", "void", "setName", "(", "String", "value", ")", ";", "String", "getType", "(", ")", ";", "void", "setType", "(", "String", "value", ")", ";", "EList", "<", "String", ">", "getVals", "(", ")", ";", "}", "</s>" ]
257
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EAttribute", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClass", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EPackage", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EReference", ";", "public", "interface", "ProcessorDslPackage", "extends", "EPackage", "{", "String", "eNAME", "=", "\"processorDsl\"", ";", "String", "eNS_URI", "=", "\"\"", ";", "String", "eNS_PREFIX", "=", "\"processorDsl\"", ";", "ProcessorDslPackage", "eINSTANCE", "=", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ".", "ProcessorDslPackageImpl", ".", "init", "(", ")", ";", "int", "ARTIFACTS", "=", "0", ";", "int", "ARTIFACTS__FEATURES", "=", "0", ";", "int", "ARTIFACTS__STATEMENTS", "=", "1", ";", "int", "ARTIFACTS__MAPPINGS", "=", "2", ";", "int", "ARTIFACTS__POJOS", "=", "3", ";", "int", "ARTIFACTS__USAGES", "=", "4", ";", "int", "ARTIFACTS__PROPERTIES", "=", "5", ";", "int", "ARTIFACTS__TABLES", "=", "6", ";", "int", "ARTIFACTS__TABLE_USAGES", "=", "7", ";", "int", "ARTIFACTS_FEATURE_COUNT", "=", "8", ";", "int", "PROPERTY", "=", "1", ";", "int", "PROPERTY__NAME", "=", "0", ";", "int", "PROPERTY__DO_RESOLVE_POJO", "=", "1", ";", "int", "PROPERTY__DO_RESOLVE_DB", "=", "2", ";", "int", "PROPERTY__DB_URL", "=", "3", ";", "int", "PROPERTY__DB_USERNAME", "=", "4", ";", "int", "PROPERTY__DB_PASSWORD", "=", "5", ";", "int", "PROPERTY__DB_SCHEMA", "=", "6", ";", "int", "PROPERTY__DB_DRIVER", "=", "7", ";", "int", "PROPERTY_FEATURE_COUNT", "=", "8", ";", "int", "POJO_DEFINITION", "=", "2", ";", "int", "POJO_DEFINITION__NAME", "=", "0", ";", "int", "POJO_DEFINITION__CLASS", "=", "1", ";", "int", "POJO_DEFINITION_FEATURE_COUNT", "=", "2", ";", "int", "POJO_USAGE", "=", "3", ";", "int", "POJO_USAGE__POJO", "=", "0", ";", "int", "POJO_USAGE_FEATURE_COUNT", "=", "1", ";", "int", "COLUMN_USAGE", "=", "4", ";", "int", "COLUMN_USAGE__POJO", "=", "POJO_USAGE__POJO", ";", "int", "COLUMN_USAGE__STATEMENT", "=", "POJO_USAGE_FEATURE_COUNT", "+", "0", ";", "int", "COLUMN_USAGE_FEATURE_COUNT", "=", "POJO_USAGE_FEATURE_COUNT", "+", "1", ";", "int", "IDENTIFIER_USAGE", "=", "5", ";", "int", "IDENTIFIER_USAGE__POJO", "=", "POJO_USAGE__POJO", ";", "int", "IDENTIFIER_USAGE__STATEMENT", "=", "POJO_USAGE_FEATURE_COUNT", "+", "0", ";", "int", "IDENTIFIER_USAGE_FEATURE_COUNT", "=", "POJO_USAGE_FEATURE_COUNT", "+", "1", ";", "int", "CONSTANT_USAGE", "=", "6", ";", "int", "CONSTANT_USAGE__POJO", "=", "POJO_USAGE__POJO", ";", "int", "CONSTANT_USAGE__STATEMENT", "=", "POJO_USAGE_FEATURE_COUNT", "+", "0", ";", "int", "CONSTANT_USAGE_FEATURE_COUNT", "=", "POJO_USAGE_FEATURE_COUNT", "+", "1", ";", "int", "MAPPING_USAGE", "=", "7", ";", "int", "MAPPING_USAGE__POJO", "=", "POJO_USAGE__POJO", ";", "int", "MAPPING_USAGE__STATEMENT", "=", "POJO_USAGE_FEATURE_COUNT", "+", "0", ";", "int", "MAPPING_USAGE_FEATURE_COUNT", "=", "POJO_USAGE_FEATURE_COUNT", "+", "1", ";", "int", "TABLE_DEFINITION", "=", "8", ";", "int", "TABLE_DEFINITION__NAME", "=", "0", ";", "int", "TABLE_DEFINITION__TABLE", "=", "1", ";", "int", "TABLE_DEFINITION_FEATURE_COUNT", "=", "2", ";", "int", "TABLE_USAGE", "=", "9", ";", "int", "TABLE_USAGE__STATEMENT", "=", "0", ";", "int", "TABLE_USAGE__TABLE", "=", "1", ";", "int", "TABLE_USAGE__PREFIX", "=", "2", ";", "int", "TABLE_USAGE_FEATURE_COUNT", "=", "3", ";", "int", "META_STATEMENT", "=", "10", ";", "int", "META_STATEMENT__NAME", "=", "0", ";", "int", "META_STATEMENT__TYPE", "=", "1", ";", "int", "META_STATEMENT__FILTERS", "=", "2", ";", "int", "META_STATEMENT__STATEMENT", "=", "3", ";", "int", "META_STATEMENT_FEATURE_COUNT", "=", "4", ";", "int", "SQL", "=", "11", ";", "int", "SQL__SQLS", "=", "0", ";", "int", "SQL_FEATURE_COUNT", "=", "1", ";", "int", "SQL_FRAGMENT", "=", "12", ";", "int", "SQL_FRAGMENT__VALUE", "=", "0", ";", "int", "SQL_FRAGMENT__COL", "=", "1", ";", "int", "SQL_FRAGMENT__CNST", "=", "2", ";", "int", "SQL_FRAGMENT__IDENT", "=", "3", ";", "int", "SQL_FRAGMENT__META", "=", "4", ";", "int", "SQL_FRAGMENT__DBTAB", "=", "5", ";", "int", "SQL_FRAGMENT__DBCOL", "=", "6", ";", "int", "SQL_FRAGMENT_FEATURE_COUNT", "=", "7", ";", "int", "META_SQL", "=", "13", ";", "int", "META_SQL__IFS", "=", "0", ";", "int", "META_SQL__TYPE", "=", "1", ";", "int", "META_SQL__COND", "=", "2", ";", "int", "META_SQL__FTYPE", "=", "3", ";", "int", "META_SQL__ORD", "=", "4", ";", "int", "META_SQL_FEATURE_COUNT", "=", "5", ";", "int", "IF_SQL", "=", "14", ";", "int", "IF_SQL__SQLS", "=", "0", ";", "int", "IF_SQL_FEATURE_COUNT", "=", "1", ";", "int", "IF_SQL_FRAGMENT", "=", "15", ";", "int", "IF_SQL_FRAGMENT__VALUE", "=", "0", ";", "int", "IF_SQL_FRAGMENT__COL", "=", "1", ";", "int", "IF_SQL_FRAGMENT__CNST", "=", "2", ";", "int", "IF_SQL_FRAGMENT__IDENT", "=", "3", ";", "int", "IF_SQL_FRAGMENT__DBTAB", "=", "4", ";", "int", "IF_SQL_FRAGMENT__DBCOL", "=", "5", ";", "int", "IF_SQL_FRAGMENT__META", "=", "6", ";", "int", "IF_SQL_FRAGMENT_FEATURE_COUNT", "=", "7", ";", "int", "IF_META_SQL", "=", "16", ";", "int", "IF_META_SQL__IFS", "=", "0", ";", "int", "IF_META_SQL__TYPE", "=", "1", ";", "int", "IF_META_SQL__COND", "=", "2", ";", "int", "IF_META_SQL_FEATURE_COUNT", "=", "3", ";", "int", "IF_SQL_COND", "=", "17", ";", "int", "IF_SQL_COND__BOOL1", "=", "0", ";", "int", "IF_SQL_COND__OPER", "=", "1", ";", "int", "IF_SQL_COND__BOOL2", "=", "2", ";", "int", "IF_SQL_COND_FEATURE_COUNT", "=", "3", ";", "int", "IF_SQL_BOOL", "=", "18", ";", "int", "IF_SQL_BOOL__NOT", "=", "0", ";", "int", "IF_SQL_BOOL__CNST", "=", "1", ";", "int", "IF_SQL_BOOL__IDENT", "=", "2", ";", "int", "IF_SQL_BOOL__COND", "=", "3", ";", "int", "IF_SQL_BOOL_FEATURE_COUNT", "=", "4", ";", "int", "ORD_SQL", "=", "19", ";", "int", "ORD_SQL__SQLS", "=", "0", ";", "int", "ORD_SQL_FEATURE_COUNT", "=", "1", ";", "int", "ORD_SQL2", "=", "20", ";", "int", "ORD_SQL2__VALUE", "=", "0", ";", "int", "ORD_SQL2__CNST", "=", "1", ";", "int", "ORD_SQL2__IDENT", "=", "2", ";", "int", "ORD_SQL2__DBCOL", "=", "3", ";", "int", "ORD_SQL2_FEATURE_COUNT", "=", "4", ";", "int", "COLUMN", "=", "21", ";", "int", "COLUMN__NAME", "=", "0", ";", "int", "COLUMN__TYPE", "=", "1", ";", "int", "COLUMN__VALS", "=", "2", ";", "int", "COLUMN_FEATURE_COUNT", "=", "3", ";", "int", "CONSTANT", "=", "22", ";", "int", "CONSTANT__CASE", "=", "0", ";", "int", "CONSTANT__NAME", "=", "1", ";", "int", "CONSTANT__TYPE", "=", "2", ";", "int", "CONSTANT__VALS", "=", "3", ";", "int", "CONSTANT_FEATURE_COUNT", "=", "4", ";", "int", "IDENTIFIER", "=", "23", ";", "int", "IDENTIFIER__MODE", "=", "0", ";", "int", "IDENTIFIER__CASE", "=", "1", ";", "int", "IDENTIFIER__NAME", "=", "2", ";", "int", "IDENTIFIER__TYPE", "=", "3", ";", "int", "IDENTIFIER__VALS", "=", "4", ";", "int", "IDENTIFIER_FEATURE_COUNT", "=", "5", ";", "int", "DATABASE_COLUMN", "=", "24", ";", "int", "DATABASE_COLUMN__NAME", "=", "0", ";", "int", "DATABASE_COLUMN_FEATURE_COUNT", "=", "1", ";", "int", "DATABASE_TABLE", "=", "25", ";", "int", "DATABASE_TABLE__NAME", "=", "0", ";", "int", "DATABASE_TABLE_FEATURE_COUNT", "=", "1", ";", "int", "MAPPING_RULE", "=", "26", ";", "int", "MAPPING_RULE__NAME", "=", "0", ";", "int", "MAPPING_RULE__TYPE", "=", "1", ";", "int", "MAPPING_RULE__FILTERS", "=", "2", ";", "int", "MAPPING_RULE__MAPPING", "=", "3", ";", "int", "MAPPING_RULE_FEATURE_COUNT", "=", "4", ";", "int", "MAPPING", "=", "27", ";", "int", "MAPPING__MAPPING_ITEMS", "=", "0", ";", "int", "MAPPING_FEATURE_COUNT", "=", "1", ";", "int", "MAPPING_ITEM", "=", "28", ";", "int", "MAPPING_ITEM__COL", "=", "0", ";", "int", "MAPPING_ITEM__TYPE", "=", "1", ";", "int", "MAPPING_ITEM__ATTR", "=", "2", ";", "int", "MAPPING_ITEM_FEATURE_COUNT", "=", "3", ";", "int", "MAPPING_COLUMN", "=", "29", ";", "int", "MAPPING_COLUMN__NAME", "=", "0", ";", "int", "MAPPING_COLUMN__VALS", "=", "1", ";", "int", "MAPPING_COLUMN_FEATURE_COUNT", "=", "2", ";", "int", "OPTIONAL_FEATURE", "=", "30", ";", "int", "OPTIONAL_FEATURE__NAME", "=", "0", ";", "int", "OPTIONAL_FEATURE__TYPE", "=", "1", ";", "int", "OPTIONAL_FEATURE__FILTERS", "=", "2", ";", "int", "OPTIONAL_FEATURE__OPTION", "=", "3", ";", "int", "OPTIONAL_FEATURE_FEATURE_COUNT", "=", "4", ";", "EClass", "getArtifacts", "(", ")", ";", "EReference", "getArtifacts_Features", "(", ")", ";", "EReference", "getArtifacts_Statements", "(", ")", ";", "EReference", "getArtifacts_Mappings", "(", ")", ";", "EReference", "getArtifacts_Pojos", "(", ")", ";", "EReference", "getArtifacts_Usages", "(", ")", ";", "EReference", "getArtifacts_Properties", "(", ")", ";", "EReference", "getArtifacts_Tables", "(", ")", ";", "EReference", "getArtifacts_TableUsages", "(", ")", ";", "EClass", "getProperty", "(", ")", ";", "EAttribute", "getProperty_Name", "(", ")", ";", "EAttribute", "getProperty_DoResolvePojo", "(", ")", ";", "EAttribute", "getProperty_DoResolveDb", "(", ")", ";", "EAttribute", "getProperty_DbUrl", "(", ")", ";", "EAttribute", "getProperty_DbUsername", "(", ")", ";", "EAttribute", "getProperty_DbPassword", "(", ")", ";", "EAttribute", "getProperty_DbSchema", "(", ")", ";", "EAttribute", "getProperty_DbDriver", "(", ")", ";", "EClass", "getPojoDefinition", "(", ")", ";", "EAttribute", "getPojoDefinition_Name", "(", ")", ";", "EAttribute", "getPojoDefinition_Class", "(", ")", ";", "EClass", "getPojoUsage", "(", ")", ";", "EReference", "getPojoUsage_Pojo", "(", ")", ";", "EClass", "getColumnUsage", "(", ")", ";", "EReference", "getColumnUsage_Statement", "(", ")", ";", "EClass", "getIdentifierUsage", "(", ")", ";", "EReference", "getIdentifierUsage_Statement", "(", ")", ";", "EClass", "getConstantUsage", "(", ")", ";", "EReference", "getConstantUsage_Statement", "(", ")", ";", "EClass", "getMappingUsage", "(", ")", ";", "EReference", "getMappingUsage_Statement", "(", ")", ";", "EClass", "getTableDefinition", "(", ")", ";", "EAttribute", "getTableDefinition_Name", "(", ")", ";", "EAttribute", "getTableDefinition_Table", "(", ")", ";", "EClass", "getTableUsage", "(", ")", ";", "EReference", "getTableUsage_Statement", "(", ")", ";", "EReference", "getTableUsage_Table", "(", ")", ";", "EAttribute", "getTableUsage_Prefix", "(", ")", ";", "EClass", "getMetaStatement", "(", ")", ";", "EAttribute", "getMetaStatement_Name", "(", ")", ";", "EAttribute", "getMetaStatement_Type", "(", ")", ";", "EAttribute", "getMetaStatement_Filters", "(", ")", ";", "EReference", "getMetaStatement_Statement", "(", ")", ";", "EClass", "getSql", "(", ")", ";", "EReference", "getSql_Sqls", "(", ")", ";", "EClass", "getSqlFragment", "(", ")", ";", "EAttribute", "getSqlFragment_Value", "(", ")", ";", "EReference", "getSqlFragment_Col", "(", ")", ";", "EReference", "getSqlFragment_Cnst", "(", ")", ";", "EReference", "getSqlFragment_Ident", "(", ")", ";", "EReference", "getSqlFragment_Meta", "(", ")", ";", "EReference", "getSqlFragment_Dbtab", "(", ")", ";", "EReference", "getSqlFragment_Dbcol", "(", ")", ";", "EClass", "getMetaSql", "(", ")", ";", "EReference", "getMetaSql_Ifs", "(", ")", ";", "EAttribute", "getMetaSql_Type", "(", ")", ";", "EReference", "getMetaSql_Cond", "(", ")", ";", "EAttribute", "getMetaSql_Ftype", "(", ")", ";", "EReference", "getMetaSql_Ord", "(", ")", ";", "EClass", "getIfSql", "(", ")", ";", "EReference", "getIfSql_Sqls", "(", ")", ";", "EClass", "getIfSqlFragment", "(", ")", ";", "EAttribute", "getIfSqlFragment_Value", "(", ")", ";", "EReference", "getIfSqlFragment_Col", "(", ")", ";", "EReference", "getIfSqlFragment_Cnst", "(", ")", ";", "EReference", "getIfSqlFragment_Ident", "(", ")", ";", "EReference", "getIfSqlFragment_Dbtab", "(", ")", ";", "EReference", "getIfSqlFragment_Dbcol", "(", ")", ";", "EReference", "getIfSqlFragment_Meta", "(", ")", ";", "EClass", "getIfMetaSql", "(", ")", ";", "EReference", "getIfMetaSql_Ifs", "(", ")", ";", "EAttribute", "getIfMetaSql_Type", "(", ")", ";", "EReference", "getIfMetaSql_Cond", "(", ")", ";", "EClass", "getIfSqlCond", "(", ")", ";", "EReference", "getIfSqlCond_Bool1", "(", ")", ";", "EAttribute", "getIfSqlCond_Oper", "(", ")", ";", "EReference", "getIfSqlCond_Bool2", "(", ")", ";", "EClass", "getIfSqlBool", "(", ")", ";", "EAttribute", "getIfSqlBool_Not", "(", ")", ";", "EReference", "getIfSqlBool_Cnst", "(", ")", ";", "EReference", "getIfSqlBool_Ident", "(", ")", ";", "EReference", "getIfSqlBool_Cond", "(", ")", ";", "EClass", "getOrdSql", "(", ")", ";", "EReference", "getOrdSql_Sqls", "(", ")", ";", "EClass", "getOrdSql2", "(", ")", ";", "EAttribute", "getOrdSql2_Value", "(", ")", ";", "EReference", "getOrdSql2_Cnst", "(", ")", ";", "EReference", "getOrdSql2_Ident", "(", ")", ";", "EReference", "getOrdSql2_Dbcol", "(", ")", ";", "EClass", "getColumn", "(", ")", ";", "EAttribute", "getColumn_Name", "(", ")", ";", "EAttribute", "getColumn_Type", "(", ")", ";", "EAttribute", "getColumn_Vals", "(", ")", ";", "EClass", "getConstant", "(", ")", ";", "EAttribute", "getConstant_Case", "(", ")", ";", "EAttribute", "getConstant_Name", "(", ")", ";", "EAttribute", "getConstant_Type", "(", ")", ";", "EAttribute", "getConstant_Vals", "(", ")", ";", "EClass", "getIdentifier", "(", ")", ";", "EAttribute", "getIdentifier_Mode", "(", ")", ";", "EAttribute", "getIdentifier_Case", "(", ")", ";", "EAttribute", "getIdentifier_Name", "(", ")", ";", "EAttribute", "getIdentifier_Type", "(", ")", ";", "EAttribute", "getIdentifier_Vals", "(", ")", ";", "EClass", "getDatabaseColumn", "(", ")", ";", "EAttribute", "getDatabaseColumn_Name", "(", ")", ";", "EClass", "getDatabaseTable", "(", ")", ";", "EAttribute", "getDatabaseTable_Name", "(", ")", ";", "EClass", "getMappingRule", "(", ")", ";", "EAttribute", "getMappingRule_Name", "(", ")", ";", "EAttribute", "getMappingRule_Type", "(", ")", ";", "EAttribute", "getMappingRule_Filters", "(", ")", ";", "EReference", "getMappingRule_Mapping", "(", ")", ";", "EClass", "getMapping", "(", ")", ";", "EReference", "getMapping_MappingItems", "(", ")", ";", "EClass", "getMappingItem", "(", ")", ";", "EAttribute", "getMappingItem_Col", "(", ")", ";", "EAttribute", "getMappingItem_Type", "(", ")", ";", "EReference", "getMappingItem_Attr", "(", ")", ";", "EClass", "getMappingColumn", "(", ")", ";", "EAttribute", "getMappingColumn_Name", "(", ")", ";", "EAttribute", "getMappingColumn_Vals", "(", ")", ";", "EClass", "getOptionalFeature", "(", ")", ";", "EAttribute", "getOptionalFeature_Name", "(", ")", ";", "EAttribute", "getOptionalFeature_Type", "(", ")", ";", "EAttribute", "getOptionalFeature_Filters", "(", ")", ";", "EAttribute", "getOptionalFeature_Option", "(", ")", ";", "ProcessorDslFactory", "getProcessorDslFactory", "(", ")", ";", "interface", "Literals", "{", "EClass", "ARTIFACTS", "=", "eINSTANCE", ".", "getArtifacts", "(", ")", ";", "EReference", "ARTIFACTS__FEATURES", "=", "eINSTANCE", ".", "getArtifacts_Features", "(", ")", ";", "EReference", "ARTIFACTS__STATEMENTS", "=", "eINSTANCE", ".", "getArtifacts_Statements", "(", ")", ";", "EReference", "ARTIFACTS__MAPPINGS", "=", "eINSTANCE", ".", "getArtifacts_Mappings", "(", ")", ";", "EReference", "ARTIFACTS__POJOS", "=", "eINSTANCE", ".", "getArtifacts_Pojos", "(", ")", ";", "EReference", "ARTIFACTS__USAGES", "=", "eINSTANCE", ".", "getArtifacts_Usages", "(", ")", ";", "EReference", "ARTIFACTS__PROPERTIES", "=", "eINSTANCE", ".", "getArtifacts_Properties", "(", ")", ";", "EReference", "ARTIFACTS__TABLES", "=", "eINSTANCE", ".", "getArtifacts_Tables", "(", ")", ";", "EReference", "ARTIFACTS__TABLE_USAGES", "=", "eINSTANCE", ".", "getArtifacts_TableUsages", "(", ")", ";", "EClass", "PROPERTY", "=", "eINSTANCE", ".", "getProperty", "(", ")", ";", "EAttribute", "PROPERTY__NAME", "=", "eINSTANCE", ".", "getProperty_Name", "(", ")", ";", "EAttribute", "PROPERTY__DO_RESOLVE_POJO", "=", "eINSTANCE", ".", "getProperty_DoResolvePojo", "(", ")", ";", "EAttribute", "PROPERTY__DO_RESOLVE_DB", "=", "eINSTANCE", ".", "getProperty_DoResolveDb", "(", ")", ";", "EAttribute", "PROPERTY__DB_URL", "=", "eINSTANCE", ".", "getProperty_DbUrl", "(", ")", ";", "EAttribute", "PROPERTY__DB_USERNAME", "=", "eINSTANCE", ".", "getProperty_DbUsername", "(", ")", ";", "EAttribute", "PROPERTY__DB_PASSWORD", "=", "eINSTANCE", ".", "getProperty_DbPassword", "(", ")", ";", "EAttribute", "PROPERTY__DB_SCHEMA", "=", "eINSTANCE", ".", "getProperty_DbSchema", "(", ")", ";", "EAttribute", "PROPERTY__DB_DRIVER", "=", "eINSTANCE", ".", "getProperty_DbDriver", "(", ")", ";", "EClass", "POJO_DEFINITION", "=", "eINSTANCE", ".", "getPojoDefinition", "(", ")", ";", "EAttribute", "POJO_DEFINITION__NAME", "=", "eINSTANCE", ".", "getPojoDefinition_Name", "(", ")", ";", "EAttribute", "POJO_DEFINITION__CLASS", "=", "eINSTANCE", ".", "getPojoDefinition_Class", "(", ")", ";", "EClass", "POJO_USAGE", "=", "eINSTANCE", ".", "getPojoUsage", "(", ")", ";", "EReference", "POJO_USAGE__POJO", "=", "eINSTANCE", ".", "getPojoUsage_Pojo", "(", ")", ";", "EClass", "COLUMN_USAGE", "=", "eINSTANCE", ".", "getColumnUsage", "(", ")", ";", "EReference", "COLUMN_USAGE__STATEMENT", "=", "eINSTANCE", ".", "getColumnUsage_Statement", "(", ")", ";", "EClass", "IDENTIFIER_USAGE", "=", "eINSTANCE", ".", "getIdentifierUsage", "(", ")", ";", "EReference", "IDENTIFIER_USAGE__STATEMENT", "=", "eINSTANCE", ".", "getIdentifierUsage_Statement", "(", ")", ";", "EClass", "CONSTANT_USAGE", "=", "eINSTANCE", ".", "getConstantUsage", "(", ")", ";", "EReference", "CONSTANT_USAGE__STATEMENT", "=", "eINSTANCE", ".", "getConstantUsage_Statement", "(", ")", ";", "EClass", "MAPPING_USAGE", "=", "eINSTANCE", ".", "getMappingUsage", "(", ")", ";", "EReference", "MAPPING_USAGE__STATEMENT", "=", "eINSTANCE", ".", "getMappingUsage_Statement", "(", ")", ";", "EClass", "TABLE_DEFINITION", "=", "eINSTANCE", ".", "getTableDefinition", "(", ")", ";", "EAttribute", "TABLE_DEFINITION__NAME", "=", "eINSTANCE", ".", "getTableDefinition_Name", "(", ")", ";", "EAttribute", "TABLE_DEFINITION__TABLE", "=", "eINSTANCE", ".", "getTableDefinition_Table", "(", ")", ";", "EClass", "TABLE_USAGE", "=", "eINSTANCE", ".", "getTableUsage", "(", ")", ";", "EReference", "TABLE_USAGE__STATEMENT", "=", "eINSTANCE", ".", "getTableUsage_Statement", "(", ")", ";", "EReference", "TABLE_USAGE__TABLE", "=", "eINSTANCE", ".", "getTableUsage_Table", "(", ")", ";", "EAttribute", "TABLE_USAGE__PREFIX", "=", "eINSTANCE", ".", "getTableUsage_Prefix", "(", ")", ";", "EClass", "META_STATEMENT", "=", "eINSTANCE", ".", "getMetaStatement", "(", ")", ";", "EAttribute", "META_STATEMENT__NAME", "=", "eINSTANCE", ".", "getMetaStatement_Name", "(", ")", ";", "EAttribute", "META_STATEMENT__TYPE", "=", "eINSTANCE", ".", "getMetaStatement_Type", "(", ")", ";", "EAttribute", "META_STATEMENT__FILTERS", "=", "eINSTANCE", ".", "getMetaStatement_Filters", "(", ")", ";", "EReference", "META_STATEMENT__STATEMENT", "=", "eINSTANCE", ".", "getMetaStatement_Statement", "(", ")", ";", "EClass", "SQL", "=", "eINSTANCE", ".", "getSql", "(", ")", ";", "EReference", "SQL__SQLS", "=", "eINSTANCE", ".", "getSql_Sqls", "(", ")", ";", "EClass", "SQL_FRAGMENT", "=", "eINSTANCE", ".", "getSqlFragment", "(", ")", ";", "EAttribute", "SQL_FRAGMENT__VALUE", "=", "eINSTANCE", ".", "getSqlFragment_Value", "(", ")", ";", "EReference", "SQL_FRAGMENT__COL", "=", "eINSTANCE", ".", "getSqlFragment_Col", "(", ")", ";", "EReference", "SQL_FRAGMENT__CNST", "=", "eINSTANCE", ".", "getSqlFragment_Cnst", "(", ")", ";", "EReference", "SQL_FRAGMENT__IDENT", "=", "eINSTANCE", ".", "getSqlFragment_Ident", "(", ")", ";", "EReference", "SQL_FRAGMENT__META", "=", "eINSTANCE", ".", "getSqlFragment_Meta", "(", ")", ";", "EReference", "SQL_FRAGMENT__DBTAB", "=", "eINSTANCE", ".", "getSqlFragment_Dbtab", "(", ")", ";", "EReference", "SQL_FRAGMENT__DBCOL", "=", "eINSTANCE", ".", "getSqlFragment_Dbcol", "(", ")", ";", "EClass", "META_SQL", "=", "eINSTANCE", ".", "getMetaSql", "(", ")", ";", "EReference", "META_SQL__IFS", "=", "eINSTANCE", ".", "getMetaSql_Ifs", "(", ")", ";", "EAttribute", "META_SQL__TYPE", "=", "eINSTANCE", ".", "getMetaSql_Type", "(", ")", ";", "EReference", "META_SQL__COND", "=", "eINSTANCE", ".", "getMetaSql_Cond", "(", ")", ";", "EAttribute", "META_SQL__FTYPE", "=", "eINSTANCE", ".", "getMetaSql_Ftype", "(", ")", ";", "EReference", "META_SQL__ORD", "=", "eINSTANCE", ".", "getMetaSql_Ord", "(", ")", ";", "EClass", "IF_SQL", "=", "eINSTANCE", ".", "getIfSql", "(", ")", ";", "EReference", "IF_SQL__SQLS", "=", "eINSTANCE", ".", "getIfSql_Sqls", "(", ")", ";", "EClass", "IF_SQL_FRAGMENT", "=", "eINSTANCE", ".", "getIfSqlFragment", "(", ")", ";", "EAttribute", "IF_SQL_FRAGMENT__VALUE", "=", "eINSTANCE", ".", "getIfSqlFragment_Value", "(", ")", ";", "EReference", "IF_SQL_FRAGMENT__COL", "=", "eINSTANCE", ".", "getIfSqlFragment_Col", "(", ")", ";", "EReference", "IF_SQL_FRAGMENT__CNST", "=", "eINSTANCE", ".", "getIfSqlFragment_Cnst", "(", ")", ";", "EReference", "IF_SQL_FRAGMENT__IDENT", "=", "eINSTANCE", ".", "getIfSqlFragment_Ident", "(", ")", ";", "EReference", "IF_SQL_FRAGMENT__DBTAB", "=", "eINSTANCE", ".", "getIfSqlFragment_Dbtab", "(", ")", ";", "EReference", "IF_SQL_FRAGMENT__DBCOL", "=", "eINSTANCE", ".", "getIfSqlFragment_Dbcol", "(", ")", ";", "EReference", "IF_SQL_FRAGMENT__META", "=", "eINSTANCE", ".", "getIfSqlFragment_Meta", "(", ")", ";", "EClass", "IF_META_SQL", "=", "eINSTANCE", ".", "getIfMetaSql", "(", ")", ";", "EReference", "IF_META_SQL__IFS", "=", "eINSTANCE", ".", "getIfMetaSql_Ifs", "(", ")", ";", "EAttribute", "IF_META_SQL__TYPE", "=", "eINSTANCE", ".", "getIfMetaSql_Type", "(", ")", ";", "EReference", "IF_META_SQL__COND", "=", "eINSTANCE", ".", "getIfMetaSql_Cond", "(", ")", ";", "EClass", "IF_SQL_COND", "=", "eINSTANCE", ".", "getIfSqlCond", "(", ")", ";", "EReference", "IF_SQL_COND__BOOL1", "=", "eINSTANCE", ".", "getIfSqlCond_Bool1", "(", ")", ";", "EAttribute", "IF_SQL_COND__OPER", "=", "eINSTANCE", ".", "getIfSqlCond_Oper", "(", ")", ";", "EReference", "IF_SQL_COND__BOOL2", "=", "eINSTANCE", ".", "getIfSqlCond_Bool2", "(", ")", ";", "EClass", "IF_SQL_BOOL", "=", "eINSTANCE", ".", "getIfSqlBool", "(", ")", ";", "EAttribute", "IF_SQL_BOOL__NOT", "=", "eINSTANCE", ".", "getIfSqlBool_Not", "(", ")", ";", "EReference", "IF_SQL_BOOL__CNST", "=", "eINSTANCE", ".", "getIfSqlBool_Cnst", "(", ")", ";", "EReference", "IF_SQL_BOOL__IDENT", "=", "eINSTANCE", ".", "getIfSqlBool_Ident", "(", ")", ";", "EReference", "IF_SQL_BOOL__COND", "=", "eINSTANCE", ".", "getIfSqlBool_Cond", "(", ")", ";", "EClass", "ORD_SQL", "=", "eINSTANCE", ".", "getOrdSql", "(", ")", ";", "EReference", "ORD_SQL__SQLS", "=", "eINSTANCE", ".", "getOrdSql_Sqls", "(", ")", ";", "EClass", "ORD_SQL2", "=", "eINSTANCE", ".", "getOrdSql2", "(", ")", ";", "EAttribute", "ORD_SQL2__VALUE", "=", "eINSTANCE", ".", "getOrdSql2_Value", "(", ")", ";", "EReference", "ORD_SQL2__CNST", "=", "eINSTANCE", ".", "getOrdSql2_Cnst", "(", ")", ";", "EReference", "ORD_SQL2__IDENT", "=", "eINSTANCE", ".", "getOrdSql2_Ident", "(", ")", ";", "EReference", "ORD_SQL2__DBCOL", "=", "eINSTANCE", ".", "getOrdSql2_Dbcol", "(", ")", ";", "EClass", "COLUMN", "=", "eINSTANCE", ".", "getColumn", "(", ")", ";", "EAttribute", "COLUMN__NAME", "=", "eINSTANCE", ".", "getColumn_Name", "(", ")", ";", "EAttribute", "COLUMN__TYPE", "=", "eINSTANCE", ".", "getColumn_Type", "(", ")", ";", "EAttribute", "COLUMN__VALS", "=", "eINSTANCE", ".", "getColumn_Vals", "(", ")", ";", "EClass", "CONSTANT", "=", "eINSTANCE", ".", "getConstant", "(", ")", ";", "EAttribute", "CONSTANT__CASE", "=", "eINSTANCE", ".", "getConstant_Case", "(", ")", ";", "EAttribute", "CONSTANT__NAME", "=", "eINSTANCE", ".", "getConstant_Name", "(", ")", ";", "EAttribute", "CONSTANT__TYPE", "=", "eINSTANCE", ".", "getConstant_Type", "(", ")", ";", "EAttribute", "CONSTANT__VALS", "=", "eINSTANCE", ".", "getConstant_Vals", "(", ")", ";", "EClass", "IDENTIFIER", "=", "eINSTANCE", ".", "getIdentifier", "(", ")", ";", "EAttribute", "IDENTIFIER__MODE", "=", "eINSTANCE", ".", "getIdentifier_Mode", "(", ")", ";", "EAttribute", "IDENTIFIER__CASE", "=", "eINSTANCE", ".", "getIdentifier_Case", "(", ")", ";", "EAttribute", "IDENTIFIER__NAME", "=", "eINSTANCE", ".", "getIdentifier_Name", "(", ")", ";", "EAttribute", "IDENTIFIER__TYPE", "=", "eINSTANCE", ".", "getIdentifier_Type", "(", ")", ";", "EAttribute", "IDENTIFIER__VALS", "=", "eINSTANCE", ".", "getIdentifier_Vals", "(", ")", ";", "EClass", "DATABASE_COLUMN", "=", "eINSTANCE", ".", "getDatabaseColumn", "(", ")", ";", "EAttribute", "DATABASE_COLUMN__NAME", "=", "eINSTANCE", ".", "getDatabaseColumn_Name", "(", ")", ";", "EClass", "DATABASE_TABLE", "=", "eINSTANCE", ".", "getDatabaseTable", "(", ")", ";", "EAttribute", "DATABASE_TABLE__NAME", "=", "eINSTANCE", ".", "getDatabaseTable_Name", "(", ")", ";", "EClass", "MAPPING_RULE", "=", "eINSTANCE", ".", "getMappingRule", "(", ")", ";", "EAttribute", "MAPPING_RULE__NAME", "=", "eINSTANCE", ".", "getMappingRule_Name", "(", ")", ";", "EAttribute", "MAPPING_RULE__TYPE", "=", "eINSTANCE", ".", "getMappingRule_Type", "(", ")", ";", "EAttribute", "MAPPING_RULE__FILTERS", "=", "eINSTANCE", ".", "getMappingRule_Filters", "(", ")", ";", "EReference", "MAPPING_RULE__MAPPING", "=", "eINSTANCE", ".", "getMappingRule_Mapping", "(", ")", ";", "EClass", "MAPPING", "=", "eINSTANCE", ".", "getMapping", "(", ")", ";", "EReference", "MAPPING__MAPPING_ITEMS", "=", "eINSTANCE", ".", "getMapping_MappingItems", "(", ")", ";", "EClass", "MAPPING_ITEM", "=", "eINSTANCE", ".", "getMappingItem", "(", ")", ";", "EAttribute", "MAPPING_ITEM__COL", "=", "eINSTANCE", ".", "getMappingItem_Col", "(", ")", ";", "EAttribute", "MAPPING_ITEM__TYPE", "=", "eINSTANCE", ".", "getMappingItem_Type", "(", ")", ";", "EReference", "MAPPING_ITEM__ATTR", "=", "eINSTANCE", ".", "getMappingItem_Attr", "(", ")", ";", "EClass", "MAPPING_COLUMN", "=", "eINSTANCE", ".", "getMappingColumn", "(", ")", ";", "EAttribute", "MAPPING_COLUMN__NAME", "=", "eINSTANCE", ".", "getMappingColumn_Name", "(", ")", ";", "EAttribute", "MAPPING_COLUMN__VALS", "=", "eINSTANCE", ".", "getMappingColumn_Vals", "(", ")", ";", "EClass", "OPTIONAL_FEATURE", "=", "eINSTANCE", ".", "getOptionalFeature", "(", ")", ";", "EAttribute", "OPTIONAL_FEATURE__NAME", "=", "eINSTANCE", ".", "getOptionalFeature_Name", "(", ")", ";", "EAttribute", "OPTIONAL_FEATURE__TYPE", "=", "eINSTANCE", ".", "getOptionalFeature_Type", "(", ")", ";", "EAttribute", "OPTIONAL_FEATURE__FILTERS", "=", "eINSTANCE", ".", "getOptionalFeature_Filters", "(", ")", ";", "EAttribute", "OPTIONAL_FEATURE__OPTION", "=", "eINSTANCE", ".", "getOptionalFeature_Option", "(", ")", ";", "}", "}", "</s>" ]
258
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "MappingItem", "extends", "EObject", "{", "String", "getCol", "(", ")", ";", "void", "setCol", "(", "String", "value", ")", ";", "String", "getType", "(", ")", ";", "void", "setType", "(", "String", "value", ")", ";", "MappingColumn", "getAttr", "(", ")", ";", "void", "setAttr", "(", "MappingColumn", "value", ")", ";", "}", "</s>" ]
259
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "OrdSql2", "extends", "EObject", "{", "String", "getValue", "(", ")", ";", "void", "setValue", "(", "String", "value", ")", ";", "Constant", "getCnst", "(", ")", ";", "void", "setCnst", "(", "Constant", "value", ")", ";", "Identifier", "getIdent", "(", ")", ";", "void", "setIdent", "(", "Identifier", "value", ")", ";", "DatabaseColumn", "getDbcol", "(", ")", ";", "void", "setDbcol", "(", "DatabaseColumn", "value", ")", ";", "}", "</s>" ]
260
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "MappingRule", "extends", "EObject", "{", "String", "getName", "(", ")", ";", "void", "setName", "(", "String", "value", ")", ";", "String", "getType", "(", ")", ";", "void", "setType", "(", "String", "value", ")", ";", "EList", "<", "String", ">", "getFilters", "(", ")", ";", "Mapping", "getMapping", "(", ")", ";", "void", "setMapping", "(", "Mapping", "value", ")", ";", "}", "</s>" ]
261
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "IfSql", "extends", "EObject", "{", "EList", "<", "IfSqlFragment", ">", "getSqls", "(", ")", ";", "}", "</s>" ]
262
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EFactory", ";", "public", "interface", "ProcessorDslFactory", "extends", "EFactory", "{", "ProcessorDslFactory", "eINSTANCE", "=", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "impl", ".", "ProcessorDslFactoryImpl", ".", "init", "(", ")", ";", "Artifacts", "createArtifacts", "(", ")", ";", "Property", "createProperty", "(", ")", ";", "PojoDefinition", "createPojoDefinition", "(", ")", ";", "PojoUsage", "createPojoUsage", "(", ")", ";", "ColumnUsage", "createColumnUsage", "(", ")", ";", "IdentifierUsage", "createIdentifierUsage", "(", ")", ";", "ConstantUsage", "createConstantUsage", "(", ")", ";", "MappingUsage", "createMappingUsage", "(", ")", ";", "TableDefinition", "createTableDefinition", "(", ")", ";", "TableUsage", "createTableUsage", "(", ")", ";", "MetaStatement", "createMetaStatement", "(", ")", ";", "Sql", "createSql", "(", ")", ";", "SqlFragment", "createSqlFragment", "(", ")", ";", "MetaSql", "createMetaSql", "(", ")", ";", "IfSql", "createIfSql", "(", ")", ";", "IfSqlFragment", "createIfSqlFragment", "(", ")", ";", "IfMetaSql", "createIfMetaSql", "(", ")", ";", "IfSqlCond", "createIfSqlCond", "(", ")", ";", "IfSqlBool", "createIfSqlBool", "(", ")", ";", "OrdSql", "createOrdSql", "(", ")", ";", "OrdSql2", "createOrdSql2", "(", ")", ";", "Column", "createColumn", "(", ")", ";", "Constant", "createConstant", "(", ")", ";", "Identifier", "createIdentifier", "(", ")", ";", "DatabaseColumn", "createDatabaseColumn", "(", ")", ";", "DatabaseTable", "createDatabaseTable", "(", ")", ";", "MappingRule", "createMappingRule", "(", ")", ";", "Mapping", "createMapping", "(", ")", ";", "MappingItem", "createMappingItem", "(", ")", ";", "MappingColumn", "createMappingColumn", "(", ")", ";", "OptionalFeature", "createOptionalFeature", "(", ")", ";", "ProcessorDslPackage", "getProcessorDslPackage", "(", ")", ";", "}", "</s>" ]
263
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "validation", ";", "import", "java", ".", "util", ".", "ArrayList", ";", "import", "java", ".", "util", ".", "List", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EPackage", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "validation", ".", "AbstractDeclarativeValidator", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "validation", ".", "ComposedChecks", ";", "@", "ComposedChecks", "(", "validators", "=", "{", "org", ".", "eclipse", ".", "xtext", ".", "validation", ".", "ImportUriValidator", ".", "class", "}", ")", "public", "class", "AbstractProcessorDslJavaValidator", "extends", "AbstractDeclarativeValidator", "{", "@", "Override", "protected", "List", "<", "EPackage", ">", "getEPackages", "(", ")", "{", "List", "<", "EPackage", ">", "result", "=", "new", "ArrayList", "<", "EPackage", ">", "(", ")", ";", "result", ".", "add", "(", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ".", "eINSTANCE", ")", ";", "return", "result", ";", "}", "}", "</s>" ]
264
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "serializer", ";", "import", "com", ".", "google", ".", "inject", ".", "Inject", ";", "import", "java", ".", "util", ".", "List", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "IGrammarAccess", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "RuleCall", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "nodemodel", ".", "INode", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "serializer", ".", "analysis", ".", "GrammarAlias", ".", "AbstractElementAlias", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "serializer", ".", "analysis", ".", "GrammarAlias", ".", "TokenAlias", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "serializer", ".", "analysis", ".", "ISyntacticSequencerPDAProvider", ".", "ISynNavigable", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "serializer", ".", "analysis", ".", "ISyntacticSequencerPDAProvider", ".", "ISynTransition", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "serializer", ".", "sequencer", ".", "AbstractSyntacticSequencer", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "services", ".", "ProcessorDslGrammarAccess", ";", "@", "SuppressWarnings", "(", "\"restriction\"", ")", "public", "class", "AbstractProcessorDslSyntacticSequencer", "extends", "AbstractSyntacticSequencer", "{", "protected", "ProcessorDslGrammarAccess", "grammarAccess", ";", "protected", "AbstractElementAlias", "match_Artifacts_WSTerminalRuleCall_0_a", ";", "protected", "AbstractElementAlias", "match_Artifacts_WSTerminalRuleCall_1_0_1_a", ";", "protected", "AbstractElementAlias", "match_Artifacts_WSTerminalRuleCall_1_1_1_a", ";", "protected", "AbstractElementAlias", "match_Artifacts_WSTerminalRuleCall_1_2_1_a", ";", "protected", "AbstractElementAlias", "match_Artifacts_WSTerminalRuleCall_1_3_1_a", ";", "protected", "AbstractElementAlias", "match_Artifacts_WSTerminalRuleCall_1_4_1_a", ";", "protected", "AbstractElementAlias", "match_Artifacts_WSTerminalRuleCall_1_5_1_a", ";", "protected", "AbstractElementAlias", "match_Artifacts_WSTerminalRuleCall_1_6_1_a", ";", "protected", "AbstractElementAlias", "match_Artifacts_WSTerminalRuleCall_1_7_1_a", ";", "protected", "AbstractElementAlias", "match_Column_CARETTerminalRuleCall_1_0_q", ";", "protected", "AbstractElementAlias", "match_Constant_CARETTerminalRuleCall_2_0_q", ";", "protected", "AbstractElementAlias", "match_Identifier_CARETTerminalRuleCall_3_0_q", ";", "protected", "AbstractElementAlias", "match_IfSqlCond_WSTerminalRuleCall_0_a", ";", "protected", "AbstractElementAlias", "match_IfSqlCond_WSTerminalRuleCall_2_a", ";", "protected", "AbstractElementAlias", "match_IfSqlCond_WSTerminalRuleCall_3_1_a", ";", "protected", "AbstractElementAlias", "match_IfSqlCond_WSTerminalRuleCall_3_3_a", ";", "protected", "AbstractElementAlias", "match_MappingItem_STRINGTerminalRuleCall_1_0_q", ";", "protected", "AbstractElementAlias", "match_Mapping_WSTerminalRuleCall_0_a", ";", "protected", "AbstractElementAlias", "match_Mapping_WSTerminalRuleCall_2_0_p", ";", "protected", "AbstractElementAlias", "match_Mapping_WSTerminalRuleCall_3_a", ";", "protected", "AbstractElementAlias", "match_MetaSql_WSTerminalRuleCall_4_1_a", ";", "protected", "AbstractElementAlias", "match_Property_WSTerminalRuleCall_0_0_1_p", ";", "protected", "AbstractElementAlias", "match_Property_WSTerminalRuleCall_0_1_1_p", ";", "protected", "AbstractElementAlias", "match_Property_WSTerminalRuleCall_0_2_1_p", ";", "protected", "AbstractElementAlias", "match_Property_WSTerminalRuleCall_0_3_1_p", ";", "protected", "AbstractElementAlias", "match_Property_WSTerminalRuleCall_0_4_1_p", ";", "protected", "AbstractElementAlias", "match_Property_WSTerminalRuleCall_0_5_1_p", ";", "protected", "AbstractElementAlias", "match_Property_WSTerminalRuleCall_0_6_1_p", ";", "@", "Inject", "protected", "void", "init", "(", "IGrammarAccess", "access", ")", "{", "grammarAccess", "=", "(", "ProcessorDslGrammarAccess", ")", "access", ";", "match_Artifacts_WSTerminalRuleCall_0_a", "=", "new", "TokenAlias", "(", "true", ",", "true", ",", "grammarAccess", ".", "getArtifactsAccess", "(", ")", ".", "getWSTerminalRuleCall_0", "(", ")", ")", ";", "match_Artifacts_WSTerminalRuleCall_1_0_1_a", "=", "new", "TokenAlias", "(", "true", ",", "true", ",", "grammarAccess", ".", "getArtifactsAccess", "(", ")", ".", "getWSTerminalRuleCall_1_0_1", "(", ")", ")", ";", "match_Artifacts_WSTerminalRuleCall_1_1_1_a", "=", "new", "TokenAlias", "(", "true", ",", "true", ",", "grammarAccess", ".", "getArtifactsAccess", "(", ")", ".", "getWSTerminalRuleCall_1_1_1", "(", ")", ")", ";", "match_Artifacts_WSTerminalRuleCall_1_2_1_a", "=", "new", "TokenAlias", "(", "true", ",", "true", ",", "grammarAccess", ".", "getArtifactsAccess", "(", ")", ".", "getWSTerminalRuleCall_1_2_1", "(", ")", ")", ";", "match_Artifacts_WSTerminalRuleCall_1_3_1_a", "=", "new", "TokenAlias", "(", "true", ",", "true", ",", "grammarAccess", ".", "getArtifactsAccess", "(", ")", ".", "getWSTerminalRuleCall_1_3_1", "(", ")", ")", ";", "match_Artifacts_WSTerminalRuleCall_1_4_1_a", "=", "new", "TokenAlias", "(", "true", ",", "true", ",", "grammarAccess", ".", "getArtifactsAccess", "(", ")", ".", "getWSTerminalRuleCall_1_4_1", "(", ")", ")", ";", "match_Artifacts_WSTerminalRuleCall_1_5_1_a", "=", "new", "TokenAlias", "(", "true", ",", "true", ",", "grammarAccess", ".", "getArtifactsAccess", "(", ")", ".", "getWSTerminalRuleCall_1_5_1", "(", ")", ")", ";", "match_Artifacts_WSTerminalRuleCall_1_6_1_a", "=", "new", "TokenAlias", "(", "true", ",", "true", ",", "grammarAccess", ".", "getArtifactsAccess", "(", ")", ".", "getWSTerminalRuleCall_1_6_1", "(", ")", ")", ";", "match_Artifacts_WSTerminalRuleCall_1_7_1_a", "=", "new", "TokenAlias", "(", "true", ",", "true", ",", "grammarAccess", ".", "getArtifactsAccess", "(", ")", ".", "getWSTerminalRuleCall_1_7_1", "(", ")", ")", ";", "match_Column_CARETTerminalRuleCall_1_0_q", "=", "new", "TokenAlias", "(", "true", ",", "false", ",", "grammarAccess", ".", "getColumnAccess", "(", ")", ".", "getCARETTerminalRuleCall_1_0", "(", ")", ")", ";", "match_Constant_CARETTerminalRuleCall_2_0_q", "=", "new", "TokenAlias", "(", "true", ",", "false", ",", "grammarAccess", ".", "getConstantAccess", "(", ")", ".", "getCARETTerminalRuleCall_2_0", "(", ")", ")", ";", "match_Identifier_CARETTerminalRuleCall_3_0_q", "=", "new", "TokenAlias", "(", "true", ",", "false", ",", "grammarAccess", ".", "getIdentifierAccess", "(", ")", ".", "getCARETTerminalRuleCall_3_0", "(", ")", ")", ";", "match_IfSqlCond_WSTerminalRuleCall_0_a", "=", "new", "TokenAlias", "(", "true", ",", "true", ",", "grammarAccess", ".", "getIfSqlCondAccess", "(", ")", ".", "getWSTerminalRuleCall_0", "(", ")", ")", ";", "match_IfSqlCond_WSTerminalRuleCall_2_a", "=", "new", "TokenAlias", "(", "true", ",", "true", ",", "grammarAccess", ".", "getIfSqlCondAccess", "(", ")", ".", "getWSTerminalRuleCall_2", "(", ")", ")", ";", "match_IfSqlCond_WSTerminalRuleCall_3_1_a", "=", "new", "TokenAlias", "(", "true", ",", "true", ",", "grammarAccess", ".", "getIfSqlCondAccess", "(", ")", ".", "getWSTerminalRuleCall_3_1", "(", ")", ")", ";", "match_IfSqlCond_WSTerminalRuleCall_3_3_a", "=", "new", "TokenAlias", "(", "true", ",", "true", ",", "grammarAccess", ".", "getIfSqlCondAccess", "(", ")", ".", "getWSTerminalRuleCall_3_3", "(", ")", ")", ";", "match_MappingItem_STRINGTerminalRuleCall_1_0_q", "=", "new", "TokenAlias", "(", "true", ",", "false", ",", "grammarAccess", ".", "getMappingItemAccess", "(", ")", ".", "getSTRINGTerminalRuleCall_1_0", "(", ")", ")", ";", "match_Mapping_WSTerminalRuleCall_0_a", "=", "new", "TokenAlias", "(", "true", ",", "true", ",", "grammarAccess", ".", "getMappingAccess", "(", ")", ".", "getWSTerminalRuleCall_0", "(", ")", ")", ";", "match_Mapping_WSTerminalRuleCall_2_0_p", "=", "new", "TokenAlias", "(", "false", ",", "true", ",", "grammarAccess", ".", "getMappingAccess", "(", ")", ".", "getWSTerminalRuleCall_2_0", "(", ")", ")", ";", "match_Mapping_WSTerminalRuleCall_3_a", "=", "new", "TokenAlias", "(", "true", ",", "true", ",", "grammarAccess", ".", "getMappingAccess", "(", ")", ".", "getWSTerminalRuleCall_3", "(", ")", ")", ";", "match_MetaSql_WSTerminalRuleCall_4_1_a", "=", "new", "TokenAlias", "(", "true", ",", "true", ",", "grammarAccess", ".", "getMetaSqlAccess", "(", ")", ".", "getWSTerminalRuleCall_4_1", "(", ")", ")", ";", "match_Property_WSTerminalRuleCall_0_0_1_p", "=", "new", "TokenAlias", "(", "false", ",", "true", ",", "grammarAccess", ".", "getPropertyAccess", "(", ")", ".", "getWSTerminalRuleCall_0_0_1", "(", ")", ")", ";", "match_Property_WSTerminalRuleCall_0_1_1_p", "=", "new", "TokenAlias", "(", "false", ",", "true", ",", "grammarAccess", ".", "getPropertyAccess", "(", ")", ".", "getWSTerminalRuleCall_0_1_1", "(", ")", ")", ";", "match_Property_WSTerminalRuleCall_0_2_1_p", "=", "new", "TokenAlias", "(", "false", ",", "true", ",", "grammarAccess", ".", "getPropertyAccess", "(", ")", ".", "getWSTerminalRuleCall_0_2_1", "(", ")", ")", ";", "match_Property_WSTerminalRuleCall_0_3_1_p", "=", "new", "TokenAlias", "(", "false", ",", "true", ",", "grammarAccess", ".", "getPropertyAccess", "(", ")", ".", "getWSTerminalRuleCall_0_3_1", "(", ")", ")", ";", "match_Property_WSTerminalRuleCall_0_4_1_p", "=", "new", "TokenAlias", "(", "false", ",", "true", ",", "grammarAccess", ".", "getPropertyAccess", "(", ")", ".", "getWSTerminalRuleCall_0_4_1", "(", ")", ")", ";", "match_Property_WSTerminalRuleCall_0_5_1_p", "=", "new", "TokenAlias", "(", "false", ",", "true", ",", "grammarAccess", ".", "getPropertyAccess", "(", ")", ".", "getWSTerminalRuleCall_0_5_1", "(", ")", ")", ";", "match_Property_WSTerminalRuleCall_0_6_1_p", "=", "new", "TokenAlias", "(", "false", ",", "true", ",", "grammarAccess", ".", "getPropertyAccess", "(", ")", ".", "getWSTerminalRuleCall_0_6_1", "(", ")", ")", ";", "}", "@", "Override", "protected", "String", "getUnassignedRuleCallToken", "(", "EObject", "semanticObject", ",", "RuleCall", "ruleCall", ",", "INode", "node", ")", "{", "if", "(", "ruleCall", ".", "getRule", "(", ")", "==", "grammarAccess", ".", "getATRule", "(", ")", ")", "return", "getATToken", "(", "semanticObject", ",", "ruleCall", ",", "node", ")", ";", "else", "if", "(", "ruleCall", ".", "getRule", "(", ")", "==", "grammarAccess", ".", "getBORRule", "(", ")", ")", "return", "getBORToken", "(", "semanticObject", ",", "ruleCall", ",", "node", ")", ";", "else", "if", "(", "ruleCall", ".", "getRule", "(", ")", "==", "grammarAccess", ".", "getCARETRule", "(", ")", ")", "return", "getCARETToken", "(", "semanticObject", ",", "ruleCall", ",", "node", ")", ";", "else", "if", "(", "ruleCall", ".", "getRule", "(", ")", "==", "grammarAccess", ".", "getCOLONRule", "(", ")", ")", "return", "getCOLONToken", "(", "semanticObject", ",", "ruleCall", ",", "node", ")", ";", "else", "if", "(", "ruleCall", ".", "getRule", "(", ")", "==", "grammarAccess", ".", "getCOMMARule", "(", ")", ")", "return", "getCOMMAToken", "(", "semanticObject", ",", "ruleCall", ",", "node", ")", ";", "else", "if", "(", "ruleCall", ".", "getRule", "(", ")", "==", "grammarAccess", ".", "getEQUALSRule", "(", ")", ")", "return", "getEQUALSToken", "(", "semanticObject", ",", "ruleCall", ",", "node", ")", ";", "else", "if", "(", "ruleCall", ".", "getRule", "(", ")", "==", "grammarAccess", ".", "getLBRACERule", "(", ")", ")", "return", "getLBRACEToken", "(", "semanticObject", ",", "ruleCall", ",", "node", ")", ";", "else", "if", "(", "ruleCall", ".", "getRule", "(", ")", "==", "grammarAccess", ".", "getLPARENRule", "(", ")", ")", "return", "getLPARENToken", "(", "semanticObject", ",", "ruleCall", ",", "node", ")", ";", "else", "if", "(", "ruleCall", ".", "getRule", "(", ")", "==", "grammarAccess", ".", "getNUMBERRule", "(", ")", ")", "return", "getNUMBERToken", "(", "semanticObject", ",", "ruleCall", ",", "node", ")", ";", "else", "if", "(", "ruleCall", ".", "getRule", "(", ")", "==", "grammarAccess", ".", "getPERCENTRule", "(", ")", ")", "return", "getPERCENTToken", "(", "semanticObject", ",", "ruleCall", ",", "node", ")", ";", "else", "if", "(", "ruleCall", ".", "getRule", "(", ")", "==", "grammarAccess", ".", "getRBRACERule", "(", ")", ")", "return", "getRBRACEToken", "(", "semanticObject", ",", "ruleCall", ",", "node", ")", ";", "else", "if", "(", "ruleCall", ".", "getRule", "(", ")", "==", "grammarAccess", ".", "getRPARENRule", "(", ")", ")", "return", "getRPARENToken", "(", "semanticObject", ",", "ruleCall", ",", "node", ")", ";", "else", "if", "(", "ruleCall", ".", "getRule", "(", ")", "==", "grammarAccess", ".", "getSEMICOLONRule", "(", ")", ")", "return", "getSEMICOLONToken", "(", "semanticObject", ",", "ruleCall", ",", "node", ")", ";", "else", "if", "(", "ruleCall", ".", "getRule", "(", ")", "==", "grammarAccess", ".", "getSTRINGRule", "(", ")", ")", "return", "getSTRINGToken", "(", "semanticObject", ",", "ruleCall", ",", "node", ")", ";", "else", "if", "(", "ruleCall", ".", "getRule", "(", ")", "==", "grammarAccess", ".", "getWSRule", "(", ")", ")", "return", "getWSToken", "(", "semanticObject", ",", "ruleCall", ",", "node", ")", ";", "return", "\"\"", ";", "}", "protected", "String", "getATToken", "(", "EObject", "semanticObject", ",", "RuleCall", "ruleCall", ",", "INode", "node", ")", "{", "if", "(", "node", "!=", "null", ")", "return", "getTokenText", "(", "node", ")", ";", "return", "\"@\"", ";", "}", "protected", "String", "getBORToken", "(", "EObject", "semanticObject", ",", "RuleCall", "ruleCall", ",", "INode", "node", ")", "{", "if", "(", "node", "!=", "null", ")", "return", "getTokenText", "(", "node", ")", ";", "return", "\"|\"", ";", "}", "protected", "String", "getCARETToken", "(", "EObject", "semanticObject", ",", "RuleCall", "ruleCall", ",", "INode", "node", ")", "{", "if", "(", "node", "!=", "null", ")", "return", "getTokenText", "(", "node", ")", ";", "return", "\"^\"", ";", "}", "protected", "String", "getCOLONToken", "(", "EObject", "semanticObject", ",", "RuleCall", "ruleCall", ",", "INode", "node", ")", "{", "if", "(", "node", "!=", "null", ")", "return", "getTokenText", "(", "node", ")", ";", "return", "\":\"", ";", "}", "protected", "String", "getCOMMAToken", "(", "EObject", "semanticObject", ",", "RuleCall", "ruleCall", ",", "INode", "node", ")", "{", "if", "(", "node", "!=", "null", ")", "return", "getTokenText", "(", "node", ")", ";", "return", "\",\"", ";", "}", "protected", "String", "getEQUALSToken", "(", "EObject", "semanticObject", ",", "RuleCall", "ruleCall", ",", "INode", "node", ")", "{", "if", "(", "node", "!=", "null", ")", "return", "getTokenText", "(", "node", ")", ";", "return", "\"=\"", ";", "}", "protected", "String", "getLBRACEToken", "(", "EObject", "semanticObject", ",", "RuleCall", "ruleCall", ",", "INode", "node", ")", "{", "if", "(", "node", "!=", "null", ")", "return", "getTokenText", "(", "node", ")", ";", "return", "\"{\"", ";", "}", "protected", "String", "getLPARENToken", "(", "EObject", "semanticObject", ",", "RuleCall", "ruleCall", ",", "INode", "node", ")", "{", "if", "(", "node", "!=", "null", ")", "return", "getTokenText", "(", "node", ")", ";", "return", "\"(\"", ";", "}", "protected", "String", "getNUMBERToken", "(", "EObject", "semanticObject", ",", "RuleCall", "ruleCall", ",", "INode", "node", ")", "{", "if", "(", "node", "!=", "null", ")", "return", "getTokenText", "(", "node", ")", ";", "return", "\"\"", ";", "}", "protected", "String", "getPERCENTToken", "(", "EObject", "semanticObject", ",", "RuleCall", "ruleCall", ",", "INode", "node", ")", "{", "if", "(", "node", "!=", "null", ")", "return", "getTokenText", "(", "node", ")", ";", "return", "\"%\"", ";", "}", "protected", "String", "getRBRACEToken", "(", "EObject", "semanticObject", ",", "RuleCall", "ruleCall", ",", "INode", "node", ")", "{", "if", "(", "node", "!=", "null", ")", "return", "getTokenText", "(", "node", ")", ";", "return", "\"}\"", ";", "}", "protected", "String", "getRPARENToken", "(", "EObject", "semanticObject", ",", "RuleCall", "ruleCall", ",", "INode", "node", ")", "{", "if", "(", "node", "!=", "null", ")", "return", "getTokenText", "(", "node", ")", ";", "return", "\")\"", ";", "}", "protected", "String", "getSEMICOLONToken", "(", "EObject", "semanticObject", ",", "RuleCall", "ruleCall", ",", "INode", "node", ")", "{", "if", "(", "node", "!=", "null", ")", "return", "getTokenText", "(", "node", ")", ";", "return", "\";\"", ";", "}", "protected", "String", "getSTRINGToken", "(", "EObject", "semanticObject", ",", "RuleCall", "ruleCall", ",", "INode", "node", ")", "{", "if", "(", "node", "!=", "null", ")", "return", "getTokenText", "(", "node", ")", ";", "return", "\"$\"", ";", "}", "protected", "String", "getWSToken", "(", "EObject", "semanticObject", ",", "RuleCall", "ruleCall", ",", "INode", "node", ")", "{", "if", "(", "node", "!=", "null", ")", "return", "getTokenText", "(", "node", ")", ";", "return", "\"", "\"", ";", "}", "@", "Override", "protected", "void", "emitUnassignedTokens", "(", "EObject", "semanticObject", ",", "ISynTransition", "transition", ",", "INode", "fromNode", ",", "INode", "toNode", ")", "{", "if", "(", "transition", ".", "getAmbiguousSyntaxes", "(", ")", ".", "isEmpty", "(", ")", ")", "return", ";", "List", "<", "INode", ">", "transitionNodes", "=", "collectNodes", "(", "fromNode", ",", "toNode", ")", ";", "for", "(", "AbstractElementAlias", "syntax", ":", "transition", ".", "getAmbiguousSyntaxes", "(", ")", ")", "{", "List", "<", "INode", ">", "syntaxNodes", "=", "getNodesFor", "(", "transitionNodes", ",", "syntax", ")", ";", "if", "(", "match_Artifacts_WSTerminalRuleCall_0_a", ".", "equals", "(", "syntax", ")", ")", "emit_Artifacts_WSTerminalRuleCall_0_a", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_Artifacts_WSTerminalRuleCall_1_0_1_a", ".", "equals", "(", "syntax", ")", ")", "emit_Artifacts_WSTerminalRuleCall_1_0_1_a", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_Artifacts_WSTerminalRuleCall_1_1_1_a", ".", "equals", "(", "syntax", ")", ")", "emit_Artifacts_WSTerminalRuleCall_1_1_1_a", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_Artifacts_WSTerminalRuleCall_1_2_1_a", ".", "equals", "(", "syntax", ")", ")", "emit_Artifacts_WSTerminalRuleCall_1_2_1_a", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_Artifacts_WSTerminalRuleCall_1_3_1_a", ".", "equals", "(", "syntax", ")", ")", "emit_Artifacts_WSTerminalRuleCall_1_3_1_a", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_Artifacts_WSTerminalRuleCall_1_4_1_a", ".", "equals", "(", "syntax", ")", ")", "emit_Artifacts_WSTerminalRuleCall_1_4_1_a", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_Artifacts_WSTerminalRuleCall_1_5_1_a", ".", "equals", "(", "syntax", ")", ")", "emit_Artifacts_WSTerminalRuleCall_1_5_1_a", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_Artifacts_WSTerminalRuleCall_1_6_1_a", ".", "equals", "(", "syntax", ")", ")", "emit_Artifacts_WSTerminalRuleCall_1_6_1_a", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_Artifacts_WSTerminalRuleCall_1_7_1_a", ".", "equals", "(", "syntax", ")", ")", "emit_Artifacts_WSTerminalRuleCall_1_7_1_a", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_Column_CARETTerminalRuleCall_1_0_q", ".", "equals", "(", "syntax", ")", ")", "emit_Column_CARETTerminalRuleCall_1_0_q", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_Constant_CARETTerminalRuleCall_2_0_q", ".", "equals", "(", "syntax", ")", ")", "emit_Constant_CARETTerminalRuleCall_2_0_q", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_Identifier_CARETTerminalRuleCall_3_0_q", ".", "equals", "(", "syntax", ")", ")", "emit_Identifier_CARETTerminalRuleCall_3_0_q", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_IfSqlCond_WSTerminalRuleCall_0_a", ".", "equals", "(", "syntax", ")", ")", "emit_IfSqlCond_WSTerminalRuleCall_0_a", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_IfSqlCond_WSTerminalRuleCall_2_a", ".", "equals", "(", "syntax", ")", ")", "emit_IfSqlCond_WSTerminalRuleCall_2_a", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_IfSqlCond_WSTerminalRuleCall_3_1_a", ".", "equals", "(", "syntax", ")", ")", "emit_IfSqlCond_WSTerminalRuleCall_3_1_a", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_IfSqlCond_WSTerminalRuleCall_3_3_a", ".", "equals", "(", "syntax", ")", ")", "emit_IfSqlCond_WSTerminalRuleCall_3_3_a", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_MappingItem_STRINGTerminalRuleCall_1_0_q", ".", "equals", "(", "syntax", ")", ")", "emit_MappingItem_STRINGTerminalRuleCall_1_0_q", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_Mapping_WSTerminalRuleCall_0_a", ".", "equals", "(", "syntax", ")", ")", "emit_Mapping_WSTerminalRuleCall_0_a", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_Mapping_WSTerminalRuleCall_2_0_p", ".", "equals", "(", "syntax", ")", ")", "emit_Mapping_WSTerminalRuleCall_2_0_p", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_Mapping_WSTerminalRuleCall_3_a", ".", "equals", "(", "syntax", ")", ")", "emit_Mapping_WSTerminalRuleCall_3_a", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_MetaSql_WSTerminalRuleCall_4_1_a", ".", "equals", "(", "syntax", ")", ")", "emit_MetaSql_WSTerminalRuleCall_4_1_a", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_Property_WSTerminalRuleCall_0_0_1_p", ".", "equals", "(", "syntax", ")", ")", "emit_Property_WSTerminalRuleCall_0_0_1_p", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_Property_WSTerminalRuleCall_0_1_1_p", ".", "equals", "(", "syntax", ")", ")", "emit_Property_WSTerminalRuleCall_0_1_1_p", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_Property_WSTerminalRuleCall_0_2_1_p", ".", "equals", "(", "syntax", ")", ")", "emit_Property_WSTerminalRuleCall_0_2_1_p", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_Property_WSTerminalRuleCall_0_3_1_p", ".", "equals", "(", "syntax", ")", ")", "emit_Property_WSTerminalRuleCall_0_3_1_p", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_Property_WSTerminalRuleCall_0_4_1_p", ".", "equals", "(", "syntax", ")", ")", "emit_Property_WSTerminalRuleCall_0_4_1_p", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_Property_WSTerminalRuleCall_0_5_1_p", ".", "equals", "(", "syntax", ")", ")", "emit_Property_WSTerminalRuleCall_0_5_1_p", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "if", "(", "match_Property_WSTerminalRuleCall_0_6_1_p", ".", "equals", "(", "syntax", ")", ")", "emit_Property_WSTerminalRuleCall_0_6_1_p", "(", "semanticObject", ",", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "else", "acceptNodes", "(", "getLastNavigableState", "(", ")", ",", "syntaxNodes", ")", ";", "}", "}", "protected", "void", "emit_Artifacts_WSTerminalRuleCall_0_a", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_Artifacts_WSTerminalRuleCall_1_0_1_a", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_Artifacts_WSTerminalRuleCall_1_1_1_a", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_Artifacts_WSTerminalRuleCall_1_2_1_a", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_Artifacts_WSTerminalRuleCall_1_3_1_a", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_Artifacts_WSTerminalRuleCall_1_4_1_a", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_Artifacts_WSTerminalRuleCall_1_5_1_a", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_Artifacts_WSTerminalRuleCall_1_6_1_a", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_Artifacts_WSTerminalRuleCall_1_7_1_a", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_Column_CARETTerminalRuleCall_1_0_q", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_Constant_CARETTerminalRuleCall_2_0_q", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_Identifier_CARETTerminalRuleCall_3_0_q", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_IfSqlCond_WSTerminalRuleCall_0_a", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_IfSqlCond_WSTerminalRuleCall_2_a", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_IfSqlCond_WSTerminalRuleCall_3_1_a", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_IfSqlCond_WSTerminalRuleCall_3_3_a", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_MappingItem_STRINGTerminalRuleCall_1_0_q", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_Mapping_WSTerminalRuleCall_0_a", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_Mapping_WSTerminalRuleCall_2_0_p", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_Mapping_WSTerminalRuleCall_3_a", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_MetaSql_WSTerminalRuleCall_4_1_a", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_Property_WSTerminalRuleCall_0_0_1_p", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_Property_WSTerminalRuleCall_0_1_1_p", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_Property_WSTerminalRuleCall_0_2_1_p", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_Property_WSTerminalRuleCall_0_3_1_p", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_Property_WSTerminalRuleCall_0_4_1_p", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_Property_WSTerminalRuleCall_0_5_1_p", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "protected", "void", "emit_Property_WSTerminalRuleCall_0_6_1_p", "(", "EObject", "semanticObject", ",", "ISynNavigable", "transition", ",", "List", "<", "INode", ">", "nodes", ")", "{", "acceptNodes", "(", "transition", ",", "nodes", ")", ";", "}", "}", "</s>" ]
265
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "serializer", ";", "import", "com", ".", "google", ".", "inject", ".", "Inject", ";", "import", "com", ".", "google", ".", "inject", ".", "Provider", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "serializer", ".", "acceptor", ".", "ISemanticSequenceAcceptor", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "serializer", ".", "acceptor", ".", "SequenceFeeder", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "serializer", ".", "diagnostic", ".", "ISemanticSequencerDiagnosticProvider", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "serializer", ".", "diagnostic", ".", "ISerializationDiagnostic", ".", "Acceptor", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "serializer", ".", "sequencer", ".", "AbstractSemanticSequencer", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "serializer", ".", "sequencer", ".", "GenericSequencer", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "serializer", ".", "sequencer", ".", "ISemanticNodeProvider", ".", "INodesForEObjectProvider", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "serializer", ".", "sequencer", ".", "ISemanticSequencer", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "serializer", ".", "sequencer", ".", "ITransientValueService", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "serializer", ".", "sequencer", ".", "ITransientValueService", ".", "ValueTransient", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Artifacts", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Column", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ColumnUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Constant", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ConstantUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "DatabaseColumn", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "DatabaseTable", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Identifier", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IdentifierUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfMetaSql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSqlBool", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSqlCond", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSqlFragment", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Mapping", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingColumn", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingItem", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingRule", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MetaSql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MetaStatement", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "OptionalFeature", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "OrdSql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "OrdSql2", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "PojoDefinition", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Property", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Sql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "SqlFragment", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "TableDefinition", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "TableUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "services", ".", "ProcessorDslGrammarAccess", ";", "@", "SuppressWarnings", "(", "\"restriction\"", ")", "public", "class", "AbstractProcessorDslSemanticSequencer", "extends", "AbstractSemanticSequencer", "{", "@", "Inject", "protected", "ProcessorDslGrammarAccess", "grammarAccess", ";", "@", "Inject", "protected", "ISemanticSequencerDiagnosticProvider", "diagnosticProvider", ";", "@", "Inject", "protected", "ITransientValueService", "transientValues", ";", "@", "Inject", "@", "GenericSequencer", "protected", "Provider", "<", "ISemanticSequencer", ">", "genericSequencerProvider", ";", "protected", "ISemanticSequencer", "genericSequencer", ";", "@", "Override", "public", "void", "init", "(", "ISemanticSequencer", "sequencer", ",", "ISemanticSequenceAcceptor", "sequenceAcceptor", ",", "Acceptor", "errorAcceptor", ")", "{", "super", ".", "init", "(", "sequencer", ",", "sequenceAcceptor", ",", "errorAcceptor", ")", ";", "this", ".", "genericSequencer", "=", "genericSequencerProvider", ".", "get", "(", ")", ";", "this", ".", "genericSequencer", ".", "init", "(", "sequencer", ",", "sequenceAcceptor", ",", "errorAcceptor", ")", ";", "}", "public", "void", "createSequence", "(", "EObject", "context", ",", "EObject", "semanticObject", ")", "{", "if", "(", "semanticObject", ".", "eClass", "(", ")", ".", "getEPackage", "(", ")", "==", "ProcessorDslPackage", ".", "eINSTANCE", ")", "switch", "(", "semanticObject", ".", "eClass", "(", ")", ".", "getClassifierID", "(", ")", ")", "{", "case", "ProcessorDslPackage", ".", "ARTIFACTS", ":", "if", "(", "context", "==", "grammarAccess", ".", "getArtifactsRule", "(", ")", ")", "{", "sequence_Artifacts", "(", "context", ",", "(", "Artifacts", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "COLUMN", ":", "if", "(", "context", "==", "grammarAccess", ".", "getColumnRule", "(", ")", ")", "{", "sequence_Column", "(", "context", ",", "(", "Column", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "COLUMN_USAGE", ":", "if", "(", "context", "==", "grammarAccess", ".", "getColumnUsageRule", "(", ")", "||", "context", "==", "grammarAccess", ".", "getPojoUsageRule", "(", ")", ")", "{", "sequence_ColumnUsage", "(", "context", ",", "(", "ColumnUsage", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "CONSTANT", ":", "if", "(", "context", "==", "grammarAccess", ".", "getConstantRule", "(", ")", ")", "{", "sequence_Constant", "(", "context", ",", "(", "Constant", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "CONSTANT_USAGE", ":", "if", "(", "context", "==", "grammarAccess", ".", "getConstantUsageRule", "(", ")", "||", "context", "==", "grammarAccess", ".", "getPojoUsageRule", "(", ")", ")", "{", "sequence_ConstantUsage", "(", "context", ",", "(", "ConstantUsage", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "DATABASE_COLUMN", ":", "if", "(", "context", "==", "grammarAccess", ".", "getDatabaseColumnRule", "(", ")", ")", "{", "sequence_DatabaseColumn", "(", "context", ",", "(", "DatabaseColumn", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "DATABASE_TABLE", ":", "if", "(", "context", "==", "grammarAccess", ".", "getDatabaseTableRule", "(", ")", ")", "{", "sequence_DatabaseTable", "(", "context", ",", "(", "DatabaseTable", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "IDENTIFIER", ":", "if", "(", "context", "==", "grammarAccess", ".", "getIdentifierRule", "(", ")", ")", "{", "sequence_Identifier", "(", "context", ",", "(", "Identifier", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "IDENTIFIER_USAGE", ":", "if", "(", "context", "==", "grammarAccess", ".", "getIdentifierUsageRule", "(", ")", "||", "context", "==", "grammarAccess", ".", "getPojoUsageRule", "(", ")", ")", "{", "sequence_IdentifierUsage", "(", "context", ",", "(", "IdentifierUsage", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "IF_META_SQL", ":", "if", "(", "context", "==", "grammarAccess", ".", "getIfMetaSqlRule", "(", ")", ")", "{", "sequence_IfMetaSql", "(", "context", ",", "(", "IfMetaSql", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "IF_SQL", ":", "if", "(", "context", "==", "grammarAccess", ".", "getIfSqlRule", "(", ")", ")", "{", "sequence_IfSql", "(", "context", ",", "(", "IfSql", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_BOOL", ":", "if", "(", "context", "==", "grammarAccess", ".", "getIfSqlBoolRule", "(", ")", ")", "{", "sequence_IfSqlBool", "(", "context", ",", "(", "IfSqlBool", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_COND", ":", "if", "(", "context", "==", "grammarAccess", ".", "getIfSqlCondRule", "(", ")", ")", "{", "sequence_IfSqlCond", "(", "context", ",", "(", "IfSqlCond", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "IF_SQL_FRAGMENT", ":", "if", "(", "context", "==", "grammarAccess", ".", "getIfSqlFragmentRule", "(", ")", ")", "{", "sequence_IfSqlFragment", "(", "context", ",", "(", "IfSqlFragment", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "MAPPING", ":", "if", "(", "context", "==", "grammarAccess", ".", "getMappingRule", "(", ")", ")", "{", "sequence_Mapping", "(", "context", ",", "(", "Mapping", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "MAPPING_COLUMN", ":", "if", "(", "context", "==", "grammarAccess", ".", "getMappingColumnRule", "(", ")", ")", "{", "sequence_MappingColumn", "(", "context", ",", "(", "MappingColumn", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "MAPPING_ITEM", ":", "if", "(", "context", "==", "grammarAccess", ".", "getMappingItemRule", "(", ")", ")", "{", "sequence_MappingItem", "(", "context", ",", "(", "MappingItem", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "MAPPING_RULE", ":", "if", "(", "context", "==", "grammarAccess", ".", "getMappingRuleRule", "(", ")", ")", "{", "sequence_MappingRule", "(", "context", ",", "(", "MappingRule", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "MAPPING_USAGE", ":", "if", "(", "context", "==", "grammarAccess", ".", "getMappingUsageRule", "(", ")", "||", "context", "==", "grammarAccess", ".", "getPojoUsageRule", "(", ")", ")", "{", "sequence_MappingUsage", "(", "context", ",", "(", "MappingUsage", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "META_SQL", ":", "if", "(", "context", "==", "grammarAccess", ".", "getMetaSqlRule", "(", ")", ")", "{", "sequence_MetaSql", "(", "context", ",", "(", "MetaSql", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "META_STATEMENT", ":", "if", "(", "context", "==", "grammarAccess", ".", "getMetaStatementRule", "(", ")", ")", "{", "sequence_MetaStatement", "(", "context", ",", "(", "MetaStatement", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "OPTIONAL_FEATURE", ":", "if", "(", "context", "==", "grammarAccess", ".", "getOptionalFeatureRule", "(", ")", ")", "{", "sequence_OptionalFeature", "(", "context", ",", "(", "OptionalFeature", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "ORD_SQL", ":", "if", "(", "context", "==", "grammarAccess", ".", "getOrdSqlRule", "(", ")", ")", "{", "sequence_OrdSql", "(", "context", ",", "(", "OrdSql", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "ORD_SQL2", ":", "if", "(", "context", "==", "grammarAccess", ".", "getOrdSql2Rule", "(", ")", ")", "{", "sequence_OrdSql2", "(", "context", ",", "(", "OrdSql2", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "POJO_DEFINITION", ":", "if", "(", "context", "==", "grammarAccess", ".", "getPojoDefinitionRule", "(", ")", ")", "{", "sequence_PojoDefinition", "(", "context", ",", "(", "PojoDefinition", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "PROPERTY", ":", "if", "(", "context", "==", "grammarAccess", ".", "getPropertyRule", "(", ")", ")", "{", "sequence_Property", "(", "context", ",", "(", "Property", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "SQL", ":", "if", "(", "context", "==", "grammarAccess", ".", "getSqlRule", "(", ")", ")", "{", "sequence_Sql", "(", "context", ",", "(", "Sql", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "SQL_FRAGMENT", ":", "if", "(", "context", "==", "grammarAccess", ".", "getSqlFragmentRule", "(", ")", ")", "{", "sequence_SqlFragment", "(", "context", ",", "(", "SqlFragment", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "TABLE_DEFINITION", ":", "if", "(", "context", "==", "grammarAccess", ".", "getTableDefinitionRule", "(", ")", ")", "{", "sequence_TableDefinition", "(", "context", ",", "(", "TableDefinition", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "case", "ProcessorDslPackage", ".", "TABLE_USAGE", ":", "if", "(", "context", "==", "grammarAccess", ".", "getTableUsageRule", "(", ")", ")", "{", "sequence_TableUsage", "(", "context", ",", "(", "TableUsage", ")", "semanticObject", ")", ";", "return", ";", "}", "else", "break", ";", "}", "if", "(", "errorAcceptor", "!=", "null", ")", "errorAcceptor", ".", "accept", "(", "diagnosticProvider", ".", "createInvalidContextOrTypeDiagnostic", "(", "semanticObject", ",", "context", ")", ")", ";", "}", "protected", "void", "sequence_Artifacts", "(", "EObject", "context", ",", "Artifacts", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_ColumnUsage", "(", "EObject", "context", ",", "ColumnUsage", "semanticObject", ")", "{", "if", "(", "errorAcceptor", "!=", "null", ")", "{", "if", "(", "transientValues", ".", "isValueTransient", "(", "semanticObject", ",", "ProcessorDslPackage", ".", "Literals", ".", "POJO_USAGE__POJO", ")", "==", "ValueTransient", ".", "YES", ")", "errorAcceptor", ".", "accept", "(", "diagnosticProvider", ".", "createFeatureValueMissing", "(", "semanticObject", ",", "ProcessorDslPackage", ".", "Literals", ".", "POJO_USAGE__POJO", ")", ")", ";", "if", "(", "transientValues", ".", "isValueTransient", "(", "semanticObject", ",", "ProcessorDslPackage", ".", "Literals", ".", "COLUMN_USAGE__STATEMENT", ")", "==", "ValueTransient", ".", "YES", ")", "errorAcceptor", ".", "accept", "(", "diagnosticProvider", ".", "createFeatureValueMissing", "(", "semanticObject", ",", "ProcessorDslPackage", ".", "Literals", ".", "COLUMN_USAGE__STATEMENT", ")", ")", ";", "}", "INodesForEObjectProvider", "nodes", "=", "createNodeProvider", "(", "semanticObject", ")", ";", "SequenceFeeder", "feeder", "=", "createSequencerFeeder", "(", "semanticObject", ",", "nodes", ")", ";", "feeder", ".", "accept", "(", "grammarAccess", ".", "getColumnUsageAccess", "(", ")", ".", "getStatementMetaStatementIDENTTerminalRuleCall_1_0_1", "(", ")", ",", "semanticObject", ".", "getStatement", "(", ")", ")", ";", "feeder", ".", "accept", "(", "grammarAccess", ".", "getColumnUsageAccess", "(", ")", ".", "getPojoPojoDefinitionIDENTTerminalRuleCall_2_0_1", "(", ")", ",", "semanticObject", ".", "getPojo", "(", ")", ")", ";", "feeder", ".", "finish", "(", ")", ";", "}", "protected", "void", "sequence_Column", "(", "EObject", "context", ",", "Column", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_ConstantUsage", "(", "EObject", "context", ",", "ConstantUsage", "semanticObject", ")", "{", "if", "(", "errorAcceptor", "!=", "null", ")", "{", "if", "(", "transientValues", ".", "isValueTransient", "(", "semanticObject", ",", "ProcessorDslPackage", ".", "Literals", ".", "POJO_USAGE__POJO", ")", "==", "ValueTransient", ".", "YES", ")", "errorAcceptor", ".", "accept", "(", "diagnosticProvider", ".", "createFeatureValueMissing", "(", "semanticObject", ",", "ProcessorDslPackage", ".", "Literals", ".", "POJO_USAGE__POJO", ")", ")", ";", "if", "(", "transientValues", ".", "isValueTransient", "(", "semanticObject", ",", "ProcessorDslPackage", ".", "Literals", ".", "CONSTANT_USAGE__STATEMENT", ")", "==", "ValueTransient", ".", "YES", ")", "errorAcceptor", ".", "accept", "(", "diagnosticProvider", ".", "createFeatureValueMissing", "(", "semanticObject", ",", "ProcessorDslPackage", ".", "Literals", ".", "CONSTANT_USAGE__STATEMENT", ")", ")", ";", "}", "INodesForEObjectProvider", "nodes", "=", "createNodeProvider", "(", "semanticObject", ")", ";", "SequenceFeeder", "feeder", "=", "createSequencerFeeder", "(", "semanticObject", ",", "nodes", ")", ";", "feeder", ".", "accept", "(", "grammarAccess", ".", "getConstantUsageAccess", "(", ")", ".", "getStatementMetaStatementIDENTTerminalRuleCall_1_0_1", "(", ")", ",", "semanticObject", ".", "getStatement", "(", ")", ")", ";", "feeder", ".", "accept", "(", "grammarAccess", ".", "getConstantUsageAccess", "(", ")", ".", "getPojoPojoDefinitionIDENTTerminalRuleCall_2_0_1", "(", ")", ",", "semanticObject", ".", "getPojo", "(", ")", ")", ";", "feeder", ".", "finish", "(", ")", ";", "}", "protected", "void", "sequence_Constant", "(", "EObject", "context", ",", "Constant", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_DatabaseColumn", "(", "EObject", "context", ",", "DatabaseColumn", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_DatabaseTable", "(", "EObject", "context", ",", "DatabaseTable", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_IdentifierUsage", "(", "EObject", "context", ",", "IdentifierUsage", "semanticObject", ")", "{", "if", "(", "errorAcceptor", "!=", "null", ")", "{", "if", "(", "transientValues", ".", "isValueTransient", "(", "semanticObject", ",", "ProcessorDslPackage", ".", "Literals", ".", "POJO_USAGE__POJO", ")", "==", "ValueTransient", ".", "YES", ")", "errorAcceptor", ".", "accept", "(", "diagnosticProvider", ".", "createFeatureValueMissing", "(", "semanticObject", ",", "ProcessorDslPackage", ".", "Literals", ".", "POJO_USAGE__POJO", ")", ")", ";", "if", "(", "transientValues", ".", "isValueTransient", "(", "semanticObject", ",", "ProcessorDslPackage", ".", "Literals", ".", "IDENTIFIER_USAGE__STATEMENT", ")", "==", "ValueTransient", ".", "YES", ")", "errorAcceptor", ".", "accept", "(", "diagnosticProvider", ".", "createFeatureValueMissing", "(", "semanticObject", ",", "ProcessorDslPackage", ".", "Literals", ".", "IDENTIFIER_USAGE__STATEMENT", ")", ")", ";", "}", "INodesForEObjectProvider", "nodes", "=", "createNodeProvider", "(", "semanticObject", ")", ";", "SequenceFeeder", "feeder", "=", "createSequencerFeeder", "(", "semanticObject", ",", "nodes", ")", ";", "feeder", ".", "accept", "(", "grammarAccess", ".", "getIdentifierUsageAccess", "(", ")", ".", "getStatementMetaStatementIDENTTerminalRuleCall_1_0_1", "(", ")", ",", "semanticObject", ".", "getStatement", "(", ")", ")", ";", "feeder", ".", "accept", "(", "grammarAccess", ".", "getIdentifierUsageAccess", "(", ")", ".", "getPojoPojoDefinitionIDENTTerminalRuleCall_2_0_1", "(", ")", ",", "semanticObject", ".", "getPojo", "(", ")", ")", ";", "feeder", ".", "finish", "(", ")", ";", "}", "protected", "void", "sequence_Identifier", "(", "EObject", "context", ",", "Identifier", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_IfMetaSql", "(", "EObject", "context", ",", "IfMetaSql", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_IfSqlBool", "(", "EObject", "context", ",", "IfSqlBool", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_IfSqlCond", "(", "EObject", "context", ",", "IfSqlCond", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_IfSqlFragment", "(", "EObject", "context", ",", "IfSqlFragment", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_IfSql", "(", "EObject", "context", ",", "IfSql", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_MappingColumn", "(", "EObject", "context", ",", "MappingColumn", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_MappingItem", "(", "EObject", "context", ",", "MappingItem", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_MappingRule", "(", "EObject", "context", ",", "MappingRule", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_MappingUsage", "(", "EObject", "context", ",", "MappingUsage", "semanticObject", ")", "{", "if", "(", "errorAcceptor", "!=", "null", ")", "{", "if", "(", "transientValues", ".", "isValueTransient", "(", "semanticObject", ",", "ProcessorDslPackage", ".", "Literals", ".", "POJO_USAGE__POJO", ")", "==", "ValueTransient", ".", "YES", ")", "errorAcceptor", ".", "accept", "(", "diagnosticProvider", ".", "createFeatureValueMissing", "(", "semanticObject", ",", "ProcessorDslPackage", ".", "Literals", ".", "POJO_USAGE__POJO", ")", ")", ";", "if", "(", "transientValues", ".", "isValueTransient", "(", "semanticObject", ",", "ProcessorDslPackage", ".", "Literals", ".", "MAPPING_USAGE__STATEMENT", ")", "==", "ValueTransient", ".", "YES", ")", "errorAcceptor", ".", "accept", "(", "diagnosticProvider", ".", "createFeatureValueMissing", "(", "semanticObject", ",", "ProcessorDslPackage", ".", "Literals", ".", "MAPPING_USAGE__STATEMENT", ")", ")", ";", "}", "INodesForEObjectProvider", "nodes", "=", "createNodeProvider", "(", "semanticObject", ")", ";", "SequenceFeeder", "feeder", "=", "createSequencerFeeder", "(", "semanticObject", ",", "nodes", ")", ";", "feeder", ".", "accept", "(", "grammarAccess", ".", "getMappingUsageAccess", "(", ")", ".", "getStatementMappingRuleIDENTTerminalRuleCall_1_0_1", "(", ")", ",", "semanticObject", ".", "getStatement", "(", ")", ")", ";", "feeder", ".", "accept", "(", "grammarAccess", ".", "getMappingUsageAccess", "(", ")", ".", "getPojoPojoDefinitionIDENTTerminalRuleCall_2_0_1", "(", ")", ",", "semanticObject", ".", "getPojo", "(", ")", ")", ";", "feeder", ".", "finish", "(", ")", ";", "}", "protected", "void", "sequence_Mapping", "(", "EObject", "context", ",", "Mapping", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_MetaSql", "(", "EObject", "context", ",", "MetaSql", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_MetaStatement", "(", "EObject", "context", ",", "MetaStatement", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_OptionalFeature", "(", "EObject", "context", ",", "OptionalFeature", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_OrdSql2", "(", "EObject", "context", ",", "OrdSql2", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_OrdSql", "(", "EObject", "context", ",", "OrdSql", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_PojoDefinition", "(", "EObject", "context", ",", "PojoDefinition", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_Property", "(", "EObject", "context", ",", "Property", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_SqlFragment", "(", "EObject", "context", ",", "SqlFragment", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_Sql", "(", "EObject", "context", ",", "Sql", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "protected", "void", "sequence_TableDefinition", "(", "EObject", "context", ",", "TableDefinition", "semanticObject", ")", "{", "if", "(", "errorAcceptor", "!=", "null", ")", "{", "if", "(", "transientValues", ".", "isValueTransient", "(", "semanticObject", ",", "ProcessorDslPackage", ".", "Literals", ".", "TABLE_DEFINITION__NAME", ")", "==", "ValueTransient", ".", "YES", ")", "errorAcceptor", ".", "accept", "(", "diagnosticProvider", ".", "createFeatureValueMissing", "(", "semanticObject", ",", "ProcessorDslPackage", ".", "Literals", ".", "TABLE_DEFINITION__NAME", ")", ")", ";", "if", "(", "transientValues", ".", "isValueTransient", "(", "semanticObject", ",", "ProcessorDslPackage", ".", "Literals", ".", "TABLE_DEFINITION__TABLE", ")", "==", "ValueTransient", ".", "YES", ")", "errorAcceptor", ".", "accept", "(", "diagnosticProvider", ".", "createFeatureValueMissing", "(", "semanticObject", ",", "ProcessorDslPackage", ".", "Literals", ".", "TABLE_DEFINITION__TABLE", ")", ")", ";", "}", "INodesForEObjectProvider", "nodes", "=", "createNodeProvider", "(", "semanticObject", ")", ";", "SequenceFeeder", "feeder", "=", "createSequencerFeeder", "(", "semanticObject", ",", "nodes", ")", ";", "feeder", ".", "accept", "(", "grammarAccess", ".", "getTableDefinitionAccess", "(", ")", ".", "getNameIDENTTerminalRuleCall_1_0", "(", ")", ",", "semanticObject", ".", "getName", "(", ")", ")", ";", "feeder", ".", "accept", "(", "grammarAccess", ".", "getTableDefinitionAccess", "(", ")", ".", "getTableIDENTTerminalRuleCall_2_0", "(", ")", ",", "semanticObject", ".", "getTable", "(", ")", ")", ";", "feeder", ".", "finish", "(", ")", ";", "}", "protected", "void", "sequence_TableUsage", "(", "EObject", "context", ",", "TableUsage", "semanticObject", ")", "{", "genericSequencer", ".", "createSequence", "(", "context", ",", "semanticObject", ")", ";", "}", "}", "</s>" ]
266
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "property", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Adapter", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "property", ".", "ModelPropertyBean", ".", "ModelValues", ";", "public", "interface", "ModelProperty", "extends", "Adapter", "{", "public", "boolean", "isDoResolvePojo", "(", "EObject", "model", ")", ";", "public", "boolean", "isDoResolveDb", "(", "EObject", "model", ")", ";", "public", "ModelValues", "getModelValues", "(", "EObject", "model", ")", ";", "}", "</s>" ]
267
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "property", ";", "import", "java", ".", "util", ".", "HashMap", ";", "import", "java", ".", "util", ".", "Map", ";", "import", "org", ".", "apache", ".", "log4j", ".", "Logger", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notification", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "impl", ".", "AdapterImpl", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "resource", ".", "Resource", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "EcoreUtil2", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "parser", ".", "IParseResult", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "resource", ".", "XtextResource", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Artifacts", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Property", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "util", ".", "Utils", ";", "import", "com", ".", "google", ".", "inject", ".", "Singleton", ";", "@", "Singleton", "public", "class", "ModelPropertyBean", "extends", "AdapterImpl", "implements", "ModelProperty", "{", "protected", "Logger", "LOGGER", "=", "Logger", ".", "getLogger", "(", "ModelPropertyBean", ".", "class", ")", ";", "public", "static", "final", "String", "RESOLVE_REFERENCES", "=", "\"\"", ";", "public", "static", "final", "String", "DATABASE_ONLINE", "=", "\"\"", ";", "public", "static", "final", "String", "DATABASE_URL", "=", "\"database", "url\"", ";", "public", "static", "final", "String", "DATABASE_USERNAME", "=", "\"\"", ";", "public", "static", "final", "String", "DATABASE_PASSWORD", "=", "\"\"", ";", "public", "static", "final", "String", "DATABASE_SCHEMA", "=", "\"\"", ";", "public", "static", "final", "String", "DATABASE_DRIVER", "=", "\"\"", ";", "public", "static", "class", "ModelValues", "{", "public", "boolean", "doResolvePojo", ";", "public", "boolean", "doResolveDb", ";", "public", "String", "dbDriver", ";", "public", "String", "dbUrl", ";", "public", "String", "dbUsername", ";", "public", "String", "dbPassword", ";", "public", "String", "dbSchema", ";", "public", "String", "dir", ";", "@", "Override", "public", "String", "toString", "(", ")", "{", "return", "\"\"", "+", "doResolvePojo", "+", "\"\"", "+", "doResolveDb", "+", "\",", "dbDriver=\"", "+", "dbDriver", "+", "\",", "dbUrl=\"", "+", "dbUrl", "+", "\"\"", "+", "dbUsername", "+", "\"\"", "+", "dbPassword", "+", "\",", "dbSchema=\"", "+", "dbSchema", "+", "\",", "dir=\"", "+", "dir", "+", "\"]\"", ";", "}", "}", "private", "Map", "<", "String", ",", "ModelValues", ">", "dirs2models", "=", "new", "HashMap", "<", "String", ",", "ModelValues", ">", "(", ")", ";", "public", "void", "notifyChanged", "(", "Notification", "msg", ")", "{", "if", "(", "msg", ".", "getNotifier", "(", ")", "==", "null", "||", "msg", ".", "getFeatureID", "(", "Resource", ".", "class", ")", "==", "Notification", ".", "NO_FEATURE_ID", ")", "return", ";", "if", "(", "msg", ".", "getNotifier", "(", ")", "instanceof", "XtextResource", ")", "{", "int", "featureID", "=", "msg", ".", "getFeatureID", "(", "Resource", ".", "class", ")", ";", "if", "(", "featureID", "==", "Resource", ".", "RESOURCE__IS_LOADED", ")", "{", "XtextResource", "resource", "=", "(", "XtextResource", ")", "msg", ".", "getNotifier", "(", ")", ";", "if", "(", "!", "msg", ".", "getNewBooleanValue", "(", ")", ")", "{", "LOGGER", ".", "debug", "(", "\"\"", "+", "resource", ")", ";", "return", ";", "}", "IParseResult", "parseResult", "=", "resource", ".", "getParseResult", "(", ")", ";", "EObject", "rootASTElement", "=", "(", "parseResult", "!=", "null", ")", "?", "parseResult", ".", "getRootASTElement", "(", ")", ":", "null", ";", "LOGGER", ".", "debug", "(", "\"\"", "+", "resource", "+", "\"", "for", "\"", "+", "rootASTElement", ")", ";", "if", "(", "parseResult", "==", "null", "||", "rootASTElement", "==", "null", "||", "!", "(", "rootASTElement", "instanceof", "Artifacts", ")", "||", "resource", ".", "getURI", "(", ")", "==", "null", ")", "{", "LOGGER", ".", "error", "(", "\"\"", "+", "parseResult", "+", "\"\"", "+", "rootASTElement", "+", "\"", "and", "msg", "\"", "+", "msg", ")", ";", "return", ";", "}", "String", "dir", "=", "Utils", ".", "resourceDir", "(", "resource", ")", ";", "if", "(", "dir", "==", "null", ")", "{", "LOGGER", ".", "error", "(", "\"\"", "+", "resource", ".", "getURI", "(", ")", ")", ";", "return", ";", "}", "ModelValues", "modelValues", "=", "null", ";", "if", "(", "dirs2models", ".", "containsKey", "(", "dir", ")", ")", "{", "modelValues", "=", "dirs2models", ".", "get", "(", "dir", ")", ";", "}", "else", "{", "modelValues", "=", "new", "ModelValues", "(", ")", ";", "dirs2models", ".", "put", "(", "dir", ",", "modelValues", ")", ";", "modelValues", ".", "dir", "=", "dir", ";", "}", "Artifacts", "artifacts", "=", "(", "Artifacts", ")", "rootASTElement", ";", "if", "(", "artifacts", ".", "getProperties", "(", ")", ".", "isEmpty", "(", ")", ")", "return", ";", "for", "(", "Property", "property", ":", "artifacts", ".", "getProperties", "(", ")", ")", "{", "setValue", "(", "modelValues", ",", "property", ")", ";", "}", "LOGGER", ".", "debug", "(", "\"MODEL", "\"", "+", "modelValues", ".", "toString", "(", ")", ")", ";", "}", "}", "}", "public", "void", "setValue", "(", "ModelValues", "modelValues", ",", "Property", "property", ")", "{", "if", "(", "RESOLVE_REFERENCES", ".", "equals", "(", "property", ".", "getName", "(", ")", ")", ")", "{", "modelValues", ".", "doResolvePojo", "=", "\"ON\"", ".", "equals", "(", "property", ".", "getDoResolvePojo", "(", ")", ")", ";", "}", "else", "if", "(", "DATABASE_ONLINE", ".", "equals", "(", "property", ".", "getName", "(", ")", ")", ")", "{", "modelValues", ".", "doResolveDb", "=", "\"ON\"", ".", "equals", "(", "property", ".", "getDoResolveDb", "(", ")", ")", ";", "}", "else", "if", "(", "DATABASE_URL", ".", "equals", "(", "property", ".", "getName", "(", ")", ")", ")", "{", "modelValues", ".", "dbUrl", "=", "property", ".", "getDbUrl", "(", ")", ";", "}", "else", "if", "(", "DATABASE_USERNAME", ".", "equals", "(", "property", ".", "getName", "(", ")", ")", ")", "{", "modelValues", ".", "dbUsername", "=", "property", ".", "getDbUsername", "(", ")", ";", "}", "else", "if", "(", "DATABASE_PASSWORD", ".", "equals", "(", "property", ".", "getName", "(", ")", ")", ")", "{", "modelValues", ".", "dbPassword", "=", "property", ".", "getDbPassword", "(", ")", ";", "}", "else", "if", "(", "DATABASE_SCHEMA", ".", "equals", "(", "property", ".", "getName", "(", ")", ")", ")", "{", "modelValues", ".", "dbSchema", "=", "property", ".", "getDbSchema", "(", ")", ";", "}", "else", "if", "(", "DATABASE_DRIVER", ".", "equals", "(", "property", ".", "getName", "(", ")", ")", ")", "{", "modelValues", ".", "dbDriver", "=", "property", ".", "getDbDriver", "(", ")", ";", "}", "}", "@", "Override", "public", "boolean", "isDoResolvePojo", "(", "EObject", "model", ")", "{", "ModelValues", "modelValues", "=", "getModelValues", "(", "model", ")", ";", "return", "(", "modelValues", "!=", "null", ")", "?", "modelValues", ".", "doResolvePojo", ":", "false", ";", "}", "@", "Override", "public", "boolean", "isDoResolveDb", "(", "EObject", "model", ")", "{", "ModelValues", "modelValues", "=", "getModelValues", "(", "model", ")", ";", "return", "(", "modelValues", "!=", "null", ")", "?", "modelValues", ".", "doResolveDb", ":", "false", ";", "}", "@", "Override", "public", "ModelValues", "getModelValues", "(", "EObject", "model", ")", "{", "Artifacts", "artifacts", "=", "EcoreUtil2", ".", "getContainerOfType", "(", "model", ",", "Artifacts", ".", "class", ")", ";", "if", "(", "artifacts", "==", "null", ")", "{", "LOGGER", ".", "error", "(", "\"\"", "+", "model", ")", ";", "return", "null", ";", "}", "if", "(", "artifacts", ".", "eResource", "(", ")", "==", "null", ")", "{", "LOGGER", ".", "error", "(", "\"\"", "+", "artifacts", ")", ";", "return", "null", ";", "}", "String", "dir", "=", "Utils", ".", "resourceDir", "(", "artifacts", ".", "eResource", "(", ")", ")", ";", "if", "(", "dir", "==", "null", ")", "{", "LOGGER", ".", "error", "(", "\"\"", "+", "artifacts", ".", "eResource", "(", ")", ".", "getURI", "(", ")", ")", ";", "return", "null", ";", "}", "return", "dirs2models", ".", "get", "(", "dir", ")", ";", "}", "@", "Override", "public", "String", "toString", "(", ")", "{", "return", "\"\"", "+", "dirs2models", "+", "\"]\"", ";", "}", "}", "</s>" ]
268
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ";", "public", "class", "ProcessorDslStandaloneSetup", "extends", "ProcessorDslStandaloneSetupGenerated", "{", "public", "static", "void", "doSetup", "(", ")", "{", "new", "ProcessorDslStandaloneSetup", "(", ")", ".", "createInjectorAndDoEMFRegistration", "(", ")", ";", "}", "}", "</s>" ]
269
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "validation", ";", "import", "java", ".", "beans", ".", "PropertyDescriptor", ";", "import", "java", ".", "lang", ".", "reflect", ".", "Modifier", ";", "import", "java", ".", "lang", ".", "reflect", ".", "ParameterizedType", ";", "import", "java", ".", "util", ".", "Arrays", ";", "import", "java", ".", "util", ".", "Collection", ";", "import", "java", ".", "util", ".", "Collections", ";", "import", "java", ".", "util", ".", "Iterator", ";", "import", "java", ".", "util", ".", "List", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "EcoreUtil", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "EcoreUtil2", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "naming", ".", "IQualifiedNameConverter", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "resource", ".", "IEObjectDescription", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "scoping", ".", "IScope", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "scoping", ".", "IScopeProvider", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "validation", ".", "Check", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Artifacts", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Column", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ColumnUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Constant", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ConstantUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "DatabaseColumn", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "DatabaseTable", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Identifier", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IdentifierUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingColumn", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingItem", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingRule", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MetaSql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MetaStatement", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "OptionalFeature", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "PojoDefinition", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "PojoUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Property", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "TableDefinition", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "TableUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "resolver", ".", "DbResolver", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "resolver", ".", "PojoResolverFactory", ";", "import", "com", ".", "google", ".", "inject", ".", "Inject", ";", "public", "class", "ProcessorDslJavaValidator", "extends", "AbstractProcessorDslJavaValidator", "{", "@", "Inject", "PojoResolverFactory", "pojoResolverFactory", ";", "@", "Inject", "DbResolver", "dbResolver", ";", "@", "Inject", "IScopeProvider", "scopeProvider", ";", "@", "Inject", "IQualifiedNameConverter", "qualifiedNameConverter", ";", "public", "enum", "ValidationResult", "{", "OK", ",", "WARNING", ",", "ERROR", ";", "}", "private", "static", "final", "List", "<", "String", ">", "F_TYPES", "=", "Collections", ".", "unmodifiableList", "(", "Arrays", ".", "asList", "(", "new", "String", "[", "]", "{", "\"set\"", ",", "\"update\"", ",", "\"values\"", ",", "\"where\"", ",", "\"set=opt\"", ",", "\"where=opt\"", "}", ")", ")", ";", "@", "Check", "public", "void", "checkMetaSqlFtype", "(", "MetaSql", "metaSql", ")", "{", "if", "(", "metaSql", ".", "getFtype", "(", ")", "==", "null", ")", "return", ";", "if", "(", "!", "findInListIgnoreCase", "(", "F_TYPES", ",", "metaSql", ".", "getFtype", "(", ")", ")", ")", "{", "error", "(", "\"\"", "+", "metaSql", ".", "getFtype", "(", ")", ",", "ProcessorDslPackage", ".", "Literals", ".", "META_SQL__FTYPE", ")", ";", "}", "}", "private", "boolean", "findInListIgnoreCase", "(", "List", "<", "String", ">", "list", ",", "String", "value", ")", "{", "if", "(", "list", "==", "null", ")", "return", "false", ";", "for", "(", "String", "item", ":", "list", ")", "{", "if", "(", "item", ".", "equalsIgnoreCase", "(", "value", ")", ")", "return", "true", ";", "}", "return", "false", ";", "}", "@", "Check", "public", "void", "checkUniqueMetaStatement", "(", "MetaStatement", "metaStatement", ")", "{", "Artifacts", "artifacts", ";", "EObject", "object", "=", "EcoreUtil", ".", "getRootContainer", "(", "metaStatement", ")", ";", "if", "(", "!", "(", "object", "instanceof", "Artifacts", ")", ")", "return", ";", "artifacts", "=", "(", "Artifacts", ")", "object", ";", "for", "(", "MetaStatement", "metaStmt", ":", "artifacts", ".", "getStatements", "(", ")", ")", "{", "if", "(", "metaStmt", "==", "null", "||", "metaStmt", "==", "metaStatement", ")", "continue", ";", "if", "(", "equalsStatement", "(", "metaStatement", ",", "metaStmt", ")", ")", "{", "error", "(", "\"\"", "+", "metaStatement", ".", "getName", "(", ")", "+", "\"[\"", "+", "metaStatement", ".", "getType", "(", ")", "+", "\"]\"", ",", "ProcessorDslPackage", ".", "Literals", ".", "META_STATEMENT__NAME", ")", ";", "return", ";", "}", "}", "}", "@", "Check", "public", "void", "checkUniqueMappingRule", "(", "MappingRule", "mappingRule", ")", "{", "Artifacts", "artifacts", ";", "EObject", "object", "=", "EcoreUtil", ".", "getRootContainer", "(", "mappingRule", ")", ";", "if", "(", "!", "(", "object", "instanceof", "Artifacts", ")", ")", "return", ";", "artifacts", "=", "(", "Artifacts", ")", "object", ";", "for", "(", "MappingRule", "rule", ":", "artifacts", ".", "getMappings", "(", ")", ")", "{", "if", "(", "rule", "==", "null", "||", "rule", "==", "mappingRule", ")", "continue", ";", "if", "(", "equalsRule", "(", "mappingRule", ",", "rule", ")", ")", "{", "error", "(", "\"\"", "+", "mappingRule", ".", "getName", "(", ")", "+", "\"[\"", "+", "mappingRule", ".", "getType", "(", ")", "+", "\"]\"", ",", "ProcessorDslPackage", ".", "Literals", ".", "MAPPING_RULE__NAME", ")", ";", "return", ";", "}", "}", "}", "@", "Check", "public", "void", "checkUniqueOptionalFeature", "(", "OptionalFeature", "optionalFeature", ")", "{", "Artifacts", "artifacts", ";", "EObject", "object", "=", "EcoreUtil", ".", "getRootContainer", "(", "optionalFeature", ")", ";", "if", "(", "!", "(", "object", "instanceof", "Artifacts", ")", ")", "return", ";", "artifacts", "=", "(", "Artifacts", ")", "object", ";", "for", "(", "OptionalFeature", "feature", ":", "artifacts", ".", "getFeatures", "(", ")", ")", "{", "if", "(", "feature", "==", "null", "||", "feature", "==", "optionalFeature", ")", "continue", ";", "if", "(", "equalsFeature", "(", "optionalFeature", ",", "feature", ")", ")", "{", "error", "(", "\"\"", "+", "optionalFeature", ".", "getName", "(", ")", "+", "\"[\"", "+", "optionalFeature", ".", "getType", "(", ")", "+", "\"]\"", ",", "ProcessorDslPackage", ".", "Literals", ".", "OPTIONAL_FEATURE__NAME", ")", ";", "return", ";", "}", "}", "}", "@", "Check", "public", "void", "checkUniquePojoDefinition", "(", "PojoDefinition", "pojoDefinition", ")", "{", "if", "(", "isResolvePojo", "(", "pojoDefinition", ")", "&&", "!", "checkClass", "(", "pojoDefinition", ".", "getClass_", "(", ")", ")", ")", "error", "(", "\"\"", "+", "pojoDefinition", ".", "getClass_", "(", ")", "+", "\"", "not", "exists\"", ",", "ProcessorDslPackage", ".", "Literals", ".", "POJO_DEFINITION__NAME", ")", ";", "Artifacts", "artifacts", ";", "EObject", "object", "=", "EcoreUtil", ".", "getRootContainer", "(", "pojoDefinition", ")", ";", "if", "(", "!", "(", "object", "instanceof", "Artifacts", ")", ")", "return", ";", "artifacts", "=", "(", "Artifacts", ")", "object", ";", "for", "(", "PojoDefinition", "definition", ":", "artifacts", ".", "getPojos", "(", ")", ")", "{", "if", "(", "definition", "==", "null", "||", "definition", "==", "pojoDefinition", ")", "continue", ";", "if", "(", "pojoDefinition", ".", "getName", "(", ")", ".", "equals", "(", "definition", ".", "getName", "(", ")", ")", ")", "{", "error", "(", "\"\"", "+", "pojoDefinition", ".", "getName", "(", ")", ",", "ProcessorDslPackage", ".", "Literals", ".", "POJO_DEFINITION__NAME", ")", ";", "return", ";", "}", "}", "}", "@", "Check", "public", "void", "checkUniqueColumnUsage", "(", "ColumnUsage", "columnUsage", ")", "{", "Artifacts", "artifacts", ";", "EObject", "object", "=", "EcoreUtil", ".", "getRootContainer", "(", "columnUsage", ")", ";", "if", "(", "!", "(", "object", "instanceof", "Artifacts", ")", ")", "return", ";", "artifacts", "=", "(", "Artifacts", ")", "object", ";", "for", "(", "PojoUsage", "usage", ":", "artifacts", ".", "getUsages", "(", ")", ")", "{", "if", "(", "usage", "==", "null", "||", "usage", "==", "columnUsage", "||", "!", "(", "usage", "instanceof", "ColumnUsage", ")", ")", "continue", ";", "ColumnUsage", "column", "=", "(", "ColumnUsage", ")", "usage", ";", "if", "(", "column", ".", "getStatement", "(", ")", "==", "null", ")", "continue", ";", "if", "(", "columnUsage", ".", "getStatement", "(", ")", ".", "getName", "(", ")", ".", "equals", "(", "column", ".", "getStatement", "(", ")", ".", "getName", "(", ")", ")", ")", "{", "error", "(", "\"\"", "+", "columnUsage", ".", "getStatement", "(", ")", ".", "getName", "(", ")", "+", "\"[col]\"", ",", "ProcessorDslPackage", ".", "Literals", ".", "COLUMN_USAGE__STATEMENT", ")", ";", "return", ";", "}", "}", "}", "@", "Check", "public", "void", "checkUniqueIdentifierUsage", "(", "IdentifierUsage", "identifierUsage", ")", "{", "Artifacts", "artifacts", ";", "EObject", "object", "=", "EcoreUtil", ".", "getRootContainer", "(", "identifierUsage", ")", ";", "if", "(", "!", "(", "object", "instanceof", "Artifacts", ")", ")", "return", ";", "artifacts", "=", "(", "Artifacts", ")", "object", ";", "for", "(", "PojoUsage", "usage", ":", "artifacts", ".", "getUsages", "(", ")", ")", "{", "if", "(", "usage", "==", "null", "||", "usage", "==", "identifierUsage", "||", "!", "(", "usage", "instanceof", "IdentifierUsage", ")", ")", "continue", ";", "IdentifierUsage", "ident", "=", "(", "IdentifierUsage", ")", "usage", ";", "if", "(", "ident", ".", "getStatement", "(", ")", "==", "null", ")", "continue", ";", "if", "(", "identifierUsage", ".", "getStatement", "(", ")", ".", "getName", "(", ")", ".", "equals", "(", "ident", ".", "getStatement", "(", ")", ".", "getName", "(", ")", ")", ")", "{", "error", "(", "\"\"", "+", "identifierUsage", ".", "getStatement", "(", ")", ".", "getName", "(", ")", "+", "\"[ident]\"", ",", "ProcessorDslPackage", ".", "Literals", ".", "IDENTIFIER_USAGE__STATEMENT", ")", ";", "return", ";", "}", "}", "}", "@", "Check", "public", "void", "checkUniqueConstantUsage", "(", "ConstantUsage", "constantUsage", ")", "{", "Artifacts", "artifacts", ";", "EObject", "object", "=", "EcoreUtil", ".", "getRootContainer", "(", "constantUsage", ")", ";", "if", "(", "!", "(", "object", "instanceof", "Artifacts", ")", ")", "return", ";", "artifacts", "=", "(", "Artifacts", ")", "object", ";", "for", "(", "PojoUsage", "usage", ":", "artifacts", ".", "getUsages", "(", ")", ")", "{", "if", "(", "usage", "==", "null", "||", "usage", "==", "constantUsage", "||", "!", "(", "usage", "instanceof", "ConstantUsage", ")", ")", "continue", ";", "ConstantUsage", "constant", "=", "(", "ConstantUsage", ")", "usage", ";", "if", "(", "constant", ".", "getStatement", "(", ")", "==", "null", ")", "continue", ";", "if", "(", "constantUsage", ".", "getStatement", "(", ")", ".", "getName", "(", ")", ".", "equals", "(", "constant", ".", "getStatement", "(", ")", ".", "getName", "(", ")", ")", ")", "{", "error", "(", "\"\"", "+", "constantUsage", ".", "getStatement", "(", ")", ".", "getName", "(", ")", "+", "\"[const]\"", ",", "ProcessorDslPackage", ".", "Literals", ".", "CONSTANT_USAGE__STATEMENT", ")", ";", "return", ";", "}", "}", "}", "@", "Check", "public", "void", "checkUniqueMappingUsage", "(", "MappingUsage", "mappingUsage", ")", "{", "Artifacts", "artifacts", ";", "EObject", "object", "=", "EcoreUtil", ".", "getRootContainer", "(", "mappingUsage", ")", ";", "if", "(", "!", "(", "object", "instanceof", "Artifacts", ")", ")", "return", ";", "artifacts", "=", "(", "Artifacts", ")", "object", ";", "for", "(", "PojoUsage", "usage", ":", "artifacts", ".", "getUsages", "(", ")", ")", "{", "if", "(", "usage", "==", "null", "||", "usage", "==", "mappingUsage", "||", "!", "(", "usage", "instanceof", "MappingUsage", ")", ")", "continue", ";", "MappingUsage", "mapping", "=", "(", "MappingUsage", ")", "usage", ";", "if", "(", "mapping", ".", "getStatement", "(", ")", "==", "null", ")", "continue", ";", "if", "(", "mappingUsage", ".", "getStatement", "(", ")", ".", "getName", "(", ")", ".", "equals", "(", "mapping", ".", "getStatement", "(", ")", ".", "getName", "(", ")", ")", ")", "{", "error", "(", "\"\"", "+", "mappingUsage", ".", "getStatement", "(", ")", ".", "getName", "(", ")", "+", "\"[col]\"", ",", "ProcessorDslPackage", ".", "Literals", ".", "MAPPING_USAGE__STATEMENT", ")", ";", "return", ";", "}", "}", "}", "protected", "boolean", "equalsStatement", "(", "MetaStatement", "statement1", ",", "MetaStatement", "statement2", ")", "{", "if", "(", "statement1", "==", "null", "&&", "statement2", "==", "null", ")", "return", "true", ";", "if", "(", "statement1", "==", "null", "||", "statement1", ".", "getName", "(", ")", "==", "null", ")", "return", "false", ";", "if", "(", "statement2", "==", "null", "||", "statement2", ".", "getName", "(", ")", "==", "null", ")", "return", "false", ";", "if", "(", "statement1", ".", "getName", "(", ")", ".", "equals", "(", "statement2", ".", "getName", "(", ")", ")", "&&", "statement1", ".", "getType", "(", ")", "==", "statement2", ".", "getType", "(", ")", ")", "{", "if", "(", "statement1", ".", "getFilters", "(", ")", "==", "null", "&&", "statement2", ".", "getFilters", "(", ")", "==", "null", ")", "return", "true", ";", "if", "(", "statement1", ".", "getFilters", "(", ")", "==", "null", ")", "return", "false", ";", "if", "(", "statement2", ".", "getFilters", "(", ")", "==", "null", ")", "return", "false", ";", "if", "(", "statement1", ".", "getFilters", "(", ")", ".", "isEmpty", "(", ")", "&&", "statement2", ".", "getFilters", "(", ")", ".", "isEmpty", "(", ")", ")", "return", "true", ";", "for", "(", "String", "filter1", ":", "statement1", ".", "getFilters", "(", ")", ")", "for", "(", "String", "filter2", ":", "statement2", ".", "getFilters", "(", ")", ")", "if", "(", "filter1", ".", "equals", "(", "filter2", ")", ")", "return", "true", ";", "}", "return", "false", ";", "}", "protected", "boolean", "equalsRule", "(", "MappingRule", "rule1", ",", "MappingRule", "rule2", ")", "{", "if", "(", "rule1", "==", "null", "&&", "rule2", "==", "null", ")", "return", "true", ";", "if", "(", "rule1", "==", "null", "||", "rule1", ".", "getName", "(", ")", "==", "null", ")", "return", "false", ";", "if", "(", "rule2", "==", "null", "||", "rule2", ".", "getName", "(", ")", "==", "null", ")", "return", "false", ";", "if", "(", "rule1", ".", "getName", "(", ")", ".", "equals", "(", "rule2", ".", "getName", "(", ")", ")", "&&", "rule1", ".", "getType", "(", ")", "==", "rule2", ".", "getType", "(", ")", ")", "{", "if", "(", "rule1", ".", "getFilters", "(", ")", "==", "null", "&&", "rule2", ".", "getFilters", "(", ")", "==", "null", ")", "return", "true", ";", "if", "(", "rule1", ".", "getFilters", "(", ")", "==", "null", ")", "return", "false", ";", "if", "(", "rule2", ".", "getFilters", "(", ")", "==", "null", ")", "return", "false", ";", "if", "(", "rule1", ".", "getFilters", "(", ")", ".", "isEmpty", "(", ")", "&&", "rule2", ".", "getFilters", "(", ")", ".", "isEmpty", "(", ")", ")", "return", "true", ";", "for", "(", "String", "filter1", ":", "rule1", ".", "getFilters", "(", ")", ")", "for", "(", "String", "filter2", ":", "rule2", ".", "getFilters", "(", ")", ")", "if", "(", "filter1", ".", "equals", "(", "filter2", ")", ")", "return", "true", ";", "}", "return", "false", ";", "}", "protected", "boolean", "equalsFeature", "(", "OptionalFeature", "feature1", ",", "OptionalFeature", "feature2", ")", "{", "if", "(", "feature1", "==", "null", "&&", "feature2", "==", "null", ")", "return", "true", ";", "if", "(", "feature1", "==", "null", "||", "feature1", ".", "getName", "(", ")", "==", "null", ")", "return", "false", ";", "if", "(", "feature2", "==", "null", "||", "feature2", ".", "getName", "(", ")", "==", "null", ")", "return", "false", ";", "if", "(", "feature1", ".", "getName", "(", ")", ".", "equals", "(", "feature2", ".", "getName", "(", ")", ")", "&&", "feature1", ".", "getType", "(", ")", "==", "feature2", ".", "getType", "(", ")", ")", "{", "if", "(", "feature1", ".", "getFilters", "(", ")", "==", "null", "&&", "feature2", ".", "getFilters", "(", ")", "==", "null", ")", "return", "true", ";", "if", "(", "feature1", ".", "getFilters", "(", ")", "==", "null", ")", "return", "false", ";", "if", "(", "feature2", ".", "getFilters", "(", ")", "==", "null", ")", "return", "false", ";", "if", "(", "feature1", ".", "getFilters", "(", ")", ".", "isEmpty", "(", ")", "&&", "feature2", ".", "getFilters", "(", ")", ".", "isEmpty", "(", ")", ")", "return", "true", ";", "for", "(", "String", "filter1", ":", "feature1", ".", "getFilters", "(", ")", ")", "for", "(", "String", "filter2", ":", "feature2", ".", "getFilters", "(", ")", ")", "if", "(", "filter1", ".", "equals", "(", "filter2", ")", ")", "return", "true", ";", "}", "return", "false", ";", "}", "protected", "boolean", "checkClass", "(", "String", "className", ")", "{", "if", "(", "className", "==", "null", "||", "pojoResolverFactory", ".", "getPojoResolver", "(", ")", "==", "null", ")", "return", "true", ";", "Class", "<", "?", ">", "clazz", "=", "pojoResolverFactory", ".", "getPojoResolver", "(", ")", ".", "loadClass", "(", "className", ")", ";", "return", "clazz", "!=", "null", ";", "}", "@", "Check", "public", "void", "checkColumn", "(", "Column", "column", ")", "{", "if", "(", "!", "isResolvePojo", "(", "column", ")", ")", "return", ";", "String", "columnUsageClass", "=", "null", ";", "MappingUsage", "mappingUsage", "=", "null", ";", "MetaStatement", "statement", "=", "EcoreUtil2", ".", "getContainerOfType", "(", "column", ",", "MetaStatement", ".", "class", ")", ";", "Artifacts", "artifacts", "=", "EcoreUtil2", ".", "getContainerOfType", "(", "statement", ",", "Artifacts", ".", "class", ")", ";", "IScope", "scope", "=", "scopeProvider", ".", "getScope", "(", "artifacts", ",", "ProcessorDslPackage", ".", "Literals", ".", "ARTIFACTS__USAGES", ")", ";", "Iterable", "<", "IEObjectDescription", ">", "iterable", "=", "scope", ".", "getAllElements", "(", ")", ";", "for", "(", "Iterator", "<", "IEObjectDescription", ">", "iter", "=", "iterable", ".", "iterator", "(", ")", ";", "iter", ".", "hasNext", "(", ")", ";", ")", "{", "IEObjectDescription", "description", "=", "iter", ".", "next", "(", ")", ";", "if", "(", "qualifiedNameConverter", ".", "toQualifiedName", "(", "statement", ".", "getName", "(", ")", ")", ".", "equals", "(", "description", ".", "getName", "(", ")", ")", ")", "{", "PojoUsage", "pojoUsage", "=", "(", "PojoUsage", ")", "artifacts", ".", "eResource", "(", ")", ".", "getResourceSet", "(", ")", ".", "getEObject", "(", "description", ".", "getEObjectURI", "(", ")", ",", "true", ")", ";", "if", "(", "pojoUsage", "instanceof", "ColumnUsage", ")", "{", "columnUsageClass", "=", "(", "(", "ColumnUsage", ")", "pojoUsage", ")", ".", "getPojo", "(", ")", ".", "getClass_", "(", ")", ";", "}", "if", "(", "pojoUsage", "instanceof", "MappingUsage", ")", "{", "mappingUsage", "=", "(", "MappingUsage", ")", "pojoUsage", ";", "}", "}", "}", "if", "(", "mappingUsage", "!=", "null", "&&", "mappingUsage", ".", "getStatement", "(", ")", "!=", "null", "&&", "mappingUsage", ".", "getStatement", "(", ")", ".", "getMapping", "(", ")", "!=", "null", "&&", "mappingUsage", ".", "getStatement", "(", ")", ".", "getMapping", "(", ")", ".", "getMappingItems", "(", ")", "!=", "null", ")", "{", "for", "(", "MappingItem", "mappingItem", ":", "mappingUsage", ".", "getStatement", "(", ")", ".", "getMapping", "(", ")", ".", "getMappingItems", "(", ")", ")", "{", "if", "(", "mappingItem", ".", "getCol", "(", ")", ".", "equals", "(", "column", ".", "getName", "(", ")", ")", ")", "return", ";", "}", "}", "switch", "(", "checkClassProperty", "(", "columnUsageClass", ",", "column", ".", "getName", "(", ")", ")", ")", "{", "case", "WARNING", ":", "warning", "(", "\"\"", "+", "column", ".", "getName", "(", ")", "+", "\"[\"", "+", "columnUsageClass", "+", "\"]\"", ",", "ProcessorDslPackage", ".", "Literals", ".", "COLUMN__NAME", ")", ";", "break", ";", "case", "ERROR", ":", "error", "(", "\"\"", "+", "column", ".", "getName", "(", ")", "+", "\"[\"", "+", "columnUsageClass", "+", "\"]\"", ",", "ProcessorDslPackage", ".", "Literals", ".", "COLUMN__NAME", ")", ";", "break", ";", "}", "}", "@", "Check", "public", "void", "checkIdentifier", "(", "Identifier", "identifier", ")", "{", "if", "(", "!", "isResolvePojo", "(", "identifier", ")", ")", "return", ";", "String", "identifierUsageClass", "=", "null", ";", "MetaStatement", "statement", "=", "EcoreUtil2", ".", "getContainerOfType", "(", "identifier", ",", "MetaStatement", ".", "class", ")", ";", "Artifacts", "artifacts", "=", "EcoreUtil2", ".", "getContainerOfType", "(", "statement", ",", "Artifacts", ".", "class", ")", ";", "IScope", "scope", "=", "scopeProvider", ".", "getScope", "(", "artifacts", ",", "ProcessorDslPackage", ".", "Literals", ".", "ARTIFACTS__USAGES", ")", ";", "Iterable", "<", "IEObjectDescription", ">", "iterable", "=", "scope", ".", "getAllElements", "(", ")", ";", "for", "(", "Iterator", "<", "IEObjectDescription", ">", "iter", "=", "iterable", ".", "iterator", "(", ")", ";", "iter", ".", "hasNext", "(", ")", ";", ")", "{", "IEObjectDescription", "description", "=", "iter", ".", "next", "(", ")", ";", "if", "(", "qualifiedNameConverter", ".", "toQualifiedName", "(", "statement", ".", "getName", "(", ")", ")", ".", "equals", "(", "description", ".", "getName", "(", ")", ")", ")", "{", "PojoUsage", "pojoUsage", "=", "(", "PojoUsage", ")", "artifacts", ".", "eResource", "(", ")", ".", "getResourceSet", "(", ")", ".", "getEObject", "(", "description", ".", "getEObjectURI", "(", ")", ",", "true", ")", ";", "if", "(", "pojoUsage", "instanceof", "IdentifierUsage", ")", "{", "identifierUsageClass", "=", "(", "(", "IdentifierUsage", ")", "pojoUsage", ")", ".", "getPojo", "(", ")", ".", "getClass_", "(", ")", ";", "break", ";", "}", "}", "}", "switch", "(", "checkClassProperty", "(", "identifierUsageClass", ",", "identifier", ".", "getName", "(", ")", ")", ")", "{", "case", "WARNING", ":", "warning", "(", "\"\"", "+", "identifier", ".", "getName", "(", ")", "+", "\"[\"", "+", "identifierUsageClass", "+", "\"]\"", ",", "ProcessorDslPackage", ".", "Literals", ".", "IDENTIFIER__NAME", ")", ";", "break", ";", "case", "ERROR", ":", "error", "(", "\"\"", "+", "identifier", ".", "getName", "(", ")", "+", "\"[\"", "+", "identifierUsageClass", "+", "\"]\"", ",", "ProcessorDslPackage", ".", "Literals", ".", "IDENTIFIER__NAME", ")", ";", "break", ";", "}", "}", "@", "Check", "public", "void", "checkConstant", "(", "Constant", "constant", ")", "{", "if", "(", "!", "isResolvePojo", "(", "constant", ")", ")", "return", ";", "String", "constantUsageClass", "=", "null", ";", "MetaStatement", "statement", "=", "EcoreUtil2", ".", "getContainerOfType", "(", "constant", ",", "MetaStatement", ".", "class", ")", ";", "Artifacts", "artifacts", "=", "EcoreUtil2", ".", "getContainerOfType", "(", "statement", ",", "Artifacts", ".", "class", ")", ";", "IScope", "scope", "=", "scopeProvider", ".", "getScope", "(", "artifacts", ",", "ProcessorDslPackage", ".", "Literals", ".", "ARTIFACTS__USAGES", ")", ";", "Iterable", "<", "IEObjectDescription", ">", "iterable", "=", "scope", ".", "getAllElements", "(", ")", ";", "for", "(", "Iterator", "<", "IEObjectDescription", ">", "iter", "=", "iterable", ".", "iterator", "(", ")", ";", "iter", ".", "hasNext", "(", ")", ";", ")", "{", "IEObjectDescription", "description", "=", "iter", ".", "next", "(", ")", ";", "if", "(", "qualifiedNameConverter", ".", "toQualifiedName", "(", "statement", ".", "getName", "(", ")", ")", ".", "equals", "(", "description", ".", "getName", "(", ")", ")", ")", "{", "PojoUsage", "pojoUsage", "=", "(", "PojoUsage", ")", "artifacts", ".", "eResource", "(", ")", ".", "getResourceSet", "(", ")", ".", "getEObject", "(", "description", ".", "getEObjectURI", "(", ")", ",", "true", ")", ";", "if", "(", "pojoUsage", "instanceof", "ConstantUsage", ")", "{", "constantUsageClass", "=", "(", "(", "ConstantUsage", ")", "pojoUsage", ")", ".", "getPojo", "(", ")", ".", "getClass_", "(", ")", ";", "break", ";", "}", "}", "}", "switch", "(", "checkClassProperty", "(", "constantUsageClass", ",", "constant", ".", "getName", "(", ")", ")", ")", "{", "case", "WARNING", ":", "warning", "(", "\"\"", "+", "constant", ".", "getName", "(", ")", "+", "\"[\"", "+", "constantUsageClass", "+", "\"]\"", ",", "ProcessorDslPackage", ".", "Literals", ".", "CONSTANT__NAME", ")", ";", "break", ";", "case", "ERROR", ":", "error", "(", "\"\"", "+", "constant", ".", "getName", "(", ")", "+", "\"[\"", "+", "constantUsageClass", "+", "\"]\"", ",", "ProcessorDslPackage", ".", "Literals", ".", "CONSTANT__NAME", ")", ";", "break", ";", "}", "}", "@", "Check", "public", "void", "checkMappingColumn", "(", "MappingColumn", "identifier", ")", "{", "if", "(", "!", "isResolvePojo", "(", "identifier", ")", ")", "return", ";", "String", "mappingUsageClass", "=", "null", ";", "MappingRule", "rule", "=", "EcoreUtil2", ".", "getContainerOfType", "(", "identifier", ",", "MappingRule", ".", "class", ")", ";", "Artifacts", "artifacts", "=", "EcoreUtil2", ".", "getContainerOfType", "(", "rule", ",", "Artifacts", ".", "class", ")", ";", "IScope", "scope", "=", "scopeProvider", ".", "getScope", "(", "artifacts", ",", "ProcessorDslPackage", ".", "Literals", ".", "ARTIFACTS__USAGES", ")", ";", "Iterable", "<", "IEObjectDescription", ">", "iterable", "=", "scope", ".", "getAllElements", "(", ")", ";", "for", "(", "Iterator", "<", "IEObjectDescription", ">", "iter", "=", "iterable", ".", "iterator", "(", ")", ";", "iter", ".", "hasNext", "(", ")", ";", ")", "{", "IEObjectDescription", "description", "=", "iter", ".", "next", "(", ")", ";", "if", "(", "qualifiedNameConverter", ".", "toQualifiedName", "(", "rule", ".", "getName", "(", ")", ")", ".", "equals", "(", "description", ".", "getName", "(", ")", ")", ")", "{", "PojoUsage", "pojoUsage", "=", "(", "PojoUsage", ")", "artifacts", ".", "eResource", "(", ")", ".", "getResourceSet", "(", ")", ".", "getEObject", "(", "description", ".", "getEObjectURI", "(", ")", ",", "true", ")", ";", "if", "(", "pojoUsage", "instanceof", "MappingUsage", ")", "{", "mappingUsageClass", "=", "(", "(", "MappingUsage", ")", "pojoUsage", ")", ".", "getPojo", "(", ")", ".", "getClass_", "(", ")", ";", "break", ";", "}", "}", "}", "switch", "(", "checkClassProperty", "(", "mappingUsageClass", ",", "identifier", ".", "getName", "(", ")", ")", ")", "{", "case", "WARNING", ":", "warning", "(", "\"\"", "+", "identifier", ".", "getName", "(", ")", "+", "\"[\"", "+", "mappingUsageClass", "+", "\"]\"", ",", "ProcessorDslPackage", ".", "Literals", ".", "MAPPING_COLUMN__NAME", ")", ";", "break", ";", "case", "ERROR", ":", "error", "(", "\"\"", "+", "identifier", ".", "getName", "(", ")", "+", "\"[\"", "+", "mappingUsageClass", "+", "\"]\"", ",", "ProcessorDslPackage", ".", "Literals", ".", "MAPPING_COLUMN__NAME", ")", ";", "break", ";", "}", "}", "protected", "boolean", "isNumber", "(", "String", "param", ")", "{", "if", "(", "param", "==", "null", ")", "return", "false", ";", "for", "(", "int", "i", "=", "param", ".", "length", "(", ")", "-", "1", ";", "i", ">=", "0", ";", "i", "--", ")", "{", "if", "(", "!", "Character", ".", "isDigit", "(", "param", ".", "charAt", "(", "i", ")", ")", ")", "return", "false", ";", "}", "return", "true", ";", "}", "protected", "boolean", "isPrimitive", "(", "Class", "<", "?", ">", "clazz", ")", "{", "if", "(", "clazz", "==", "null", ")", "return", "true", ";", "if", "(", "clazz", ".", "isPrimitive", "(", ")", ")", "return", "true", ";", "if", "(", "clazz", "==", "String", ".", "class", ")", "return", "true", ";", "if", "(", "clazz", "==", "java", ".", "util", ".", "Date", ".", "class", ")", "return", "true", ";", "if", "(", "clazz", "==", "java", ".", "sql", ".", "Date", ".", "class", ")", "return", "true", ";", "if", "(", "clazz", "==", "java", ".", "sql", ".", "Time", ".", "class", ")", "return", "true", ";", "if", "(", "clazz", "==", "java", ".", "sql", ".", "Timestamp", ".", "class", ")", "return", "true", ";", "if", "(", "clazz", "==", "java", ".", "sql", ".", "Blob", ".", "class", ")", "return", "true", ";", "if", "(", "clazz", "==", "java", ".", "sql", ".", "Clob", ".", "class", ")", "return", "true", ";", "if", "(", "clazz", "==", "java", ".", "math", ".", "BigDecimal", ".", "class", ")", "return", "true", ";", "if", "(", "clazz", "==", "java", ".", "math", ".", "BigInteger", ".", "class", ")", "return", "true", ";", "return", "false", ";", "}", "protected", "ValidationResult", "checkClassProperty", "(", "String", "className", ",", "String", "property", ")", "{", "if", "(", "property", "==", "null", "||", "isNumber", "(", "property", ")", "||", "pojoResolverFactory", ".", "getPojoResolver", "(", ")", "==", "null", ")", "return", "ValidationResult", ".", "OK", ";", "if", "(", "className", "==", "null", ")", "return", "ValidationResult", ".", "ERROR", ";", "PropertyDescriptor", "[", "]", "descriptors", "=", "pojoResolverFactory", ".", "getPojoResolver", "(", ")", ".", "getPropertyDescriptors", "(", "className", ")", ";", "if", "(", "descriptors", "==", "null", ")", "return", "ValidationResult", ".", "WARNING", ";", "String", "checkProperty", "=", "property", ";", "int", "pos1", "=", "checkProperty", ".", "indexOf", "(", "'='", ")", ";", "if", "(", "pos1", ">", "0", ")", "{", "int", "pos2", "=", "checkProperty", ".", "indexOf", "(", "'.'", ",", "pos1", ")", ";", "if", "(", "pos2", ">", "pos1", ")", "checkProperty", "=", "checkProperty", ".", "substring", "(", "0", ",", "pos1", ")", "+", "checkProperty", ".", "substring", "(", "pos2", ")", ";", "}", "String", "innerProperty", "=", "null", ";", "pos1", "=", "checkProperty", ".", "indexOf", "(", "'.'", ")", ";", "if", "(", "pos1", ">", "0", ")", "{", "innerProperty", "=", "checkProperty", ".", "substring", "(", "pos1", "+", "1", ")", ";", "checkProperty", "=", "checkProperty", ".", "substring", "(", "0", ",", "pos1", ")", ";", "}", "PropertyDescriptor", "innerDesriptor", "=", "null", ";", "for", "(", "PropertyDescriptor", "descriptor", ":", "descriptors", ")", "{", "if", "(", "descriptor", ".", "getName", "(", ")", ".", "equals", "(", "checkProperty", ")", ")", "{", "innerDesriptor", "=", "descriptor", ";", "break", ";", "}", "}", "if", "(", "innerDesriptor", "==", "null", ")", "{", "Class", "<", "?", ">", "clazz", "=", "pojoResolverFactory", ".", "getPojoResolver", "(", ")", ".", "loadClass", "(", "className", ")", ";", "if", "(", "clazz", "!=", "null", "&&", "Modifier", ".", "isAbstract", "(", "clazz", ".", "getModifiers", "(", ")", ")", ")", "return", "ValidationResult", ".", "WARNING", ";", "return", "ValidationResult", ".", "ERROR", ";", "}", "if", "(", "innerProperty", "!=", "null", ")", "{", "Class", "<", "?", ">", "innerClass", "=", "innerDesriptor", ".", "getPropertyType", "(", ")", ";", "if", "(", "innerClass", ".", "isArray", "(", ")", ")", "{", "ParameterizedType", "type", "=", "(", "ParameterizedType", ")", "innerDesriptor", ".", "getReadMethod", "(", ")", ".", "getGenericReturnType", "(", ")", ";", "if", "(", "type", ".", "getActualTypeArguments", "(", ")", "==", "null", "||", "type", ".", "getActualTypeArguments", "(", ")", ".", "length", "==", "0", ")", "return", "ValidationResult", ".", "WARNING", ";", "innerClass", "=", "(", "Class", "<", "?", ">", ")", "type", ".", "getActualTypeArguments", "(", ")", "[", "0", "]", ";", "if", "(", "isPrimitive", "(", "innerClass", ")", ")", "return", "ValidationResult", ".", "ERROR", ";", "return", "checkClassProperty", "(", "innerClass", ".", "getName", "(", ")", ",", "innerProperty", ")", ";", "}", "else", "if", "(", "Collection", ".", "class", ".", "isAssignableFrom", "(", "innerClass", ")", ")", "{", "ParameterizedType", "type", "=", "(", "ParameterizedType", ")", "innerDesriptor", ".", "getReadMethod", "(", ")", ".", "getGenericReturnType", "(", ")", ";", "if", "(", "type", ".", "getActualTypeArguments", "(", ")", "==", "null", "||", "type", ".", "getActualTypeArguments", "(", ")", ".", "length", "==", "0", ")", "return", "ValidationResult", ".", "WARNING", ";", "innerClass", "=", "(", "Class", "<", "?", ">", ")", "type", ".", "getActualTypeArguments", "(", ")", "[", "0", "]", ";", "if", "(", "isPrimitive", "(", "innerClass", ")", ")", "return", "ValidationResult", ".", "ERROR", ";", "return", "checkClassProperty", "(", "innerClass", ".", "getName", "(", ")", ",", "innerProperty", ")", ";", "}", "else", "{", "if", "(", "isPrimitive", "(", "innerClass", ")", ")", "return", "ValidationResult", ".", "ERROR", ";", "return", "checkClassProperty", "(", "innerClass", ".", "getName", "(", ")", ",", "innerProperty", ")", ";", "}", "}", "return", "ValidationResult", ".", "OK", ";", "}", "@", "Check", "public", "void", "checkUniqueProperty", "(", "Property", "property", ")", "{", "Artifacts", "artifacts", ";", "EObject", "object", "=", "EcoreUtil", ".", "getRootContainer", "(", "property", ")", ";", "if", "(", "!", "(", "object", "instanceof", "Artifacts", ")", ")", "return", ";", "artifacts", "=", "(", "Artifacts", ")", "object", ";", "for", "(", "Property", "prop", ":", "artifacts", ".", "getProperties", "(", ")", ")", "{", "if", "(", "prop", "==", "null", "||", "prop", "==", "property", ")", "continue", ";", "if", "(", "prop", ".", "getName", "(", ")", ".", "equals", "(", "property", ".", "getName", "(", ")", ")", ")", "{", "error", "(", "\"\"", "+", "property", ".", "getName", "(", ")", ",", "ProcessorDslPackage", ".", "Literals", ".", "PROPERTY__NAME", ")", ";", "return", ";", "}", "}", "}", "@", "Check", "public", "void", "checkTableDefinition", "(", "TableDefinition", "tableDefinition", ")", "{", "Artifacts", "artifacts", ";", "EObject", "object", "=", "EcoreUtil", ".", "getRootContainer", "(", "tableDefinition", ")", ";", "if", "(", "!", "(", "object", "instanceof", "Artifacts", ")", ")", "return", ";", "artifacts", "=", "(", "Artifacts", ")", "object", ";", "for", "(", "TableDefinition", "table", ":", "artifacts", ".", "getTables", "(", ")", ")", "{", "if", "(", "table", "==", "null", "||", "table", "==", "tableDefinition", ")", "continue", ";", "if", "(", "tableDefinition", ".", "getName", "(", ")", ".", "equals", "(", "table", ".", "getName", "(", ")", ")", ")", "{", "error", "(", "\"\"", "+", "tableDefinition", ".", "getName", "(", ")", "+", "\"[table]\"", ",", "ProcessorDslPackage", ".", "Literals", ".", "TABLE_DEFINITION__NAME", ")", ";", "return", ";", "}", "}", "if", "(", "isResolveDb", "(", "tableDefinition", ")", "&&", "!", "dbResolver", ".", "checkTable", "(", "tableDefinition", ",", "tableDefinition", ".", "getTable", "(", ")", ")", ")", "{", "error", "(", "\"\"", "+", "tableDefinition", ".", "getTable", "(", ")", ",", "ProcessorDslPackage", ".", "Literals", ".", "TABLE_DEFINITION__TABLE", ")", ";", "}", "}", "@", "Check", "public", "void", "checkTableUsage", "(", "TableUsage", "tableUsage", ")", "{", "Artifacts", "artifacts", ";", "EObject", "object", "=", "EcoreUtil", ".", "getRootContainer", "(", "tableUsage", ")", ";", "if", "(", "!", "(", "object", "instanceof", "Artifacts", ")", ")", "return", ";", "artifacts", "=", "(", "Artifacts", ")", "object", ";", "for", "(", "TableUsage", "usage", ":", "artifacts", ".", "getTableUsages", "(", ")", ")", "{", "if", "(", "usage", "==", "null", "||", "usage", "==", "tableUsage", ")", "continue", ";", "if", "(", "tableUsage", ".", "getStatement", "(", ")", ".", "getName", "(", ")", ".", "equals", "(", "usage", ".", "getStatement", "(", ")", ".", "getName", "(", ")", ")", ")", "{", "if", "(", "tableUsage", ".", "getTable", "(", ")", ".", "getName", "(", ")", ".", "equals", "(", "usage", ".", "getTable", "(", ")", ".", "getName", "(", ")", ")", ")", "{", "if", "(", "tableUsage", ".", "getPrefix", "(", ")", "==", "null", "&&", "usage", ".", "getPrefix", "(", ")", "==", "null", ")", "{", "error", "(", "\"\"", "+", "tableUsage", ".", "getStatement", "(", ")", ".", "getName", "(", ")", "+", "\"[\"", "+", "tableUsage", ".", "getTable", "(", ")", ".", "getName", "(", ")", "+", "\"][dbcol]\"", ",", "ProcessorDslPackage", ".", "Literals", ".", "TABLE_USAGE__TABLE", ")", ";", "return", ";", "}", "if", "(", "tableUsage", ".", "getPrefix", "(", ")", "!=", "null", "&&", "tableUsage", ".", "getPrefix", "(", ")", ".", "equals", "(", "usage", ".", "getPrefix", "(", ")", ")", ")", "{", "error", "(", "\"\"", "+", "tableUsage", ".", "getStatement", "(", ")", ".", "getName", "(", ")", "+", "\"[\"", "+", "tableUsage", ".", "getTable", "(", ")", ".", "getName", "(", ")", "+", "\":\"", "+", "tableUsage", ".", "getPrefix", "(", ")", "+", "\"][dbcol]\"", ",", "ProcessorDslPackage", ".", "Literals", ".", "TABLE_USAGE__TABLE", ")", ";", "return", ";", "}", "}", "if", "(", "tableUsage", ".", "getPrefix", "(", ")", "!=", "null", "&&", "tableUsage", ".", "getPrefix", "(", ")", ".", "equals", "(", "usage", ".", "getPrefix", "(", ")", ")", ")", "{", "error", "(", "\"\"", "+", "tableUsage", ".", "getStatement", "(", ")", ".", "getName", "(", ")", "+", "\"[\"", "+", "tableUsage", ".", "getPrefix", "(", ")", "+", "\"][dbcol]\"", ",", "ProcessorDslPackage", ".", "Literals", ".", "TABLE_USAGE__PREFIX", ")", ";", "return", ";", "}", "}", "}", "}", "@", "Check", "public", "void", "checkDatabaseColumn", "(", "DatabaseColumn", "databaseColumn", ")", "{", "if", "(", "!", "isResolveDb", "(", "databaseColumn", ")", ")", "return", ";", "String", "prefix", "=", "databaseColumn", ".", "getName", "(", ")", ";", "String", "columnName", "=", "null", ";", "int", "pos", "=", "prefix", ".", "indexOf", "(", "'.'", ")", ";", "if", "(", "pos", ">", "0", ")", "{", "prefix", "=", "databaseColumn", ".", "getName", "(", ")", ".", "substring", "(", "0", ",", "pos", ")", ";", "columnName", "=", "databaseColumn", ".", "getName", "(", ")", ".", "substring", "(", "pos", "+", "1", ")", ";", "}", "else", "{", "prefix", "=", "null", ";", "columnName", "=", "databaseColumn", ".", "getName", "(", ")", ";", "}", "MetaStatement", "statement", "=", "EcoreUtil2", ".", "getContainerOfType", "(", "databaseColumn", ",", "MetaStatement", ".", "class", ")", ";", "Artifacts", "artifacts", "=", "EcoreUtil2", ".", "getContainerOfType", "(", "statement", ",", "Artifacts", ".", "class", ")", ";", "TableDefinition", "tableDefinition", "=", "getTableDefinition", "(", "artifacts", ",", "statement", ",", "null", ",", "prefix", ")", ";", "String", "tableName", "=", "tableDefinition", "!=", "null", "?", "tableDefinition", ".", "getTable", "(", ")", ":", "null", ";", "if", "(", "tableName", "==", "null", "||", "!", "dbResolver", ".", "checkColumn", "(", "databaseColumn", ",", "tableName", ",", "columnName", ")", ")", "{", "error", "(", "\"\"", "+", "databaseColumn", ".", "getName", "(", ")", "+", "\"[\"", "+", "tableName", "+", "\"]\"", ",", "ProcessorDslPackage", ".", "Literals", ".", "DATABASE_COLUMN__NAME", ")", ";", "}", "}", "@", "Check", "public", "void", "checkDatabaseTable", "(", "DatabaseTable", "databaseTable", ")", "{", "if", "(", "!", "isResolveDb", "(", "databaseTable", ")", ")", "return", ";", "String", "tableName", "=", "databaseTable", ".", "getName", "(", ")", ";", "MetaStatement", "statement", "=", "EcoreUtil2", ".", "getContainerOfType", "(", "databaseTable", ",", "MetaStatement", ".", "class", ")", ";", "Artifacts", "artifacts", "=", "EcoreUtil2", ".", "getContainerOfType", "(", "statement", ",", "Artifacts", ".", "class", ")", ";", "TableDefinition", "tableDefinition", "=", "getTableDefinition", "(", "artifacts", ",", "statement", ",", "tableName", ",", "null", ")", ";", "if", "(", "tableDefinition", "==", "null", "||", "!", "dbResolver", ".", "checkTable", "(", "databaseTable", ",", "tableName", ")", ")", "{", "error", "(", "\"\"", "+", "tableName", ",", "ProcessorDslPackage", ".", "Literals", ".", "DATABASE_TABLE__NAME", ")", ";", "}", "}", "protected", "boolean", "isResolvePojo", "(", "EObject", "model", ")", "{", "if", "(", "pojoResolverFactory", ".", "getPojoResolver", "(", ")", "==", "null", "||", "!", "pojoResolverFactory", ".", "getPojoResolver", "(", ")", ".", "isResolvePojo", "(", "model", ")", ")", "return", "false", ";", "return", "true", ";", "}", "protected", "boolean", "isResolveDb", "(", "EObject", "model", ")", "{", "return", "dbResolver", ".", "isResolveDb", "(", "model", ")", ";", "}", "protected", "TableDefinition", "getTableDefinition", "(", "Artifacts", "artifacts", ",", "MetaStatement", "statement", ",", "String", "tableName", ",", "String", "prefix", ")", "{", "TableUsage", "usage", "=", "null", ";", "IScope", "scope", "=", "scopeProvider", ".", "getScope", "(", "artifacts", ",", "ProcessorDslPackage", ".", "Literals", ".", "ARTIFACTS__TABLE_USAGES", ")", ";", "Iterable", "<", "IEObjectDescription", ">", "iterable", "=", "scope", ".", "getAllElements", "(", ")", ";", "for", "(", "Iterator", "<", "IEObjectDescription", ">", "iter", "=", "iterable", ".", "iterator", "(", ")", ";", "iter", ".", "hasNext", "(", ")", ";", ")", "{", "IEObjectDescription", "description", "=", "iter", ".", "next", "(", ")", ";", "if", "(", "ProcessorDslPackage", ".", "Literals", ".", "TABLE_USAGE", ".", "getName", "(", ")", ".", "equals", "(", "description", ".", "getEClass", "(", ")", ".", "getName", "(", ")", ")", ")", "{", "TableUsage", "tableUsage", "=", "(", "TableUsage", ")", "artifacts", ".", "eResource", "(", ")", ".", "getResourceSet", "(", ")", ".", "getEObject", "(", "description", ".", "getEObjectURI", "(", ")", ",", "true", ")", ";", "if", "(", "tableUsage", ".", "getStatement", "(", ")", ".", "getName", "(", ")", ".", "equals", "(", "statement", ".", "getName", "(", ")", ")", ")", "{", "if", "(", "tableName", "!=", "null", "&&", "tableUsage", ".", "getTable", "(", ")", "!=", "null", "&&", "tableName", ".", "equals", "(", "tableUsage", ".", "getTable", "(", ")", ".", "getTable", "(", ")", ")", ")", "{", "usage", "=", "tableUsage", ";", "break", ";", "}", "if", "(", "prefix", "==", "null", "&&", "tableUsage", ".", "getPrefix", "(", ")", "==", "null", ")", "{", "usage", "=", "tableUsage", ";", "break", ";", "}", "if", "(", "prefix", "!=", "null", "&&", "prefix", ".", "equals", "(", "tableUsage", ".", "getPrefix", "(", ")", ")", ")", "{", "usage", "=", "tableUsage", ";", "break", ";", "}", "}", "}", "}", "if", "(", "usage", "!=", "null", "&&", "usage", ".", "getTable", "(", ")", "!=", "null", "&&", "usage", ".", "getTable", "(", ")", ".", "getName", "(", ")", "!=", "null", ")", "{", "scope", "=", "scopeProvider", ".", "getScope", "(", "artifacts", ",", "ProcessorDslPackage", ".", "Literals", ".", "ARTIFACTS__TABLES", ")", ";", "iterable", "=", "scope", ".", "getAllElements", "(", ")", ";", "for", "(", "Iterator", "<", "IEObjectDescription", ">", "iter", "=", "iterable", ".", "iterator", "(", ")", ";", "iter", ".", "hasNext", "(", ")", ";", ")", "{", "IEObjectDescription", "description", "=", "iter", ".", "next", "(", ")", ";", "if", "(", "ProcessorDslPackage", ".", "Literals", ".", "TABLE_DEFINITION", ".", "getName", "(", ")", ".", "equals", "(", "description", ".", "getEClass", "(", ")", ".", "getName", "(", ")", ")", ")", "{", "TableDefinition", "tableDefinition", "=", "(", "TableDefinition", ")", "artifacts", ".", "eResource", "(", ")", ".", "getResourceSet", "(", ")", ".", "getEObject", "(", "description", ".", "getEObjectURI", "(", ")", ",", "true", ")", ";", "if", "(", "usage", ".", "getTable", "(", ")", ".", "getName", "(", ")", ".", "equals", "(", "tableDefinition", ".", "getName", "(", ")", ")", ")", "{", "return", "tableDefinition", ";", "}", "}", "}", "}", "return", "null", ";", "}", "}", "</s>" ]
270
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "serializer", ";", "public", "class", "ProcessorDslSemanticSequencer", "extends", "AbstractProcessorDslSemanticSequencer", "{", "}", "</s>" ]
271
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "serializer", ";", "public", "class", "ProcessorDslSyntacticSequencer", "extends", "AbstractProcessorDslSyntacticSequencer", "{", "}", "</s>" ]
272
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "resource", ".", "IResourceFactory", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "property", ".", "ModelProperty", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "property", ".", "ModelPropertyBean", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "resolver", ".", "DbResolver", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "resolver", ".", "DbResolverBean", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "resolver", ".", "PojoResolverFactory", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "resolver", ".", "PojoResolverFactoryBean", ";", "public", "class", "ProcessorDslRuntimeModule", "extends", "org", ".", "sqlproc", ".", "dsl", ".", "AbstractProcessorDslRuntimeModule", "{", "public", "Class", "<", "?", "extends", "ModelProperty", ">", "bindModelProperty", "(", ")", "{", "return", "ModelPropertyBean", ".", "class", ";", "}", "@", "Override", "public", "Class", "<", "?", "extends", "org", ".", "eclipse", ".", "xtext", ".", "naming", ".", "IQualifiedNameProvider", ">", "bindIQualifiedNameProvider", "(", ")", "{", "return", "ProcessorNameProvider", ".", "class", ";", "}", "public", "Class", "<", "?", "extends", "PojoResolverFactory", ">", "bindPojoResolverFactory", "(", ")", "{", "return", "PojoResolverFactoryBean", ".", "class", ";", "}", "public", "Class", "<", "?", "extends", "DbResolver", ">", "bindDbResolver", "(", ")", "{", "return", "DbResolverBean", ".", "class", ";", "}", "@", "Override", "public", "Class", "<", "?", "extends", "IResourceFactory", ">", "bindIResourceFactory", "(", ")", "{", "return", "ProcessorResourceFactory", ".", "class", ";", "}", "}", "</s>" ]
273
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "scoping", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EReference", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "scoping", ".", "IScope", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "scoping", ".", "impl", ".", "AbstractDeclarativeScopeProvider", ";", "public", "class", "ProcessorDslScopeProvider", "extends", "AbstractDeclarativeScopeProvider", "{", "@", "Override", "public", "IScope", "getScope", "(", "EObject", "context", ",", "EReference", "reference", ")", "{", "IScope", "scope", "=", "super", ".", "getScope", "(", "context", ",", "reference", ")", ";", "return", "scope", ";", "}", "}", "</s>" ]
274
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "formatting", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "formatting", ".", "impl", ".", "AbstractDeclarativeFormatter", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "formatting", ".", "impl", ".", "FormattingConfig", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "services", ".", "ProcessorDslGrammarAccess", ";", "public", "class", "ProcessorDslFormatter", "extends", "AbstractDeclarativeFormatter", "{", "@", "Override", "protected", "void", "configureFormatting", "(", "FormattingConfig", "c", ")", "{", "ProcessorDslGrammarAccess", "grammarAccess", "=", "(", "ProcessorDslGrammarAccess", ")", "getGrammarAccess", "(", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "before", "(", "grammarAccess", ".", "getSEMICOLONRule", "(", ")", ")", ";", "c", ".", "setLinewrap", "(", "1", ",", "1", ",", "2", ")", ".", "after", "(", "grammarAccess", ".", "getArtifactsRule", "(", ")", ")", ";", "c", ".", "setLinewrap", "(", "1", ",", "1", ",", "2", ")", ".", "after", "(", "grammarAccess", ".", "getPropertyRule", "(", ")", ")", ";", "c", ".", "setLinewrap", "(", "1", ",", "1", ",", "2", ")", ".", "after", "(", "grammarAccess", ".", "getPojoDefinitionRule", "(", ")", ")", ";", "c", ".", "setLinewrap", "(", "1", ",", "1", ",", "2", ")", ".", "after", "(", "grammarAccess", ".", "getIdentifierUsageRule", "(", ")", ")", ";", "c", ".", "setLinewrap", "(", "1", ",", "1", ",", "2", ")", ".", "after", "(", "grammarAccess", ".", "getColumnUsageRule", "(", ")", ")", ";", "c", ".", "setLinewrap", "(", "1", ",", "1", ",", "2", ")", ".", "after", "(", "grammarAccess", ".", "getConstantUsageRule", "(", ")", ")", ";", "c", ".", "setLinewrap", "(", "1", ",", "1", ",", "2", ")", ".", "after", "(", "grammarAccess", ".", "getMappingUsageRule", "(", ")", ")", ";", "c", ".", "setLinewrap", "(", "1", ",", "1", ",", "2", ")", ".", "after", "(", "grammarAccess", ".", "getTableDefinitionRule", "(", ")", ")", ";", "c", ".", "setLinewrap", "(", "1", ",", "1", ",", "2", ")", ".", "after", "(", "grammarAccess", ".", "getTableUsageRule", "(", ")", ")", ";", "c", ".", "setLinewrap", "(", "1", ",", "1", ",", "2", ")", ".", "after", "(", "grammarAccess", ".", "getMetaStatementRule", "(", ")", ")", ";", "c", ".", "setLinewrap", "(", "1", ",", "1", ",", "2", ")", ".", "after", "(", "grammarAccess", ".", "getOptionalFeatureRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getArtifactsAccess", "(", ")", ".", "getWSTerminalRuleCall_0", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getArtifactsAccess", "(", ")", ".", "getWSTerminalRuleCall_1_0_1", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getArtifactsAccess", "(", ")", ".", "getWSTerminalRuleCall_1_1_1", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getArtifactsAccess", "(", ")", ".", "getWSTerminalRuleCall_1_2_1", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getArtifactsAccess", "(", ")", ".", "getWSTerminalRuleCall_1_3_1", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getArtifactsAccess", "(", ")", ".", "getWSTerminalRuleCall_1_4_1", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getArtifactsAccess", "(", ")", ".", "getWSTerminalRuleCall_1_5_1", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getArtifactsAccess", "(", ")", ".", "getWSTerminalRuleCall_1_6_1", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getArtifactsAccess", "(", ")", ".", "getWSTerminalRuleCall_1_7_1", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getPropertyAccess", "(", ")", ".", "getWSTerminalRuleCall_0_0_1", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getPropertyAccess", "(", ")", ".", "getWSTerminalRuleCall_0_1_1", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getPropertyAccess", "(", ")", ".", "getWSTerminalRuleCall_0_2_1", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getPropertyAccess", "(", ")", ".", "getWSTerminalRuleCall_0_3_1", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getPropertyAccess", "(", ")", ".", "getWSTerminalRuleCall_0_4_1", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getPropertyAccess", "(", ")", ".", "getWSTerminalRuleCall_0_5_1", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getPropertyAccess", "(", ")", ".", "getWSTerminalRuleCall_0_6_1", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getMetaSqlAccess", "(", ")", ".", "getWSTerminalRuleCall_0_0", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getMetaSqlAccess", "(", ")", ".", "getWSTerminalRuleCall_4_1", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getIfMetaSqlAccess", "(", ")", ".", "getWSTerminalRuleCall_0_0", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getIfSqlCondAccess", "(", ")", ".", "getWSTerminalRuleCall_0", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getIfSqlCondAccess", "(", ")", ".", "getWSTerminalRuleCall_2", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getIfSqlCondAccess", "(", ")", ".", "getWSTerminalRuleCall_3_1", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getIfSqlCondAccess", "(", ")", ".", "getWSTerminalRuleCall_3_3", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getMappingAccess", "(", ")", ".", "getWSTerminalRuleCall_0", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getMappingAccess", "(", ")", ".", "getWSTerminalRuleCall_2_0", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getMappingAccess", "(", ")", ".", "getWSTerminalRuleCall_3", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getIdentifierRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getColumnRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getConstantRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getMappingItemRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getDatabaseColumnRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getDatabaseTableRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getMetaSqlAccess", "(", ")", ".", "getFtypeIDENTTerminalRuleCall_4_2_0", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getNUMBERRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getANDRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getORRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getESC_CHARRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getCOLONRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getSTRINGRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getCOMMARule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getMINUSRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getPLUSRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getLPARENRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getRPARENRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getLBRACERule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getRBRACERule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getQUESTIRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getNOTRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getBANDRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getBORRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getHASHRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getATRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getCARETRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getEQUALSRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getLESS_THANRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getMORE_THANRule", "(", ")", ")", ";", "c", ".", "setNoSpace", "(", ")", ".", "around", "(", "grammarAccess", ".", "getPERCENTRule", "(", ")", ")", ";", "c", ".", "setLinewrap", "(", "0", ",", "1", ",", "2", ")", ".", "before", "(", "grammarAccess", ".", "getSL_COMMENTRule", "(", ")", ")", ";", "c", ".", "setLinewrap", "(", "0", ",", "1", ",", "2", ")", ".", "before", "(", "grammarAccess", ".", "getML_COMMENTRule", "(", ")", ")", ";", "c", ".", "setLinewrap", "(", "0", ",", "1", ",", "1", ")", ".", "after", "(", "grammarAccess", ".", "getML_COMMENTRule", "(", ")", ")", ";", "}", "}", "</s>" ]
275
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "resolver", ";", "import", "java", ".", "sql", ".", "Connection", ";", "import", "java", ".", "sql", ".", "DatabaseMetaData", ";", "import", "java", ".", "sql", ".", "Driver", ";", "import", "java", ".", "sql", ".", "ResultSet", ";", "import", "java", ".", "sql", ".", "SQLException", ";", "import", "java", ".", "util", ".", "ArrayList", ";", "import", "java", ".", "util", ".", "Collections", ";", "import", "java", ".", "util", ".", "HashMap", ";", "import", "java", ".", "util", ".", "List", ";", "import", "java", ".", "util", ".", "Map", ";", "import", "java", ".", "util", ".", "Properties", ";", "import", "org", ".", "apache", ".", "log4j", ".", "Logger", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "property", ".", "ModelProperty", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "property", ".", "ModelPropertyBean", ";", "import", "com", ".", "google", ".", "inject", ".", "Inject", ";", "import", "com", ".", "google", ".", "inject", ".", "Singleton", ";", "@", "Singleton", "public", "class", "DbResolverBean", "implements", "DbResolver", "{", "public", "static", "class", "DatabaseValues", "{", "public", "String", "dbDriver", ";", "public", "String", "dbUrl", ";", "public", "String", "dbUsername", ";", "public", "String", "dbPassword", ";", "public", "String", "dbSchema", ";", "public", "String", "dir", ";", "public", "Connection", "connection", ";", "boolean", "doReconnect", ";", "@", "Override", "public", "String", "toString", "(", ")", "{", "return", "\"\"", "+", "dbDriver", "+", "\",", "dbUrl=\"", "+", "dbUrl", "+", "\"\"", "+", "dbUsername", "+", "\"\"", "+", "dbPassword", "+", "\",", "dbSchema=\"", "+", "dbSchema", "+", "\"\"", "+", "connection", "+", "\"]\"", ";", "}", "}", "@", "Inject", "ModelProperty", "modelProperty", ";", "@", "Inject", "PojoResolverFactory", "pojoResolverFactory", ";", "protected", "Logger", "LOGGER", "=", "Logger", ".", "getLogger", "(", "DbResolverBean", ".", "class", ")", ";", "private", "final", "Object", "sync", "=", "new", "Object", "(", ")", ";", "private", "final", "Map", "<", "String", ",", "DatabaseValues", ">", "connections", "=", "Collections", ".", "synchronizedMap", "(", "new", "HashMap", "<", "String", ",", "DatabaseValues", ">", "(", ")", ")", ";", "private", "final", "Map", "<", "String", ",", "List", "<", "String", ">", ">", "tables", "=", "Collections", ".", "synchronizedMap", "(", "new", "HashMap", "<", "String", ",", "List", "<", "String", ">", ">", "(", ")", ")", ";", "private", "final", "Map", "<", "String", ",", "Map", "<", "String", ",", "List", "<", "String", ">", ">", ">", "columns", "=", "Collections", ".", "synchronizedMap", "(", "new", "HashMap", "<", "String", ",", "Map", "<", "String", ",", "List", "<", "String", ">", ">", ">", "(", ")", ")", ";", "private", "DatabaseValues", "checkReconnect", "(", "EObject", "model", ")", "{", "if", "(", "model", "==", "null", ")", "return", "null", ";", "ModelPropertyBean", ".", "ModelValues", "modelModelValues", "=", "modelProperty", ".", "getModelValues", "(", "model", ")", ";", "DatabaseValues", "modelDatabaseValues", "=", "connections", ".", "get", "(", "modelModelValues", ".", "dir", ")", ";", "if", "(", "modelDatabaseValues", "==", "null", ")", "{", "modelDatabaseValues", "=", "new", "DatabaseValues", "(", ")", ";", "modelDatabaseValues", ".", "dir", "=", "modelModelValues", ".", "dir", ";", "connections", ".", "put", "(", "modelModelValues", ".", "dir", ",", "modelDatabaseValues", ")", ";", "}", "if", "(", "!", "modelModelValues", ".", "doResolveDb", ")", "{", "closeConnection", "(", "modelDatabaseValues", ")", ";", "return", "null", ";", "}", "modelDatabaseValues", ".", "doReconnect", "=", "(", "modelDatabaseValues", ".", "connection", "!=", "null", ")", "?", "false", ":", "true", ";", "if", "(", "modelModelValues", ".", "dbDriver", "!=", "null", ")", "{", "if", "(", "!", "modelModelValues", ".", "dbDriver", ".", "equals", "(", "modelDatabaseValues", ".", "dbDriver", ")", ")", "{", "modelDatabaseValues", ".", "dbDriver", "=", "modelModelValues", ".", "dbDriver", ";", "modelDatabaseValues", ".", "doReconnect", "=", "true", ";", "}", "}", "else", "{", "modelDatabaseValues", ".", "dbDriver", "=", "null", ";", "closeConnection", "(", "modelDatabaseValues", ")", ";", "return", "null", ";", "}", "if", "(", "modelModelValues", ".", "dbUrl", "!=", "null", ")", "{", "if", "(", "!", "modelModelValues", ".", "dbUrl", ".", "equals", "(", "modelDatabaseValues", ".", "dbUrl", ")", ")", "{", "modelDatabaseValues", ".", "dbUrl", "=", "modelModelValues", ".", "dbUrl", ";", "modelDatabaseValues", ".", "doReconnect", "=", "true", ";", "}", "}", "else", "{", "modelDatabaseValues", ".", "dbUrl", "=", "null", ";", "closeConnection", "(", "modelDatabaseValues", ")", ";", "return", "null", ";", "}", "if", "(", "modelModelValues", ".", "dbUsername", "!=", "null", ")", "{", "if", "(", "!", "modelModelValues", ".", "dbUsername", ".", "equals", "(", "modelDatabaseValues", ".", "dbUsername", ")", ")", "{", "modelDatabaseValues", ".", "dbUsername", "=", "modelModelValues", ".", "dbUsername", ";", "modelDatabaseValues", ".", "doReconnect", "=", "true", ";", "}", "}", "else", "{", "modelDatabaseValues", ".", "dbUsername", "=", "null", ";", "closeConnection", "(", "modelDatabaseValues", ")", ";", "return", "null", ";", "}", "if", "(", "modelModelValues", ".", "dbPassword", "!=", "null", ")", "{", "if", "(", "!", "modelModelValues", ".", "dbPassword", ".", "equals", "(", "modelDatabaseValues", ".", "dbPassword", ")", ")", "{", "modelDatabaseValues", ".", "dbPassword", "=", "modelModelValues", ".", "dbPassword", ";", "modelDatabaseValues", ".", "doReconnect", "=", "true", ";", "}", "}", "else", "{", "modelDatabaseValues", ".", "dbPassword", "=", "null", ";", "closeConnection", "(", "modelDatabaseValues", ")", ";", "return", "null", ";", "}", "if", "(", "modelModelValues", ".", "dbSchema", "!=", "null", ")", "{", "if", "(", "!", "modelModelValues", ".", "dbSchema", ".", "equals", "(", "modelDatabaseValues", ".", "dbSchema", ")", ")", "{", "modelDatabaseValues", ".", "dbSchema", "=", "modelModelValues", ".", "dbSchema", ";", "}", "}", "else", "modelDatabaseValues", ".", "dbSchema", "=", "null", ";", "return", "modelDatabaseValues", ";", "}", "private", "DatabaseValues", "getConnection", "(", "EObject", "model", ")", "{", "DatabaseValues", "modelDatabaseValues", "=", "checkReconnect", "(", "model", ")", ";", "if", "(", "modelDatabaseValues", "==", "null", ")", "return", "null", ";", "if", "(", "!", "modelDatabaseValues", ".", "doReconnect", ")", "return", "modelDatabaseValues", ";", "closeConnection", "(", "modelDatabaseValues", ")", ";", "synchronized", "(", "sync", ")", "{", "LOGGER", ".", "info", "(", "\"\"", "+", "modelDatabaseValues", ".", "dir", ")", ";", "Class", "<", "?", ">", "driverClass", "=", "pojoResolverFactory", ".", "getPojoResolver", "(", ")", ".", "loadClass", "(", "modelDatabaseValues", ".", "dbDriver", ")", ";", "LOGGER", ".", "info", "(", "\"DATA", "DRIVER", "\"", "+", "driverClass", ")", ";", "if", "(", "driverClass", "!=", "null", "&&", "Driver", ".", "class", ".", "isAssignableFrom", "(", "driverClass", ")", ")", "{", "try", "{", "Driver", "driver", "=", "(", "Driver", ")", "driverClass", ".", "newInstance", "(", ")", ";", "Properties", "props", "=", "new", "Properties", "(", ")", ";", "props", ".", "setProperty", "(", "\"user\"", ",", "modelDatabaseValues", ".", "dbUsername", ")", ";", "props", ".", "setProperty", "(", "\"password\"", ",", "modelDatabaseValues", ".", "dbPassword", ")", ";", "modelDatabaseValues", ".", "connection", "=", "driver", ".", "connect", "(", "modelDatabaseValues", ".", "dbUrl", ",", "props", ")", ";", "LOGGER", ".", "info", "(", "\"\"", "+", "modelDatabaseValues", ".", "connection", ")", ";", "}", "catch", "(", "InstantiationException", "e", ")", "{", "LOGGER", ".", "error", "(", "\"\"", "+", "e", ")", ";", "}", "catch", "(", "IllegalAccessException", "e", ")", "{", "LOGGER", ".", "error", "(", "\"\"", "+", "e", ")", ";", "}", "catch", "(", "SQLException", "e", ")", "{", "LOGGER", ".", "error", "(", "\"\"", "+", "e", ")", ";", "}", "}", "return", "modelDatabaseValues", ";", "}", "}", "private", "void", "closeConnection", "(", "DatabaseValues", "modelDatabaseValues", ")", "{", "synchronized", "(", "sync", ")", "{", "try", "{", "if", "(", "modelDatabaseValues", ".", "connection", "!=", "null", ")", "{", "LOGGER", ".", "info", "(", "\"\"", "+", "modelDatabaseValues", ".", "dir", ")", ";", "modelDatabaseValues", ".", "connection", ".", "close", "(", ")", ";", "}", "}", "catch", "(", "SQLException", "e", ")", "{", "LOGGER", ".", "error", "(", "\"\"", "+", "e", ")", ";", "}", "modelDatabaseValues", ".", "connection", "=", "null", ";", "tables", ".", "remove", "(", "modelDatabaseValues", ".", "dir", ")", ";", "columns", ".", "remove", "(", "modelDatabaseValues", ".", "dir", ")", ";", "}", "}", "@", "Override", "public", "boolean", "isResolveDb", "(", "EObject", "model", ")", "{", "return", "getConnection", "(", "model", ")", "!=", "null", ";", "}", "@", "Override", "public", "List", "<", "String", ">", "getTables", "(", "EObject", "model", ")", "{", "DatabaseValues", "modelDatabaseValues", "=", "getConnection", "(", "model", ")", ";", "if", "(", "modelDatabaseValues", "==", "null", ")", "return", "Collections", ".", "emptyList", "(", ")", ";", "List", "<", "String", ">", "tablesForModel", "=", "tables", ".", "get", "(", "modelDatabaseValues", ".", "dir", ")", ";", "if", "(", "tablesForModel", "!=", "null", ")", "return", "tablesForModel", ";", "tablesForModel", "=", "Collections", ".", "synchronizedList", "(", "new", "ArrayList", "<", "String", ">", "(", ")", ")", ";", "tables", ".", "put", "(", "modelDatabaseValues", ".", "dir", ",", "tablesForModel", ")", ";", "if", "(", "modelDatabaseValues", ".", "connection", "!=", "null", ")", "{", "ResultSet", "result", "=", "null", ";", "try", "{", "DatabaseMetaData", "meta", "=", "modelDatabaseValues", ".", "connection", ".", "getMetaData", "(", ")", ";", "result", "=", "meta", ".", "getTables", "(", "null", ",", "modelDatabaseValues", ".", "dbSchema", ",", "null", ",", "new", "String", "[", "]", "{", "\"TABLE\"", ",", "\"VIEW\"", "}", ")", ";", "while", "(", "result", ".", "next", "(", ")", ")", "{", "tablesForModel", ".", "add", "(", "result", ".", "getString", "(", "\"TABLE_NAME\"", ")", ")", ";", "}", "}", "catch", "(", "SQLException", "e", ")", "{", "LOGGER", ".", "error", "(", "\"\"", "+", "e", ")", ";", "}", "finally", "{", "try", "{", "if", "(", "result", "!=", "null", ")", "result", ".", "close", "(", ")", ";", "}", "catch", "(", "SQLException", "e", ")", "{", "LOGGER", ".", "error", "(", "\"\"", "+", "e", ")", ";", "}", "}", "}", "return", "tablesForModel", ";", "}", "@", "Override", "public", "boolean", "checkTable", "(", "EObject", "model", ",", "String", "table", ")", "{", "if", "(", "table", "==", "null", ")", "return", "false", ";", "return", "getTables", "(", "model", ")", ".", "contains", "(", "table", ")", ";", "}", "@", "Override", "public", "List", "<", "String", ">", "getColumns", "(", "EObject", "model", ",", "String", "table", ")", "{", "if", "(", "table", "==", "null", ")", "return", "Collections", ".", "emptyList", "(", ")", ";", "DatabaseValues", "modelDatabaseValues", "=", "getConnection", "(", "model", ")", ";", "if", "(", "modelDatabaseValues", "==", "null", ")", "return", "Collections", ".", "emptyList", "(", ")", ";", "boolean", "doInit", "=", "false", ";", "Map", "<", "String", ",", "List", "<", "String", ">", ">", "allColumnsForModel", "=", "columns", ".", "get", "(", "modelDatabaseValues", ".", "dir", ")", ";", "if", "(", "allColumnsForModel", "==", "null", ")", "{", "allColumnsForModel", "=", "Collections", ".", "synchronizedMap", "(", "new", "HashMap", "<", "String", ",", "List", "<", "String", ">", ">", "(", ")", ")", ";", "columns", ".", "put", "(", "modelDatabaseValues", ".", "dir", ",", "allColumnsForModel", ")", ";", "doInit", "=", "true", ";", "}", "List", "<", "String", ">", "columnsForModel", "=", "allColumnsForModel", ".", "get", "(", "table", ")", ";", "if", "(", "columnsForModel", "==", "null", ")", "{", "columnsForModel", "=", "Collections", ".", "synchronizedList", "(", "new", "ArrayList", "<", "String", ">", "(", ")", ")", ";", "allColumnsForModel", ".", "put", "(", "table", ",", "columnsForModel", ")", ";", "doInit", "=", "true", ";", "}", "if", "(", "!", "doInit", ")", "return", "columnsForModel", ";", "if", "(", "modelDatabaseValues", ".", "connection", "!=", "null", ")", "{", "ResultSet", "result", "=", "null", ";", "try", "{", "DatabaseMetaData", "meta", "=", "modelDatabaseValues", ".", "connection", ".", "getMetaData", "(", ")", ";", "result", "=", "meta", ".", "getColumns", "(", "null", ",", "modelDatabaseValues", ".", "dbSchema", ",", "table", ",", "null", ")", ";", "while", "(", "result", ".", "next", "(", ")", ")", "{", "columnsForModel", ".", "add", "(", "result", ".", "getString", "(", "\"COLUMN_NAME\"", ")", ")", ";", "}", "}", "catch", "(", "SQLException", "e", ")", "{", "LOGGER", ".", "error", "(", "\"\"", "+", "e", ")", ";", "}", "finally", "{", "try", "{", "if", "(", "result", "!=", "null", ")", "result", ".", "close", "(", ")", ";", "}", "catch", "(", "SQLException", "e", ")", "{", "LOGGER", ".", "error", "(", "\"\"", "+", "e", ")", ";", "}", "}", "}", "return", "columnsForModel", ";", "}", "@", "Override", "public", "boolean", "checkColumn", "(", "EObject", "model", ",", "String", "table", ",", "String", "column", ")", "{", "if", "(", "table", "==", "null", "||", "column", "==", "null", ")", "return", "false", ";", "return", "getColumns", "(", "model", ",", "table", ")", ".", "contains", "(", "column", ")", ";", "}", "}", "</s>" ]
276
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "resolver", ";", "import", "java", ".", "beans", ".", "PropertyDescriptor", ";", "import", "java", ".", "net", ".", "URLClassLoader", ";", "import", "java", ".", "util", ".", "List", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "PojoResolver", "{", "public", "static", "final", "String", "POJO_ANNOTATION_CLASS", "=", "\"\"", ";", "List", "<", "URLClassLoader", ">", "getAllLoaders", "(", ")", ";", "Class", "<", "?", ">", "loadClass", "(", "String", "name", ")", ";", "public", "PropertyDescriptor", "[", "]", "getPropertyDescriptors", "(", "String", "name", ")", ";", "boolean", "isResolvePojo", "(", "EObject", "model", ")", ";", "List", "<", "Class", "<", "?", ">", ">", "getPojoClasses", "(", ")", ";", "}", "</s>" ]
277
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "resolver", ";", "import", "java", ".", "util", ".", "List", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "public", "interface", "DbResolver", "{", "public", "boolean", "isResolveDb", "(", "EObject", "model", ")", ";", "public", "List", "<", "String", ">", "getTables", "(", "EObject", "model", ")", ";", "public", "boolean", "checkTable", "(", "EObject", "model", ",", "String", "table", ")", ";", "public", "List", "<", "String", ">", "getColumns", "(", "EObject", "model", ",", "String", "table", ")", ";", "public", "boolean", "checkColumn", "(", "EObject", "model", ",", "String", "table", ",", "String", "column", ")", ";", "}", "</s>" ]
278
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "resolver", ";", "public", "interface", "PojoResolverFactory", "{", "PojoResolver", "getPojoResolver", "(", ")", ";", "void", "setPojoResolver", "(", "PojoResolver", "pojoResolver", ")", ";", "}", "</s>" ]
279
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "resolver", ";", "import", "com", ".", "google", ".", "inject", ".", "Singleton", ";", "@", "Singleton", "public", "class", "PojoResolverFactoryBean", "implements", "PojoResolverFactory", "{", "private", "PojoResolver", "pojoResolver", ";", "public", "PojoResolver", "getPojoResolver", "(", ")", "{", "return", "pojoResolver", ";", "}", "public", "void", "setPojoResolver", "(", "PojoResolver", "pojoResolver", ")", "{", "this", ".", "pojoResolver", "=", "pojoResolver", ";", "}", "}", "</s>" ]
280
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "util", ";", "import", "java", ".", "util", ".", "Set", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Column", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Constant", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "DatabaseColumn", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Identifier", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSql", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSqlBool", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSqlCond", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IfSqlFragment", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingColumn", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingItem", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingRule", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MetaStatement", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "OrdSql2", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "SqlFragment", ";", "public", "class", "Collector", "{", "public", "static", "void", "allVariables", "(", "MetaStatement", "metaStatement", ",", "Set", "<", "Identifier", ">", "identifiers", ",", "Set", "<", "Constant", ">", "constants", ",", "Set", "<", "Column", ">", "columns", ",", "Set", "<", "DatabaseColumn", ">", "databaseColumns", ")", "{", "if", "(", "metaStatement", ".", "getStatement", "(", ")", "!=", "null", "&&", "metaStatement", ".", "getStatement", "(", ")", ".", "getSqls", "(", ")", "!=", "null", ")", "{", "for", "(", "SqlFragment", "sqlFragment", ":", "metaStatement", ".", "getStatement", "(", ")", ".", "getSqls", "(", ")", ")", "{", "if", "(", "sqlFragment", ".", "getIdent", "(", ")", "!=", "null", ")", "{", "identifiers", ".", "add", "(", "sqlFragment", ".", "getIdent", "(", ")", ")", ";", "}", "else", "if", "(", "sqlFragment", ".", "getCnst", "(", ")", "!=", "null", ")", "{", "constants", ".", "add", "(", "sqlFragment", ".", "getCnst", "(", ")", ")", ";", "}", "else", "if", "(", "sqlFragment", ".", "getCol", "(", ")", "!=", "null", ")", "{", "columns", ".", "add", "(", "sqlFragment", ".", "getCol", "(", ")", ")", ";", "}", "else", "if", "(", "sqlFragment", ".", "getDbcol", "(", ")", "!=", "null", ")", "{", "databaseColumns", ".", "add", "(", "sqlFragment", ".", "getDbcol", "(", ")", ")", ";", "}", "else", "if", "(", "sqlFragment", ".", "getMeta", "(", ")", "!=", "null", ")", "{", "if", "(", "sqlFragment", ".", "getMeta", "(", ")", ".", "getIfs", "(", ")", "!=", "null", ")", "{", "for", "(", "IfSql", "ifSql", ":", "sqlFragment", ".", "getMeta", "(", ")", ".", "getIfs", "(", ")", ")", "{", "allVariables", "(", "ifSql", ",", "identifiers", ",", "constants", ",", "columns", ",", "databaseColumns", ")", ";", "}", "}", "if", "(", "sqlFragment", ".", "getMeta", "(", ")", ".", "getCond", "(", ")", "!=", "null", ")", "{", "allVariables", "(", "sqlFragment", ".", "getMeta", "(", ")", ".", "getCond", "(", ")", ",", "identifiers", ",", "constants", ",", "columns", ",", "databaseColumns", ")", ";", "}", "if", "(", "sqlFragment", ".", "getMeta", "(", ")", ".", "getOrd", "(", ")", "!=", "null", "&&", "sqlFragment", ".", "getMeta", "(", ")", ".", "getOrd", "(", ")", ".", "getSqls", "(", ")", "!=", "null", ")", "{", "for", "(", "OrdSql2", "ordSql2", ":", "sqlFragment", ".", "getMeta", "(", ")", ".", "getOrd", "(", ")", ".", "getSqls", "(", ")", ")", "{", "if", "(", "ordSql2", ".", "getIdent", "(", ")", "!=", "null", ")", "{", "identifiers", ".", "add", "(", "sqlFragment", ".", "getIdent", "(", ")", ")", ";", "}", "else", "if", "(", "ordSql2", ".", "getCnst", "(", ")", "!=", "null", ")", "{", "constants", ".", "add", "(", "sqlFragment", ".", "getCnst", "(", ")", ")", ";", "}", "else", "if", "(", "ordSql2", ".", "getDbcol", "(", ")", "!=", "null", ")", "{", "databaseColumns", ".", "add", "(", "ordSql2", ".", "getDbcol", "(", ")", ")", ";", "}", "}", "}", "}", "}", "}", "}", "public", "static", "void", "allVariables", "(", "IfSql", "ifSql", ",", "Set", "<", "Identifier", ">", "identifiers", ",", "Set", "<", "Constant", ">", "constants", ",", "Set", "<", "Column", ">", "columns", ",", "Set", "<", "DatabaseColumn", ">", "databaseColumns", ")", "{", "if", "(", "ifSql", ".", "getSqls", "(", ")", "!=", "null", ")", "{", "for", "(", "IfSqlFragment", "ifSqlFragment", ":", "ifSql", ".", "getSqls", "(", ")", ")", "{", "if", "(", "ifSqlFragment", ".", "getIdent", "(", ")", "!=", "null", ")", "{", "identifiers", ".", "add", "(", "ifSqlFragment", ".", "getIdent", "(", ")", ")", ";", "}", "else", "if", "(", "ifSqlFragment", ".", "getCnst", "(", ")", "!=", "null", ")", "{", "constants", ".", "add", "(", "ifSqlFragment", ".", "getCnst", "(", ")", ")", ";", "}", "else", "if", "(", "ifSqlFragment", ".", "getCol", "(", ")", "!=", "null", ")", "{", "columns", ".", "add", "(", "ifSqlFragment", ".", "getCol", "(", ")", ")", ";", "}", "else", "if", "(", "ifSqlFragment", ".", "getDbcol", "(", ")", "!=", "null", ")", "{", "databaseColumns", ".", "add", "(", "ifSqlFragment", ".", "getDbcol", "(", ")", ")", ";", "}", "else", "if", "(", "ifSqlFragment", ".", "getMeta", "(", ")", "!=", "null", ")", "{", "if", "(", "ifSqlFragment", ".", "getMeta", "(", ")", ".", "getCond", "(", ")", "!=", "null", ")", "{", "allVariables", "(", "ifSqlFragment", ".", "getMeta", "(", ")", ".", "getCond", "(", ")", ",", "identifiers", ",", "constants", ",", "columns", ",", "databaseColumns", ")", ";", "}", "else", "if", "(", "ifSqlFragment", ".", "getMeta", "(", ")", ".", "getIfs", "(", ")", "!=", "null", ")", "{", "for", "(", "IfSql", "ifSql2", ":", "ifSqlFragment", ".", "getMeta", "(", ")", ".", "getIfs", "(", ")", ")", "{", "allVariables", "(", "ifSql2", ",", "identifiers", ",", "constants", ",", "columns", ",", "databaseColumns", ")", ";", "}", "}", "}", "}", "}", "}", "public", "static", "void", "allVariables", "(", "IfSqlCond", "ifSqlCond", ",", "Set", "<", "Identifier", ">", "identifiers", ",", "Set", "<", "Constant", ">", "constants", ",", "Set", "<", "Column", ">", "columns", ",", "Set", "<", "DatabaseColumn", ">", "databaseColumns", ")", "{", "if", "(", "ifSqlCond", ".", "getBool1", "(", ")", "!=", "null", ")", "{", "if", "(", "ifSqlCond", ".", "getBool1", "(", ")", ".", "getIdent", "(", ")", "!=", "null", ")", "{", "identifiers", ".", "add", "(", "ifSqlCond", ".", "getBool1", "(", ")", ".", "getIdent", "(", ")", ")", ";", "}", "else", "if", "(", "ifSqlCond", ".", "getBool1", "(", ")", ".", "getCnst", "(", ")", "!=", "null", ")", "{", "constants", ".", "add", "(", "ifSqlCond", ".", "getBool1", "(", ")", ".", "getCnst", "(", ")", ")", ";", "}", "else", "if", "(", "ifSqlCond", ".", "getBool1", "(", ")", ".", "getCond", "(", ")", "!=", "null", ")", "{", "allVariables", "(", "ifSqlCond", ".", "getBool1", "(", ")", ".", "getCond", "(", ")", ",", "identifiers", ",", "constants", ",", "columns", ",", "databaseColumns", ")", ";", "}", "}", "if", "(", "ifSqlCond", ".", "getBool2", "(", ")", "!=", "null", ")", "{", "for", "(", "IfSqlBool", "ifSqlBool", ":", "ifSqlCond", ".", "getBool2", "(", ")", ")", "{", "if", "(", "ifSqlBool", ".", "getIdent", "(", ")", "!=", "null", ")", "{", "identifiers", ".", "add", "(", "ifSqlBool", ".", "getIdent", "(", ")", ")", ";", "}", "else", "if", "(", "ifSqlBool", ".", "getCnst", "(", ")", "!=", "null", ")", "{", "constants", ".", "add", "(", "ifSqlBool", ".", "getCnst", "(", ")", ")", ";", "}", "else", "if", "(", "ifSqlBool", ".", "getCond", "(", ")", "!=", "null", ")", "{", "allVariables", "(", "ifSqlBool", ".", "getCond", "(", ")", ",", "identifiers", ",", "constants", ",", "columns", ",", "databaseColumns", ")", ";", "}", "}", "}", "}", "public", "static", "void", "allVariables", "(", "MappingRule", "mappingRule", ",", "Set", "<", "MappingColumn", ">", "columns", ")", "{", "if", "(", "mappingRule", ".", "getMapping", "(", ")", "!=", "null", "&&", "mappingRule", ".", "getMapping", "(", ")", ".", "getMappingItems", "(", ")", "!=", "null", ")", "{", "for", "(", "MappingItem", "mappingItem", ":", "mappingRule", ".", "getMapping", "(", ")", ".", "getMappingItems", "(", ")", ")", "{", "if", "(", "mappingItem", ".", "getAttr", "(", ")", "!=", "null", ")", "{", "columns", ".", "add", "(", "mappingItem", ".", "getAttr", "(", ")", ")", ";", "}", "}", "}", "}", "}", "</s>" ]
281
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "util", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "resource", ".", "Resource", ";", "public", "class", "Utils", "{", "public", "static", "String", "resourceDir", "(", "Resource", "resource", ")", "{", "String", "uri", "=", "(", "resource", ".", "getURI", "(", ")", "!=", "null", ")", "?", "resource", ".", "getURI", "(", ")", ".", "toString", "(", ")", ":", "null", ";", "String", "dir", "=", "null", ";", "if", "(", "uri", "!=", "null", ")", "{", "dir", "=", "uri", ";", "int", "ix", "=", "uri", ".", "lastIndexOf", "(", "\"/\"", ")", ";", "if", "(", "ix", ">", "0", ")", "dir", "=", "uri", ".", "substring", "(", "0", ",", "ix", ")", ";", "}", "return", "dir", ";", "}", "}", "</s>" ]
282
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ";", "import", "org", ".", "apache", ".", "log4j", ".", "Logger", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Adapter", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "URI", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "resource", ".", "Resource", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "resource", ".", "XtextResource", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "resource", ".", "XtextResourceFactory", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "property", ".", "ModelProperty", ";", "import", "com", ".", "google", ".", "inject", ".", "Inject", ";", "import", "com", ".", "google", ".", "inject", ".", "Provider", ";", "public", "class", "ProcessorResourceFactory", "extends", "XtextResourceFactory", "{", "protected", "Logger", "LOGGER", "=", "Logger", ".", "getLogger", "(", "ProcessorResourceFactory", ".", "class", ")", ";", "@", "Inject", "ModelProperty", "modelProperty", ";", "@", "Inject", "public", "ProcessorResourceFactory", "(", "Provider", "<", "XtextResource", ">", "resourceProvider", ")", "{", "super", "(", "resourceProvider", ")", ";", "}", "@", "Override", "public", "Resource", "createResource", "(", "URI", "uri", ")", "{", "Resource", "resource", "=", "super", ".", "createResource", "(", "uri", ")", ";", "LOGGER", ".", "debug", "(", "\"RESOURCE", "'\"", "+", "resource", "+", "\"'", "for", "'\"", "+", "uri", "+", "\"'\"", ")", ";", "EList", "<", "Adapter", ">", "adapters", "=", "resource", ".", "eAdapters", "(", ")", ";", "adapters", ".", "add", "(", "modelProperty", ")", ";", "resource", ".", "eSetDeliver", "(", "true", ")", ";", "return", "resource", ";", "}", "}", "</s>" ]
283
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ";", "import", "org", ".", "apache", ".", "log4j", ".", "Logger", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Adapter", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "Notifier", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "notify", ".", "impl", ".", "BasicNotifierImpl", ".", "EObservableAdapterList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EClassifier", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "nodemodel", ".", "impl", ".", "CompositeNodeWithSemanticElement", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "parser", ".", "DefaultEcoreElementFactory", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Artifacts", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "property", ".", "ModelProperty", ";", "import", "com", ".", "google", ".", "inject", ".", "Inject", ";", "public", "class", "ProcessorEcoreElementFactory", "extends", "DefaultEcoreElementFactory", "{", "protected", "Logger", "LOGGER", "=", "Logger", ".", "getLogger", "(", "ProcessorEcoreElementFactory", ".", "class", ")", ";", "@", "Inject", "ModelProperty", "modelProperty", ";", "public", "ProcessorEcoreElementFactory", "(", ")", "{", "super", "(", ")", ";", "}", "@", "Override", "public", "EObject", "create", "(", "EClassifier", "classifier", ")", "{", "EObject", "model", "=", "super", ".", "create", "(", "classifier", ")", ";", "if", "(", "model", "==", "null", ")", "return", "null", ";", "if", "(", "model", "instanceof", "Artifacts", ")", "{", "LOGGER", ".", "debug", "(", "\"ARTIFACTS", "\"", "+", "model", ")", ";", "EList", "<", "Adapter", ">", "adapters", "=", "model", ".", "eAdapters", "(", ")", ";", "adapters", ".", "add", "(", "modelProperty", ")", ";", "model", ".", "eSetDeliver", "(", "true", ")", ";", "}", "return", "model", ";", "}", "EObservableAdapterList", ".", "Listener", "listener", "=", "new", "EObservableAdapterList", ".", "Listener", "(", ")", "{", "@", "Override", "public", "void", "removed", "(", "Notifier", "notifier", ",", "Adapter", "adapter", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", "+", "adapter", "+", "\"'", "from", "'\"", "+", "notifier", "+", "\"'\"", ")", ";", "}", "@", "Override", "public", "void", "added", "(", "Notifier", "notifier", ",", "Adapter", "adapter", ")", "{", "System", ".", "out", ".", "println", "(", "\"\"", "+", "adapter", "+", "\"'", "to", "'\"", "+", "notifier", "+", "\"'\"", ")", ";", "if", "(", "adapter", "instanceof", "CompositeNodeWithSemanticElement", ")", "{", "CompositeNodeWithSemanticElement", "node", "=", "(", "CompositeNodeWithSemanticElement", ")", "adapter", ";", "LOGGER", ".", "debug", "(", "\"ARTIFACTS", "\"", "+", "node", ")", ";", "}", "}", "}", ";", "}", "</s>" ]
284
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ";", "import", "java", ".", "util", ".", "Iterator", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "CrossReference", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "naming", ".", "IQualifiedNameConverter", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "naming", ".", "IQualifiedNameProvider", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "naming", ".", "QualifiedName", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "nodemodel", ".", "ICompositeNode", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "nodemodel", ".", "ILeafNode", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "nodemodel", ".", "util", ".", "NodeModelUtils", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "util", ".", "SimpleAttributeResolver", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "PojoUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "TableUsage", ";", "import", "com", ".", "google", ".", "inject", ".", "Inject", ";", "public", "class", "ProcessorNameProvider", "extends", "IQualifiedNameProvider", ".", "AbstractImpl", "{", "@", "Inject", "private", "IQualifiedNameConverter", "qualifiedNameConverter", ";", "public", "QualifiedName", "getFullyQualifiedName", "(", "EObject", "obj", ")", "{", "if", "(", "obj", "instanceof", "PojoUsage", ")", "{", "String", "name", "=", "null", ";", "ICompositeNode", "parserNode", "=", "NodeModelUtils", ".", "getNode", "(", "obj", ")", ";", "Iterable", "<", "ILeafNode", ">", "iterables", "=", "parserNode", ".", "getLeafNodes", "(", ")", ";", "for", "(", "Iterator", "<", "ILeafNode", ">", "iter", "=", "iterables", ".", "iterator", "(", ")", ";", "iter", ".", "hasNext", "(", ")", ";", ")", "{", "ILeafNode", "node", "=", "iter", ".", "next", "(", ")", ";", "if", "(", "node", ".", "isHidden", "(", ")", ")", "continue", ";", "if", "(", "node", ".", "getGrammarElement", "(", ")", "!=", "null", "&&", "node", ".", "getGrammarElement", "(", ")", "instanceof", "CrossReference", ")", "{", "name", "=", "node", ".", "getText", "(", ")", ";", "break", ";", "}", "}", "if", "(", "name", "==", "null", ")", "return", "null", ";", "return", "qualifiedNameConverter", ".", "toQualifiedName", "(", "name", ")", ";", "}", "else", "if", "(", "obj", "instanceof", "TableUsage", ")", "{", "String", "name", "=", "null", ";", "ICompositeNode", "parserNode", "=", "NodeModelUtils", ".", "getNode", "(", "obj", ")", ";", "Iterable", "<", "ILeafNode", ">", "iterables", "=", "parserNode", ".", "getLeafNodes", "(", ")", ";", "for", "(", "Iterator", "<", "ILeafNode", ">", "iter", "=", "iterables", ".", "iterator", "(", ")", ";", "iter", ".", "hasNext", "(", ")", ";", ")", "{", "ILeafNode", "node", "=", "iter", ".", "next", "(", ")", ";", "if", "(", "node", ".", "isHidden", "(", ")", ")", "continue", ";", "if", "(", "node", ".", "getGrammarElement", "(", ")", "!=", "null", "&&", "node", ".", "getGrammarElement", "(", ")", "instanceof", "CrossReference", ")", "{", "if", "(", "name", "==", "null", ")", "name", "=", "node", ".", "getText", "(", ")", ";", "}", "else", "{", "if", "(", "\"prefix\"", ".", "equals", "(", "node", ".", "getText", "(", ")", ")", "||", "\"dbcol\"", ".", "equals", "(", "node", ".", "getText", "(", ")", ")", ")", "continue", ";", "name", "=", "name", "+", "\"_\"", "+", "node", ".", "getText", "(", ")", ";", "break", ";", "}", "}", "if", "(", "name", "==", "null", ")", "return", "null", ";", "return", "qualifiedNameConverter", ".", "toQualifiedName", "(", "name", ")", ";", "}", "String", "name", "=", "SimpleAttributeResolver", ".", "NAME_RESOLVER", ".", "apply", "(", "obj", ")", ";", "if", "(", "name", "==", "null", ")", "return", "null", ";", "return", "qualifiedNameConverter", ".", "toQualifiedName", "(", "name", ")", ";", "}", "}", "</s>" ]
285
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "generator", ";", "import", "java", ".", "util", ".", "List", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "URI", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "resource", ".", "Resource", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "resource", ".", "ResourceSet", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "generator", ".", "IGenerator", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "generator", ".", "JavaIoFileSystemAccess", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "util", ".", "CancelIndicator", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "validation", ".", "CheckMode", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "validation", ".", "IResourceValidator", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "validation", ".", "Issue", ";", "import", "com", ".", "google", ".", "inject", ".", "Inject", ";", "import", "com", ".", "google", ".", "inject", ".", "Injector", ";", "import", "com", ".", "google", ".", "inject", ".", "Provider", ";", "public", "class", "Main", "{", "public", "static", "void", "main", "(", "String", "[", "]", "args", ")", "{", "if", "(", "args", ".", "length", "==", "0", ")", "{", "System", ".", "err", ".", "println", "(", "\"\"", ")", ";", "return", ";", "}", "Injector", "injector", "=", "new", "org", ".", "sqlproc", ".", "dsl", ".", "ProcessorDslStandaloneSetupGenerated", "(", ")", ".", "createInjectorAndDoEMFRegistration", "(", ")", ";", "Main", "main", "=", "injector", ".", "getInstance", "(", "Main", ".", "class", ")", ";", "main", ".", "runGenerator", "(", "args", "[", "0", "]", ")", ";", "}", "@", "Inject", "private", "Provider", "<", "ResourceSet", ">", "resourceSetProvider", ";", "@", "Inject", "private", "IResourceValidator", "validator", ";", "@", "Inject", "private", "IGenerator", "generator", ";", "@", "Inject", "private", "JavaIoFileSystemAccess", "fileAccess", ";", "protected", "void", "runGenerator", "(", "String", "string", ")", "{", "ResourceSet", "set", "=", "resourceSetProvider", ".", "get", "(", ")", ";", "Resource", "resource", "=", "set", ".", "getResource", "(", "URI", ".", "createURI", "(", "string", ")", ",", "true", ")", ";", "List", "<", "Issue", ">", "list", "=", "validator", ".", "validate", "(", "resource", ",", "CheckMode", ".", "ALL", ",", "CancelIndicator", ".", "NullImpl", ")", ";", "if", "(", "!", "list", ".", "isEmpty", "(", ")", ")", "{", "for", "(", "Issue", "issue", ":", "list", ")", "{", "System", ".", "err", ".", "println", "(", "issue", ")", ";", "}", "return", ";", "}", "fileAccess", ".", "setOutputPath", "(", "\"src-gen/\"", ")", ";", "generator", ".", "doGenerate", "(", "resource", ",", "fileAccess", ")", ";", "System", ".", "out", ".", "println", "(", "\"\"", ")", ";", "}", "}", "</s>" ]
286
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "junit", ".", "GlobalRegistries", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "junit", ".", "GlobalRegistries", ".", "GlobalStateMemento", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "junit4", ".", "IInjectorProvider", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "junit4", ".", "IRegistryConfigurator", ";", "import", "com", ".", "google", ".", "inject", ".", "Injector", ";", "public", "class", "ProcessorDslInjectorProvider", "implements", "IInjectorProvider", ",", "IRegistryConfigurator", "{", "private", "GlobalStateMemento", "globalStateMemento", ";", "private", "Injector", "injector", ";", "static", "{", "GlobalRegistries", ".", "initializeDefaults", "(", ")", ";", "}", "public", "Injector", "getInjector", "(", ")", "{", "if", "(", "injector", "==", "null", ")", "{", "this", ".", "injector", "=", "new", "ProcessorDslStandaloneSetup", "(", ")", ".", "createInjectorAndDoEMFRegistration", "(", ")", ";", "}", "return", "injector", ";", "}", "public", "void", "restoreRegistry", "(", ")", "{", "globalStateMemento", ".", "restoreGlobalState", "(", ")", ";", "}", "public", "void", "setupRegistry", "(", ")", "{", "globalStateMemento", "=", "GlobalRegistries", ".", "makeCopyOfGlobalState", "(", ")", ";", "}", "}", "</s>" ]
287
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "junit4", ".", "IInjectorProvider", ";", "import", "com", ".", "google", ".", "inject", ".", "Injector", ";", "public", "class", "ProcessorDslUiInjectorProvider", "implements", "IInjectorProvider", "{", "public", "Injector", "getInjector", "(", ")", "{", "return", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "internal", ".", "ProcessorDslActivator", ".", "getInstance", "(", ")", ".", "getInjector", "(", "\"\"", ")", ";", "}", "}", "</s>" ]
288
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ";", "import", "org", ".", "eclipse", ".", "ui", ".", "plugin", ".", "AbstractUIPlugin", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "contentassist", ".", "ITemplateProposalProvider", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "outline", ".", "actions", ".", "IOutlineContribution", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "outline", ".", "impl", ".", "OutlineFilterAndSorter", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "syntaxcoloring", ".", "DefaultAntlrTokenToAttributeIdMapper", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "syntaxcoloring", ".", "IHighlightingConfiguration", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "syntaxcoloring", ".", "ISemanticHighlightingCalculator", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "templates", ".", "XtextTemplateContextType", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "resolver", ".", "PojoResolver", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "resolver", ".", "PojoResolverFactory", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "resolver", ".", "PojoResolverFactoryBean", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "outline", ".", "FilterMappingRulesContribution", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "outline", ".", "FilterMetaStatementsContribution", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "outline", ".", "FilterOptionalFeaturesContribution", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "outline", ".", "FixedOutlineFilterAndSorter", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "resolver", ".", "WorkspacePojoResolverImpl", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "syntaxcoloring", ".", "HighlightingConfiguration", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "syntaxcoloring", ".", "SemanticHighlightingCalculator", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "syntaxcoloring", ".", "TokenToIdMapper", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "templates", ".", "ProcessorDslTemplateContextType", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "templates", ".", "ProcessorTemplateProposalProvider", ";", "import", "com", ".", "google", ".", "inject", ".", "Binder", ";", "import", "com", ".", "google", ".", "inject", ".", "name", ".", "Names", ";", "public", "class", "ProcessorDslUiModule", "extends", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "AbstractProcessorDslUiModule", "{", "public", "ProcessorDslUiModule", "(", "AbstractUIPlugin", "plugin", ")", "{", "super", "(", "plugin", ")", ";", "}", "public", "Class", "<", "?", "extends", "PojoResolverFactory", ">", "bindPojoResolverFactory", "(", ")", "{", "return", "PojoResolverFactoryBean", ".", "class", ";", "}", "public", "Class", "<", "?", "extends", "PojoResolver", ">", "bindPojoResolver", "(", ")", "{", "return", "WorkspacePojoResolverImpl", ".", "class", ";", "}", "public", "Class", "<", "?", "extends", "IHighlightingConfiguration", ">", "bindISemanticHighlightingConfiguration", "(", ")", "{", "return", "HighlightingConfiguration", ".", "class", ";", "}", "public", "Class", "<", "?", "extends", "DefaultAntlrTokenToAttributeIdMapper", ">", "bindDefaultAntlrTokenToAttributeIdMapper", "(", ")", "{", "return", "TokenToIdMapper", ".", "class", ";", "}", "public", "Class", "<", "?", "extends", "ISemanticHighlightingCalculator", ">", "bindISemanticHighlightingCalculator", "(", ")", "{", "return", "SemanticHighlightingCalculator", ".", "class", ";", "}", "public", "Class", "<", "?", "extends", "OutlineFilterAndSorter", ">", "bindOutlineFilterAndSorter", "(", ")", "{", "return", "FixedOutlineFilterAndSorter", ".", "class", ";", "}", "public", "void", "configureFilterOptionalFeaturesOutlineContribution", "(", "Binder", "binder", ")", "{", "binder", ".", "bind", "(", "IOutlineContribution", ".", "class", ")", ".", "annotatedWith", "(", "Names", ".", "named", "(", "\"\"", ")", ")", ".", "to", "(", "FilterOptionalFeaturesContribution", ".", "class", ")", ";", "}", "public", "void", "configureFilterMetaStatementsOutlineContribution", "(", "Binder", "binder", ")", "{", "binder", ".", "bind", "(", "IOutlineContribution", ".", "class", ")", ".", "annotatedWith", "(", "Names", ".", "named", "(", "\"\"", ")", ")", ".", "to", "(", "FilterMetaStatementsContribution", ".", "class", ")", ";", "}", "public", "void", "configureFilterMappingRulesOutlineContribution", "(", "Binder", "binder", ")", "{", "binder", ".", "bind", "(", "IOutlineContribution", ".", "class", ")", ".", "annotatedWith", "(", "Names", ".", "named", "(", "\"\"", ")", ")", ".", "to", "(", "FilterMappingRulesContribution", ".", "class", ")", ";", "}", "@", "Override", "public", "void", "configure", "(", "Binder", "binder", ")", "{", "super", ".", "configure", "(", "binder", ")", ";", "binder", ".", "bind", "(", "XtextTemplateContextType", ".", "class", ")", ".", "to", "(", "ProcessorDslTemplateContextType", ".", "class", ")", ";", "}", "@", "Override", "public", "Class", "<", "?", "extends", "ITemplateProposalProvider", ">", "bindITemplateProposalProvider", "(", ")", "{", "return", "ProcessorTemplateProposalProvider", ".", "class", ";", "}", "}", "</s>" ]
289
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "quickfix", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "quickfix", ".", "DefaultQuickfixProvider", ";", "public", "class", "ProcessorDslQuickfixProvider", "extends", "DefaultQuickfixProvider", "{", "}", "</s>" ]
290
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "syntaxcoloring", ";", "import", "org", ".", "eclipse", ".", "swt", ".", "SWT", ";", "import", "org", ".", "eclipse", ".", "swt", ".", "graphics", ".", "RGB", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "syntaxcoloring", ".", "DefaultHighlightingConfiguration", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "syntaxcoloring", ".", "IHighlightingConfigurationAcceptor", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "utils", ".", "TextStyle", ";", "public", "class", "HighlightingConfiguration", "extends", "DefaultHighlightingConfiguration", "{", "public", "final", "static", "String", "PUNCTATION", "=", "\"punctation\"", ";", "public", "final", "static", "String", "TYPE", "=", "\"type\"", ";", "public", "static", "final", "String", "DEFAULT", "=", "\"default\"", ";", "public", "final", "static", "String", "NAME", "=", "\"name\"", ";", "public", "static", "final", "String", "COMMENT", "=", "\"comment\"", ";", "public", "static", "final", "String", "CONSTANT", "=", "\"constant\"", ";", "public", "static", "final", "String", "IDENTIFIER", "=", "\"identifier\"", ";", "public", "static", "final", "String", "COLUMN", "=", "\"column\"", ";", "public", "static", "final", "String", "DATABASE_COLUMN", "=", "\"dbcolumn\"", ";", "public", "static", "final", "String", "DATABASE_TABLE", "=", "\"dbtable\"", ";", "public", "final", "static", "String", "FILTER", "=", "\"filter\"", ";", "public", "final", "static", "String", "META_TYPE", "=", "\"metatype\"", ";", "public", "final", "static", "String", "META_IDENT", "=", "\"metaident\"", ";", "public", "void", "configure", "(", "IHighlightingConfigurationAcceptor", "acceptor", ")", "{", "acceptor", ".", "acceptDefaultHighlighting", "(", "PUNCTATION", ",", "\"\"", ",", "punctationStyle", "(", ")", ")", ";", "acceptor", ".", "acceptDefaultHighlighting", "(", "TYPE", ",", "\"\"", ",", "typeStyle", "(", ")", ")", ";", "acceptor", ".", "acceptDefaultHighlighting", "(", "COMMENT", ",", "\"Comment\"", ",", "commentStyle", "(", ")", ")", ";", "acceptor", ".", "acceptDefaultHighlighting", "(", "DEFAULT", ",", "\"Default\"", ",", "defaultStyle", "(", ")", ")", ";", "acceptor", ".", "acceptDefaultHighlighting", "(", "CONSTANT", ",", "\"Constant\"", ",", "constantStyle", "(", ")", ")", ";", "acceptor", ".", "acceptDefaultHighlighting", "(", "IDENTIFIER", ",", "\"Identifier\"", ",", "identifierStyle", "(", ")", ")", ";", "acceptor", ".", "acceptDefaultHighlighting", "(", "COLUMN", ",", "\"Column\"", ",", "columnStyle", "(", ")", ")", ";", "acceptor", ".", "acceptDefaultHighlighting", "(", "DATABASE_COLUMN", ",", "\"\"", ",", "databaseColumnStyle", "(", ")", ")", ";", "acceptor", ".", "acceptDefaultHighlighting", "(", "DATABASE_TABLE", ",", "\"\"", ",", "databaseTableStyle", "(", ")", ")", ";", "acceptor", ".", "acceptDefaultHighlighting", "(", "NAME", ",", "\"\"", ",", "nameStyle", "(", ")", ")", ";", "acceptor", ".", "acceptDefaultHighlighting", "(", "FILTER", ",", "\"Filters\"", ",", "filterStyle", "(", ")", ")", ";", "acceptor", ".", "acceptDefaultHighlighting", "(", "META_TYPE", ",", "\"Meta", "type\"", ",", "metaTypeStyle", "(", ")", ")", ";", "acceptor", ".", "acceptDefaultHighlighting", "(", "META_IDENT", ",", "\"\"", ",", "metaIdentStyle", "(", ")", ")", ";", "}", "public", "TextStyle", "punctationStyle", "(", ")", "{", "TextStyle", "textStyle", "=", "defaultStyle", "(", ")", ";", "textStyle", ".", "setColor", "(", "new", "RGB", "(", "100", ",", "100", ",", "100", ")", ")", ";", "return", "textStyle", ";", "}", "public", "TextStyle", "typeStyle", "(", ")", "{", "TextStyle", "textStyle", "=", "defaultStyle", "(", ")", ";", "textStyle", ".", "setStyle", "(", "SWT", ".", "ITALIC", ")", ";", "return", "textStyle", ";", "}", "public", "TextStyle", "constantStyle", "(", ")", "{", "TextStyle", "textStyle", "=", "defaultStyle", "(", ")", ";", "textStyle", ".", "setColor", "(", "new", "RGB", "(", "42", ",", "0", ",", "255", ")", ")", ";", "return", "textStyle", ";", "}", "public", "TextStyle", "columnStyle", "(", ")", "{", "TextStyle", "textStyle", "=", "defaultStyle", "(", ")", ";", "textStyle", ".", "setColor", "(", "new", "RGB", "(", "42", ",", "0", ",", "255", ")", ")", ";", "return", "textStyle", ";", "}", "public", "TextStyle", "identifierStyle", "(", ")", "{", "TextStyle", "textStyle", "=", "defaultStyle", "(", ")", ";", "textStyle", ".", "setColor", "(", "new", "RGB", "(", "42", ",", "0", ",", "255", ")", ")", ";", "return", "textStyle", ";", "}", "public", "TextStyle", "databaseColumnStyle", "(", ")", "{", "TextStyle", "textStyle", "=", "defaultStyle", "(", ")", ";", "textStyle", ".", "setColor", "(", "new", "RGB", "(", "165", ",", "42", ",", "42", ")", ")", ";", "return", "textStyle", ";", "}", "public", "TextStyle", "databaseTableStyle", "(", ")", "{", "TextStyle", "textStyle", "=", "defaultStyle", "(", ")", ";", "textStyle", ".", "setColor", "(", "new", "RGB", "(", "165", ",", "42", ",", "42", ")", ")", ";", "return", "textStyle", ";", "}", "public", "TextStyle", "metatTypeStyle", "(", ")", "{", "TextStyle", "textStyle", "=", "defaultStyle", "(", ")", ";", "textStyle", ".", "setColor", "(", "new", "RGB", "(", "139", ",", "105", ",", "20", ")", ")", ";", "return", "textStyle", ";", "}", "public", "TextStyle", "commentStyle", "(", ")", "{", "TextStyle", "textStyle", "=", "defaultStyle", "(", ")", ";", "textStyle", ".", "setColor", "(", "new", "RGB", "(", "63", ",", "127", ",", "95", ")", ")", ";", "return", "textStyle", ";", "}", "public", "TextStyle", "defaultStyle", "(", ")", "{", "TextStyle", "textStyle", "=", "new", "TextStyle", "(", ")", ";", "textStyle", ".", "setStyle", "(", "SWT", ".", "NORMAL", ")", ";", "textStyle", ".", "setColor", "(", "new", "RGB", "(", "0", ",", "0", ",", "0", ")", ")", ";", "return", "textStyle", ";", "}", "public", "TextStyle", "nameStyle", "(", ")", "{", "TextStyle", "textStyle", "=", "defaultStyle", "(", ")", ";", "textStyle", ".", "setColor", "(", "new", "RGB", "(", "127", ",", "0", ",", "85", ")", ")", ";", "textStyle", ".", "setStyle", "(", "SWT", ".", "BOLD", ")", ";", "return", "textStyle", ";", "}", "public", "TextStyle", "filterStyle", "(", ")", "{", "TextStyle", "textStyle", "=", "defaultStyle", "(", ")", ";", "textStyle", ".", "setStyle", "(", "SWT", ".", "ITALIC", ")", ";", "return", "textStyle", ";", "}", "public", "TextStyle", "metaTypeStyle", "(", ")", "{", "TextStyle", "textStyle", "=", "defaultStyle", "(", ")", ";", "textStyle", ".", "setColor", "(", "new", "RGB", "(", "210", ",", "105", ",", "30", ")", ")", ";", "return", "textStyle", ";", "}", "public", "TextStyle", "metaIdentStyle", "(", ")", "{", "TextStyle", "textStyle", "=", "defaultStyle", "(", ")", ";", "textStyle", ".", "setColor", "(", "new", "RGB", "(", "34", ",", "139", ",", "34", ")", ")", ";", "return", "textStyle", ";", "}", "}", "</s>" ]
291
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "syntaxcoloring", ";", "import", "java", ".", "util", ".", "Iterator", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "common", ".", "util", ".", "EList", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "util", ".", "EcoreUtil", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "nodemodel", ".", "ICompositeNode", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "nodemodel", ".", "INode", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "nodemodel", ".", "util", ".", "NodeModelUtils", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "nodemodel", ".", "util", ".", "NodeTreeIterator", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "resource", ".", "XtextResource", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "syntaxcoloring", ".", "IHighlightedPositionAcceptor", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "syntaxcoloring", ".", "ISemanticHighlightingCalculator", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Column", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ColumnUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Constant", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ConstantUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "DatabaseColumn", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "DatabaseTable", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Identifier", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "IdentifierUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingColumn", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingItem", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingRule", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MetaStatement", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "OptionalFeature", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "PojoDefinition", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "TableDefinition", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "TableUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "resolver", ".", "PojoResolver", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "resolver", ".", "PojoResolverFactory", ";", "import", "com", ".", "google", ".", "inject", ".", "Inject", ";", "public", "class", "SemanticHighlightingCalculator", "implements", "ISemanticHighlightingCalculator", "{", "public", "static", "final", "String", "CARET", "=", "\"^\"", ";", "public", "static", "final", "String", "STRING", "=", "\"$\"", ";", "@", "Inject", "PojoResolver", "pojoResolver", ";", "@", "Inject", "PojoResolverFactory", "pojoResolverFactory", ";", "@", "Override", "public", "void", "provideHighlightingFor", "(", "XtextResource", "resource", ",", "IHighlightedPositionAcceptor", "acceptor", ")", "{", "if", "(", "pojoResolverFactory", "!=", "null", "&&", "pojoResolverFactory", ".", "getPojoResolver", "(", ")", "==", "null", ")", "pojoResolverFactory", ".", "setPojoResolver", "(", "pojoResolver", ")", ";", "if", "(", "resource", "==", "null", ")", "return", ";", "Iterator", "<", "EObject", ">", "iter", "=", "EcoreUtil", ".", "getAllContents", "(", "resource", ",", "true", ")", ";", "while", "(", "iter", ".", "hasNext", "(", ")", ")", "{", "EObject", "current", "=", "iter", ".", "next", "(", ")", ";", "if", "(", "current", "instanceof", "MetaStatement", ")", "{", "MetaStatement", "statement", "=", "(", "MetaStatement", ")", "current", ";", "if", "(", "statement", ".", "getName", "(", ")", "!=", "null", ")", "{", "ICompositeNode", "node", "=", "NodeModelUtils", ".", "getNode", "(", "current", ")", ";", "acceptor", ".", "addPosition", "(", "node", ".", "getOffset", "(", ")", ",", "statement", ".", "getName", "(", ")", ".", "length", "(", ")", ",", "HighlightingConfiguration", ".", "NAME", ")", ";", "provideHighlightingForFilters", "(", "statement", ".", "getFilters", "(", ")", ",", "node", ",", "acceptor", ")", ";", "}", "}", "else", "if", "(", "current", "instanceof", "MappingRule", ")", "{", "MappingRule", "rule", "=", "(", "MappingRule", ")", "current", ";", "if", "(", "rule", ".", "getName", "(", ")", "!=", "null", ")", "{", "ICompositeNode", "node", "=", "NodeModelUtils", ".", "getNode", "(", "current", ")", ";", "acceptor", ".", "addPosition", "(", "node", ".", "getOffset", "(", ")", ",", "rule", ".", "getName", "(", ")", ".", "length", "(", ")", ",", "HighlightingConfiguration", ".", "NAME", ")", ";", "provideHighlightingForFilters", "(", "rule", ".", "getFilters", "(", ")", ",", "node", ",", "acceptor", ")", ";", "}", "}", "else", "if", "(", "current", "instanceof", "OptionalFeature", ")", "{", "OptionalFeature", "feature", "=", "(", "OptionalFeature", ")", "current", ";", "if", "(", "feature", ".", "getName", "(", ")", "!=", "null", ")", "{", "ICompositeNode", "node", "=", "NodeModelUtils", ".", "getNode", "(", "current", ")", ";", "acceptor", ".", "addPosition", "(", "node", ".", "getOffset", "(", ")", ",", "feature", ".", "getName", "(", ")", ".", "length", "(", ")", ",", "HighlightingConfiguration", ".", "NAME", ")", ";", "provideHighlightingForFilters", "(", "feature", ".", "getFilters", "(", ")", ",", "node", ",", "acceptor", ")", ";", "}", "}", "else", "if", "(", "current", "instanceof", "Constant", ")", "{", "ICompositeNode", "node", "=", "NodeModelUtils", ".", "getNode", "(", "current", ")", ";", "provideHighlightingForFragment", "(", "HighlightingConfiguration", ".", "CONSTANT", ",", "node", ",", "acceptor", ")", ";", "}", "else", "if", "(", "current", "instanceof", "Identifier", ")", "{", "ICompositeNode", "node", "=", "NodeModelUtils", ".", "getNode", "(", "current", ")", ";", "provideHighlightingForFragment", "(", "HighlightingConfiguration", ".", "IDENTIFIER", ",", "node", ",", "acceptor", ")", ";", "}", "else", "if", "(", "current", "instanceof", "Column", ")", "{", "ICompositeNode", "node", "=", "NodeModelUtils", ".", "getNode", "(", "current", ")", ";", "provideHighlightingForFragment", "(", "HighlightingConfiguration", ".", "COLUMN", ",", "node", ",", "acceptor", ")", ";", "}", "else", "if", "(", "current", "instanceof", "MappingColumn", ")", "{", "ICompositeNode", "node", "=", "NodeModelUtils", ".", "getNode", "(", "current", ")", ";", "acceptor", ".", "addPosition", "(", "node", ".", "getOffset", "(", ")", ",", "node", ".", "getLength", "(", ")", ",", "HighlightingConfiguration", ".", "COLUMN", ")", ";", "}", "else", "if", "(", "current", "instanceof", "MappingItem", ")", "{", "ICompositeNode", "node", "=", "NodeModelUtils", ".", "getNode", "(", "current", ")", ";", "provideHighlightingForMappingItem", "(", "node", ",", "acceptor", ")", ";", "}", "else", "if", "(", "current", "instanceof", "DatabaseColumn", ")", "{", "ICompositeNode", "node", "=", "NodeModelUtils", ".", "getNode", "(", "current", ")", ";", "acceptor", ".", "addPosition", "(", "node", ".", "getOffset", "(", ")", ",", "node", ".", "getLength", "(", ")", ",", "HighlightingConfiguration", ".", "DATABASE_COLUMN", ")", ";", "}", "else", "if", "(", "current", "instanceof", "DatabaseTable", ")", "{", "ICompositeNode", "node", "=", "NodeModelUtils", ".", "getNode", "(", "current", ")", ";", "acceptor", ".", "addPosition", "(", "node", ".", "getOffset", "(", ")", ",", "node", ".", "getLength", "(", ")", ",", "HighlightingConfiguration", ".", "DATABASE_TABLE", ")", ";", "}", "else", "if", "(", "current", "instanceof", "PojoDefinition", ")", "{", "ICompositeNode", "node", "=", "NodeModelUtils", ".", "getNode", "(", "current", ")", ";", "PojoDefinition", "pojo", "=", "(", "PojoDefinition", ")", "current", ";", "provideHighlightingForPojo", "(", "null", ",", "pojo", ".", "getName", "(", ")", ",", "node", ",", "acceptor", ")", ";", "}", "else", "if", "(", "current", "instanceof", "ColumnUsage", ")", "{", "ICompositeNode", "node", "=", "NodeModelUtils", ".", "getNode", "(", "current", ")", ";", "ColumnUsage", "usage", "=", "(", "ColumnUsage", ")", "current", ";", "MetaStatement", "statement", "=", "usage", ".", "getStatement", "(", ")", ";", "PojoDefinition", "pojo", "=", "usage", ".", "getPojo", "(", ")", ";", "if", "(", "statement", "!=", "null", "&&", "pojo", "!=", "null", ")", "provideHighlightingForPojo", "(", "statement", ".", "getName", "(", ")", ",", "pojo", ".", "getName", "(", ")", ",", "node", ",", "acceptor", ")", ";", "}", "else", "if", "(", "current", "instanceof", "IdentifierUsage", ")", "{", "ICompositeNode", "node", "=", "NodeModelUtils", ".", "getNode", "(", "current", ")", ";", "IdentifierUsage", "usage", "=", "(", "IdentifierUsage", ")", "current", ";", "MetaStatement", "statement", "=", "usage", ".", "getStatement", "(", ")", ";", "PojoDefinition", "pojo", "=", "usage", ".", "getPojo", "(", ")", ";", "if", "(", "statement", "!=", "null", "&&", "pojo", "!=", "null", ")", "provideHighlightingForPojo", "(", "statement", ".", "getName", "(", ")", ",", "pojo", ".", "getName", "(", ")", ",", "node", ",", "acceptor", ")", ";", "}", "else", "if", "(", "current", "instanceof", "ConstantUsage", ")", "{", "ICompositeNode", "node", "=", "NodeModelUtils", ".", "getNode", "(", "current", ")", ";", "ConstantUsage", "usage", "=", "(", "ConstantUsage", ")", "current", ";", "MetaStatement", "statement", "=", "usage", ".", "getStatement", "(", ")", ";", "PojoDefinition", "pojo", "=", "usage", ".", "getPojo", "(", ")", ";", "if", "(", "statement", "!=", "null", "&&", "pojo", "!=", "null", ")", "provideHighlightingForPojo", "(", "statement", ".", "getName", "(", ")", ",", "pojo", ".", "getName", "(", ")", ",", "node", ",", "acceptor", ")", ";", "}", "else", "if", "(", "current", "instanceof", "MappingUsage", ")", "{", "ICompositeNode", "node", "=", "NodeModelUtils", ".", "getNode", "(", "current", ")", ";", "MappingUsage", "usage", "=", "(", "MappingUsage", ")", "current", ";", "MappingRule", "rule", "=", "usage", ".", "getStatement", "(", ")", ";", "PojoDefinition", "pojo", "=", "usage", ".", "getPojo", "(", ")", ";", "if", "(", "rule", "!=", "null", "&&", "pojo", "!=", "null", ")", "provideHighlightingForPojo", "(", "rule", ".", "getName", "(", ")", ",", "pojo", ".", "getName", "(", ")", ",", "node", ",", "acceptor", ")", ";", "}", "else", "if", "(", "current", "instanceof", "TableDefinition", ")", "{", "ICompositeNode", "node", "=", "NodeModelUtils", ".", "getNode", "(", "current", ")", ";", "TableDefinition", "table", "=", "(", "TableDefinition", ")", "current", ";", "provideHighlightingForTable", "(", "null", ",", "table", ".", "getName", "(", ")", ",", "node", ",", "acceptor", ")", ";", "}", "else", "if", "(", "current", "instanceof", "TableUsage", ")", "{", "ICompositeNode", "node", "=", "NodeModelUtils", ".", "getNode", "(", "current", ")", ";", "TableUsage", "usage", "=", "(", "TableUsage", ")", "current", ";", "MetaStatement", "statement", "=", "usage", ".", "getStatement", "(", ")", ";", "TableDefinition", "table", "=", "usage", ".", "getTable", "(", ")", ";", "if", "(", "statement", "!=", "null", "&&", "table", "!=", "null", ")", "provideHighlightingForTable", "(", "statement", ".", "getName", "(", ")", ",", "table", ".", "getName", "(", ")", ",", "node", ",", "acceptor", ")", ";", "}", "}", "}", "private", "void", "provideHighlightingForFilters", "(", "EList", "<", "String", ">", "filters", ",", "ICompositeNode", "node", ",", "IHighlightedPositionAcceptor", "acceptor", ")", "{", "if", "(", "filters", "!=", "null", "&&", "!", "filters", ".", "isEmpty", "(", ")", ")", "{", "int", "count", "=", "filters", ".", "size", "(", ")", ";", "Iterator", "<", "INode", ">", "iterator", "=", "new", "NodeTreeIterator", "(", "node", ")", ";", "while", "(", "iterator", ".", "hasNext", "(", ")", ")", "{", "INode", "inode", "=", "iterator", ".", "next", "(", ")", ";", "if", "(", "filters", ".", "contains", "(", "inode", ".", "getText", "(", ")", ")", ")", "{", "acceptor", ".", "addPosition", "(", "inode", ".", "getOffset", "(", ")", ",", "inode", ".", "getLength", "(", ")", ",", "HighlightingConfiguration", ".", "FILTER", ")", ";", "if", "(", "--", "count", "<=", "0", ")", "return", ";", "}", "}", "}", "}", "private", "void", "provideHighlightingForPojo", "(", "String", "name", ",", "String", "pojo", ",", "ICompositeNode", "node", ",", "IHighlightedPositionAcceptor", "acceptor", ")", "{", "if", "(", "name", "==", "null", "&&", "pojo", "==", "null", ")", "return", ";", "Iterator", "<", "INode", ">", "iterator", "=", "new", "NodeTreeIterator", "(", "node", ")", ";", "while", "(", "iterator", ".", "hasNext", "(", ")", ")", "{", "INode", "inode", "=", "iterator", ".", "next", "(", ")", ";", "if", "(", "name", "!=", "null", "&&", "name", ".", "contains", "(", "inode", ".", "getText", "(", ")", ")", ")", "{", "acceptor", ".", "addPosition", "(", "inode", ".", "getOffset", "(", ")", ",", "inode", ".", "getLength", "(", ")", ",", "HighlightingConfiguration", ".", "NAME", ")", ";", "if", "(", "pojo", "==", "null", ")", "return", ";", "}", "if", "(", "pojo", "!=", "null", "&&", "pojo", ".", "contains", "(", "inode", ".", "getText", "(", ")", ")", ")", "{", "acceptor", ".", "addPosition", "(", "inode", ".", "getOffset", "(", ")", ",", "inode", ".", "getLength", "(", ")", ",", "HighlightingConfiguration", ".", "IDENTIFIER", ")", ";", "return", ";", "}", "}", "}", "private", "void", "provideHighlightingForTable", "(", "String", "name", ",", "String", "table", ",", "ICompositeNode", "node", ",", "IHighlightedPositionAcceptor", "acceptor", ")", "{", "if", "(", "name", "==", "null", "&&", "table", "==", "null", ")", "return", ";", "Iterator", "<", "INode", ">", "iterator", "=", "new", "NodeTreeIterator", "(", "node", ")", ";", "while", "(", "iterator", ".", "hasNext", "(", ")", ")", "{", "INode", "inode", "=", "iterator", ".", "next", "(", ")", ";", "if", "(", "name", "!=", "null", "&&", "name", ".", "contains", "(", "inode", ".", "getText", "(", ")", ")", ")", "{", "acceptor", ".", "addPosition", "(", "inode", ".", "getOffset", "(", ")", ",", "inode", ".", "getLength", "(", ")", ",", "HighlightingConfiguration", ".", "NAME", ")", ";", "if", "(", "table", "==", "null", ")", "return", ";", "}", "if", "(", "table", "!=", "null", "&&", "table", ".", "contains", "(", "inode", ".", "getText", "(", ")", ")", ")", "{", "acceptor", ".", "addPosition", "(", "inode", ".", "getOffset", "(", ")", ",", "inode", ".", "getLength", "(", ")", ",", "HighlightingConfiguration", ".", "IDENTIFIER", ")", ";", "return", ";", "}", "}", "}", "private", "void", "provideHighlightingForFragment", "(", "String", "defaultColor", ",", "ICompositeNode", "node", ",", "IHighlightedPositionAcceptor", "acceptor", ")", "{", "Iterator", "<", "INode", ">", "iterator", "=", "new", "NodeTreeIterator", "(", "node", ")", ";", "int", "index", "=", "0", ";", "while", "(", "iterator", ".", "hasNext", "(", ")", ")", "{", "INode", "inode", "=", "iterator", ".", "next", "(", ")", ";", "if", "(", "CARET", ".", "equals", "(", "inode", ".", "getText", "(", ")", ")", ")", "{", "index", "++", ";", "continue", ";", "}", "switch", "(", "index", ")", "{", "case", "1", ":", "acceptor", ".", "addPosition", "(", "inode", ".", "getOffset", "(", ")", ",", "inode", ".", "getLength", "(", ")", ",", "HighlightingConfiguration", ".", "META_TYPE", ")", ";", "break", ";", "case", "2", ":", "acceptor", ".", "addPosition", "(", "inode", ".", "getOffset", "(", ")", ",", "inode", ".", "getLength", "(", ")", ",", "HighlightingConfiguration", ".", "META_IDENT", ")", ";", "break", ";", "default", ":", "acceptor", ".", "addPosition", "(", "inode", ".", "getOffset", "(", ")", ",", "inode", ".", "getLength", "(", ")", ",", "defaultColor", ")", ";", "}", "}", "}", "private", "void", "provideHighlightingForMappingItem", "(", "ICompositeNode", "node", ",", "IHighlightedPositionAcceptor", "acceptor", ")", "{", "Iterator", "<", "INode", ">", "iterator", "=", "new", "NodeTreeIterator", "(", "node", ")", ";", "int", "index", "=", "0", ";", "while", "(", "iterator", ".", "hasNext", "(", ")", ")", "{", "INode", "inode", "=", "iterator", ".", "next", "(", ")", ";", "if", "(", "STRING", ".", "equals", "(", "inode", ".", "getText", "(", ")", ")", ")", "{", "index", "++", ";", "continue", ";", "}", "switch", "(", "index", ")", "{", "case", "1", ":", "acceptor", ".", "addPosition", "(", "inode", ".", "getOffset", "(", ")", ",", "inode", ".", "getLength", "(", ")", ",", "HighlightingConfiguration", ".", "META_TYPE", ")", ";", "break", ";", "default", ":", "acceptor", ".", "addPosition", "(", "inode", ".", "getOffset", "(", ")", ",", "inode", ".", "getLength", "(", ")", ",", "HighlightingConfiguration", ".", "IDENTIFIER", ")", ";", "}", "}", "}", "}", "</s>" ]
292
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "syntaxcoloring", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "syntaxcoloring", ".", "DefaultAntlrTokenToAttributeIdMapper", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "parser", ".", "antlr", ".", "internal", ".", "InternalProcessorDslLexer", ";", "public", "class", "TokenToIdMapper", "extends", "DefaultAntlrTokenToAttributeIdMapper", "{", "@", "Override", "protected", "String", "calculateId", "(", "String", "tokenName", ",", "int", "tokenType", ")", "{", "if", "(", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_BAND", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_RBRACE", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_CARET", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_MORE_THAN", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_SEMICOLON", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_PLUS", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_OR", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_HASH", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_COMMA", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_AND", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_QUESTI", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_NOT", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_MINUS", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_COLON", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_STRING", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_LPAREN", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_EQUALS", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_LBRACE", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_RPAREN", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_BOR", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_LESS_THAN", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_PERCENT", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_AT", ")", "return", "HighlightingConfiguration", ".", "PUNCTATION", ";", "if", "(", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_ML_COMMENT", "||", "tokenType", "==", "InternalProcessorDslLexer", ".", "RULE_SL_COMMENT", ")", "return", "HighlightingConfiguration", ".", "COMMENT", ";", "if", "(", "tokenName", ".", "equals", "(", "\"'BOPT'\"", ")", "||", "tokenName", ".", "equals", "(", "\"'OUT'\"", ")", "||", "tokenName", ".", "equals", "(", "\"'SOPT'\"", ")", "||", "tokenName", ".", "equals", "(", "\"'OPT'\"", ")", "||", "tokenName", ".", "equals", "(", "\"'QRY'\"", ")", "||", "tokenName", ".", "equals", "(", "\"'IOPT'\"", ")", "||", "tokenName", ".", "equals", "(", "\"'LOPT'\"", ")", "||", "tokenName", ".", "equals", "(", "\"'CRUD'\"", ")", "||", "tokenName", ".", "equals", "(", "\"'CALL'\"", ")", "||", "tokenName", ".", "equals", "(", "\"'pojo'\"", ")", "||", "tokenName", ".", "equals", "(", "\"'col'\"", ")", "||", "tokenName", ".", "equals", "(", "\"'ident'\"", ")", "||", "tokenName", ".", "equals", "(", "\"'const'\"", ")", "||", "tokenName", ".", "equals", "(", "\"'out'\"", ")", "||", "tokenName", ".", "equals", "(", "\"'table'\"", ")", "||", "tokenName", ".", "equals", "(", "\"'dbcol'\"", ")", "||", "tokenName", ".", "equals", "(", "\"'prefix'\"", ")", "||", "tokenName", ".", "startsWith", "(", "\"'database\"", ")", "||", "tokenName", ".", "startsWith", "(", "\"'resolve\"", ")", ")", "return", "HighlightingConfiguration", ".", "TYPE", ";", "return", "HighlightingConfiguration", ".", "DEFAULT", ";", "}", "}", "</s>" ]
293
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "templates", ";", "import", "java", ".", "util", ".", "Iterator", ";", "import", "java", ".", "util", ".", "List", ";", "import", "java", ".", "util", ".", "Map", ".", "Entry", ";", "import", "java", ".", "util", ".", "TreeMap", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "ecore", ".", "EObject", ";", "import", "org", ".", "eclipse", ".", "jface", ".", "text", ".", "templates", ".", "SimpleTemplateVariableResolver", ";", "import", "org", ".", "eclipse", ".", "jface", ".", "text", ".", "templates", ".", "TemplateContext", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "EcoreUtil2", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "resource", ".", "IEObjectDescription", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "scoping", ".", "IScope", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "scoping", ".", "IScopeProvider", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "templates", ".", "XtextTemplateContext", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "templates", ".", "XtextTemplateContextType", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Artifacts", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MetaStatement", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "TableDefinition", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "TableUsage", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "resolver", ".", "DbResolver", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "resolver", ".", "PojoResolver", ";", "import", "com", ".", "google", ".", "inject", ".", "Inject", ";", "public", "class", "ProcessorDslTemplateContextType", "extends", "XtextTemplateContextType", "{", "@", "Inject", "PojoResolver", "pojoResolver", ";", "@", "Inject", "DbResolver", "dbResolver", ";", "@", "Inject", "IScopeProvider", "scopeProvider", ";", "@", "Override", "protected", "void", "addDefaultTemplateVariables", "(", ")", "{", "super", ".", "addDefaultTemplateVariables", "(", ")", ";", "super", ".", "addResolver", "(", "new", "DbTableResolver", "(", ")", ")", ";", "super", ".", "addResolver", "(", "new", "PojoColumnResolver", "(", ")", ")", ";", "super", ".", "addResolver", "(", "new", "DbSelectColumnResolver", "(", ")", ")", ";", "super", ".", "addResolver", "(", "new", "DbInsertColumnResolver", "(", ")", ")", ";", "super", ".", "addResolver", "(", "new", "DbUpdateColumnResolver", "(", ")", ")", ";", "super", ".", "addResolver", "(", "new", "DbCondColumnResolver", "(", ")", ")", ";", "super", ".", "addResolver", "(", "new", "DbVerUpdateColumnResolver", "(", ")", ")", ";", "super", ".", "addResolver", "(", "new", "DbOptUpdateColumnResolver", "(", ")", ")", ";", "super", ".", "addResolver", "(", "new", "DbOptCondColumnResolver", "(", ")", ")", ";", "super", ".", "addResolver", "(", "new", "PojoDefinitionsResolver", "(", ")", ")", ";", "super", ".", "addResolver", "(", "new", "TableDefinitionsResolver", "(", ")", ")", ";", "}", "protected", "Artifacts", "getArtifacts", "(", "XtextTemplateContext", "xtextTemplateContext", ")", "{", "if", "(", "xtextTemplateContext", "==", "null", ")", "return", "null", ";", "EObject", "object", "=", "xtextTemplateContext", ".", "getContentAssistContext", "(", ")", ".", "getCurrentModel", "(", ")", ";", "return", "EcoreUtil2", ".", "getContainerOfType", "(", "object", ",", "Artifacts", ".", "class", ")", ";", "}", "protected", "MetaStatement", "getMetaStatement", "(", "XtextTemplateContext", "xtextTemplateContext", ")", "{", "if", "(", "xtextTemplateContext", "==", "null", ")", "return", "null", ";", "EObject", "object", "=", "xtextTemplateContext", ".", "getContentAssistContext", "(", ")", ".", "getCurrentModel", "(", ")", ";", "MetaStatement", "statement", "=", "EcoreUtil2", ".", "getContainerOfType", "(", "object", ",", "MetaStatement", ".", "class", ")", ";", "return", "statement", ";", "}", "protected", "TableDefinition", "getTableDefinition", "(", "MetaStatement", "statement", ")", "{", "if", "(", "statement", "==", "null", ")", "return", "null", ";", "TableUsage", "usage", "=", "null", ";", "Artifacts", "artifacts", "=", "EcoreUtil2", ".", "getContainerOfType", "(", "statement", ",", "Artifacts", ".", "class", ")", ";", "IScope", "scope", "=", "scopeProvider", ".", "getScope", "(", "artifacts", ",", "ProcessorDslPackage", ".", "Literals", ".", "ARTIFACTS__TABLE_USAGES", ")", ";", "Iterable", "<", "IEObjectDescription", ">", "iterable", "=", "scope", ".", "getAllElements", "(", ")", ";", "for", "(", "Iterator", "<", "IEObjectDescription", ">", "iter", "=", "iterable", ".", "iterator", "(", ")", ";", "iter", ".", "hasNext", "(", ")", ";", ")", "{", "IEObjectDescription", "description", "=", "iter", ".", "next", "(", ")", ";", "if", "(", "ProcessorDslPackage", ".", "Literals", ".", "TABLE_USAGE", ".", "getName", "(", ")", ".", "equals", "(", "description", ".", "getEClass", "(", ")", ".", "getName", "(", ")", ")", ")", "{", "TableUsage", "tableUsage", "=", "(", "TableUsage", ")", "artifacts", ".", "eResource", "(", ")", ".", "getResourceSet", "(", ")", ".", "getEObject", "(", "description", ".", "getEObjectURI", "(", ")", ",", "true", ")", ";", "if", "(", "tableUsage", ".", "getStatement", "(", ")", ".", "getName", "(", ")", ".", "equals", "(", "statement", ".", "getName", "(", ")", ")", ")", "{", "usage", "=", "tableUsage", ";", "break", ";", "}", "}", "}", "if", "(", "usage", "!=", "null", "&&", "usage", ".", "getTable", "(", ")", "!=", "null", "&&", "usage", ".", "getTable", "(", ")", ".", "getName", "(", ")", "!=", "null", ")", "{", "scope", "=", "scopeProvider", ".", "getScope", "(", "artifacts", ",", "ProcessorDslPackage", ".", "Literals", ".", "ARTIFACTS__TABLES", ")", ";", "iterable", "=", "scope", ".", "getAllElements", "(", ")", ";", "for", "(", "Iterator", "<", "IEObjectDescription", ">", "iter", "=", "iterable", ".", "iterator", "(", ")", ";", "iter", ".", "hasNext", "(", ")", ";", ")", "{", "IEObjectDescription", "description", "=", "iter", ".", "next", "(", ")", ";", "if", "(", "ProcessorDslPackage", ".", "Literals", ".", "TABLE_DEFINITION", ".", "getName", "(", ")", ".", "equals", "(", "description", ".", "getEClass", "(", ")", ".", "getName", "(", ")", ")", ")", "{", "TableDefinition", "tableDefinition", "=", "(", "TableDefinition", ")", "artifacts", ".", "eResource", "(", ")", ".", "getResourceSet", "(", ")", ".", "getEObject", "(", "description", ".", "getEObjectURI", "(", ")", ",", "true", ")", ";", "if", "(", "usage", ".", "getTable", "(", ")", ".", "getName", "(", ")", ".", "equals", "(", "tableDefinition", ".", "getName", "(", ")", ")", ")", "{", "return", "tableDefinition", ";", "}", "}", "}", "}", "return", "null", ";", "}", "protected", "String", "toCamelCase", "(", "String", "value", ")", "{", "if", "(", "value", "==", "null", ")", "return", "null", ";", "String", "[", "]", "parts", "=", "value", ".", "split", "(", "\"_\"", ")", ";", "String", "camelCaseString", "=", "\"\"", ";", "for", "(", "String", "part", ":", "parts", ")", "{", "if", "(", "camelCaseString", ".", "length", "(", ")", "==", "0", ")", "camelCaseString", "=", "camelCaseString", "+", "part", ".", "toLowerCase", "(", ")", ";", "else", "if", "(", "part", ".", "length", "(", ")", "==", "1", ")", "camelCaseString", "=", "camelCaseString", "+", "part", ".", "toUpperCase", "(", ")", ";", "else", "if", "(", "part", ".", "length", "(", ")", ">", "1", ")", "camelCaseString", "=", "camelCaseString", "+", "part", ".", "substring", "(", "0", ",", "1", ")", ".", "toUpperCase", "(", ")", "+", "part", ".", "substring", "(", "1", ")", ".", "toLowerCase", "(", ")", ";", "}", "return", "camelCaseString", ";", "}", "protected", "String", "toCamelCase", "(", "Class", "<", "?", ">", "clazz", ")", "{", "if", "(", "clazz", "==", "null", ")", "return", "null", ";", "String", "camelCaseString", "=", "clazz", ".", "getSimpleName", "(", ")", ";", "if", "(", "camelCaseString", ".", "length", "(", ")", "==", "1", ")", "camelCaseString", "=", "camelCaseString", ".", "toLowerCase", "(", ")", ";", "else", "if", "(", "camelCaseString", ".", "length", "(", ")", ">", "1", ")", "camelCaseString", "=", "camelCaseString", ".", "substring", "(", "0", ",", "1", ")", ".", "toLowerCase", "(", ")", "+", "camelCaseString", ".", "substring", "(", "1", ")", ";", "return", "camelCaseString", ";", "}", "protected", "String", "getPojoColumns", "(", "List", "<", "String", ">", "columns", ")", "{", "if", "(", "columns", "==", "null", ")", "return", "null", ";", "StringBuilder", "builder", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "columns", ".", "size", "(", ")", ";", "i", "++", ")", "{", "builder", ".", "append", "(", "':'", ")", ".", "append", "(", "toCamelCase", "(", "columns", ".", "get", "(", "i", ")", ")", ")", ";", "if", "(", "i", "<", "columns", ".", "size", "(", ")", "-", "1", ")", "builder", ".", "append", "(", "\",", "\"", ")", ";", "}", "return", "builder", ".", "toString", "(", ")", ";", "}", "protected", "String", "getSelectColumns", "(", "List", "<", "String", ">", "columns", ")", "{", "if", "(", "columns", "==", "null", ")", "return", "null", ";", "StringBuilder", "builder", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "columns", ".", "size", "(", ")", ";", "i", "++", ")", "{", "builder", ".", "append", "(", "columns", ".", "get", "(", "i", ")", ")", ".", "append", "(", "\"", "@\"", ")", ".", "append", "(", "toCamelCase", "(", "columns", ".", "get", "(", "i", ")", ")", ")", ";", "if", "(", "i", "<", "columns", ".", "size", "(", ")", "-", "1", ")", "builder", ".", "append", "(", "\",", "\"", ")", ";", "}", "return", "builder", ".", "toString", "(", ")", ";", "}", "protected", "String", "getInsertColumns", "(", "List", "<", "String", ">", "columns", ")", "{", "if", "(", "columns", "==", "null", ")", "return", "null", ";", "StringBuilder", "builder", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "columns", ".", "size", "(", ")", ";", "i", "++", ")", "{", "builder", ".", "append", "(", "columns", ".", "get", "(", "i", ")", ")", ";", "if", "(", "i", "<", "columns", ".", "size", "(", ")", "-", "1", ")", "builder", ".", "append", "(", "\",", "\"", ")", ";", "}", "return", "builder", ".", "toString", "(", ")", ";", "}", "protected", "String", "getUpdateColumns", "(", "List", "<", "String", ">", "columns", ")", "{", "if", "(", "columns", "==", "null", ")", "return", "null", ";", "StringBuilder", "builder", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "columns", ".", "size", "(", ")", ";", "i", "++", ")", "{", "builder", ".", "append", "(", "columns", ".", "get", "(", "i", ")", ")", ".", "append", "(", "\"", "=", ":\"", ")", ".", "append", "(", "toCamelCase", "(", "columns", ".", "get", "(", "i", ")", ")", ")", ";", "if", "(", "i", "<", "columns", ".", "size", "(", ")", "-", "1", ")", "builder", ".", "append", "(", "\",", "\"", ")", ";", "}", "return", "builder", ".", "toString", "(", ")", ";", "}", "protected", "String", "getCondColumns", "(", "List", "<", "String", ">", "columns", ")", "{", "if", "(", "columns", "==", "null", ")", "return", "null", ";", "StringBuilder", "builder", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "columns", ".", "size", "(", ")", ";", "i", "++", ")", "{", "builder", ".", "append", "(", "\"n", "{&", "\"", ")", ".", "append", "(", "columns", ".", "get", "(", "i", ")", ")", ".", "append", "(", "\"", "=", ":\"", ")", ".", "append", "(", "toCamelCase", "(", "columns", ".", "get", "(", "i", ")", ")", ")", ".", "append", "(", "\"", "}\"", ")", ";", "}", "return", "builder", ".", "toString", "(", ")", ";", "}", "protected", "String", "getVerUpdateColumns", "(", "List", "<", "String", ">", "columns", ")", "{", "if", "(", "columns", "==", "null", ")", "return", "null", ";", "StringBuilder", "builder", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "columns", ".", "size", "(", ")", ";", "i", "++", ")", "{", "if", "(", "columns", ".", "get", "(", "i", ")", ".", "toUpperCase", "(", ")", ".", "indexOf", "(", "\"VER\"", ")", "==", "0", ")", "{", "builder", ".", "append", "(", "columns", ".", "get", "(", "i", ")", ")", ".", "append", "(", "\"", "=", ":\"", ")", ".", "append", "(", "toCamelCase", "(", "columns", ".", "get", "(", "i", ")", ")", ")", ".", "append", "(", "\"", "+", "1,", "\"", ")", ";", "break", ";", "}", "}", "return", "builder", ".", "toString", "(", ")", ";", "}", "protected", "String", "getOptUpdateColumns", "(", "List", "<", "String", ">", "columns", ")", "{", "if", "(", "columns", "==", "null", ")", "return", "null", ";", "boolean", "idFind", "=", "false", ";", "boolean", "verFind", "=", "false", ";", "StringBuilder", "builder", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "columns", ".", "size", "(", ")", ";", "i", "++", ")", "{", "if", "(", "!", "idFind", "&&", "(", "columns", ".", "get", "(", "i", ")", ".", "toUpperCase", "(", ")", ".", "equals", "(", "\"ID\"", ")", "||", "columns", ".", "get", "(", "i", ")", ".", "toUpperCase", "(", ")", ".", "indexOf", "(", "\"ID_\"", ")", "==", "0", ")", ")", "{", "idFind", "=", "true", ";", "continue", ";", "}", "if", "(", "!", "verFind", "&&", "columns", ".", "get", "(", "i", ")", ".", "toUpperCase", "(", ")", ".", "indexOf", "(", "\"VER\"", ")", "==", "0", ")", "{", "verFind", "=", "true", ";", "continue", ";", "}", "builder", ".", "append", "(", "columns", ".", "get", "(", "i", ")", ")", ".", "append", "(", "\"", "=", ":\"", ")", ".", "append", "(", "toCamelCase", "(", "columns", ".", "get", "(", "i", ")", ")", ")", ";", "if", "(", "i", "<", "columns", ".", "size", "(", ")", "-", "1", ")", "builder", ".", "append", "(", "\",", "\"", ")", ";", "}", "return", "builder", ".", "toString", "(", ")", ";", "}", "protected", "String", "getOptCondColumns", "(", "List", "<", "String", ">", "columns", ")", "{", "if", "(", "columns", "==", "null", ")", "return", "null", ";", "boolean", "idFind", "=", "false", ";", "boolean", "verFind", "=", "false", ";", "StringBuilder", "builder", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "int", "i", "=", "0", ";", "i", "<", "columns", ".", "size", "(", ")", ";", "i", "++", ")", "{", "if", "(", "!", "idFind", "&&", "(", "columns", ".", "get", "(", "i", ")", ".", "toUpperCase", "(", ")", ".", "equals", "(", "\"ID\"", ")", "||", "columns", ".", "get", "(", "i", ")", ".", "toUpperCase", "(", ")", ".", "indexOf", "(", "\"ID_\"", ")", "==", "0", ")", ")", "{", "idFind", "=", "true", ";", "builder", ".", "append", "(", "\"n", "{&", "\"", ")", ".", "append", "(", "columns", ".", "get", "(", "i", ")", ")", ".", "append", "(", "\"", "=", ":\"", ")", ".", "append", "(", "toCamelCase", "(", "columns", ".", "get", "(", "i", ")", ")", ")", ".", "append", "(", "\"", "}\"", ")", ";", "continue", ";", "}", "if", "(", "!", "verFind", "&&", "columns", ".", "get", "(", "i", ")", ".", "toUpperCase", "(", ")", ".", "indexOf", "(", "\"VER\"", ")", "==", "0", ")", "{", "verFind", "=", "true", ";", "builder", ".", "append", "(", "\"n", "{&", "\"", ")", ".", "append", "(", "columns", ".", "get", "(", "i", ")", ")", ".", "append", "(", "\"", "=", ":\"", ")", ".", "append", "(", "toCamelCase", "(", "columns", ".", "get", "(", "i", ")", ")", ")", ".", "append", "(", "\"", "}\"", ")", ";", "continue", ";", "}", "}", "return", "builder", ".", "toString", "(", ")", ";", "}", "protected", "String", "getPojoDefinitions", "(", "List", "<", "Class", "<", "?", ">", ">", "pojoClasses", ")", "{", "if", "(", "pojoClasses", "==", "null", ")", "return", "null", ";", "TreeMap", "<", "String", ",", "String", ">", "map", "=", "new", "TreeMap", "<", "String", ",", "String", ">", "(", ")", ";", "for", "(", "Class", "<", "?", ">", "clazz", ":", "pojoClasses", ")", "{", "map", ".", "put", "(", "toCamelCase", "(", "clazz", ")", ",", "clazz", ".", "getName", "(", ")", ")", ";", "}", "StringBuilder", "builder", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "Entry", "<", "String", ",", "String", ">", "pojo", ":", "map", ".", "entrySet", "(", ")", ")", "{", "builder", ".", "append", "(", "\"pojo", "\"", ")", ".", "append", "(", "pojo", ".", "getKey", "(", ")", ")", ".", "append", "(", "'", "'", ")", ".", "append", "(", "pojo", ".", "getValue", "(", ")", ")", ".", "append", "(", "\";n\"", ")", ";", "}", "return", "builder", ".", "toString", "(", ")", ";", "}", "protected", "String", "getTableDefinitions", "(", "List", "<", "String", ">", "tables", ")", "{", "if", "(", "tables", "==", "null", ")", "return", "null", ";", "TreeMap", "<", "String", ",", "String", ">", "map", "=", "new", "TreeMap", "<", "String", ",", "String", ">", "(", ")", ";", "for", "(", "String", "table", ":", "tables", ")", "{", "map", ".", "put", "(", "toCamelCase", "(", "table", ")", ",", "table", ")", ";", "}", "StringBuilder", "builder", "=", "new", "StringBuilder", "(", ")", ";", "for", "(", "Entry", "<", "String", ",", "String", ">", "table", ":", "map", ".", "entrySet", "(", ")", ")", "{", "builder", ".", "append", "(", "\"table", "\"", ")", ".", "append", "(", "table", ".", "getKey", "(", ")", ")", ".", "append", "(", "'", "'", ")", ".", "append", "(", "table", ".", "getValue", "(", ")", ")", ".", "append", "(", "\";n\"", ")", ";", "}", "return", "builder", ".", "toString", "(", ")", ";", "}", "public", "class", "DbTableResolver", "extends", "SimpleTemplateVariableResolver", "{", "public", "static", "final", "String", "NAME", "=", "\"dbTable\"", ";", "public", "DbTableResolver", "(", ")", "{", "super", "(", "NAME", ",", "\"DbTable\"", ")", ";", "}", "@", "Override", "protected", "String", "resolve", "(", "TemplateContext", "context", ")", "{", "TableDefinition", "tableDefinition", "=", "getTableDefinition", "(", "getMetaStatement", "(", "(", "XtextTemplateContext", ")", "context", ")", ")", ";", "if", "(", "tableDefinition", "!=", "null", "&&", "dbResolver", ".", "isResolveDb", "(", "tableDefinition", ")", ")", "{", "return", "tableDefinition", ".", "getTable", "(", ")", ";", "}", "return", "super", ".", "resolve", "(", "context", ")", ";", "}", "@", "Override", "protected", "boolean", "isUnambiguous", "(", "TemplateContext", "context", ")", "{", "return", "true", ";", "}", "}", "public", "class", "DbSelectColumnResolver", "extends", "SimpleTemplateVariableResolver", "{", "public", "static", "final", "String", "NAME", "=", "\"\"", ";", "public", "DbSelectColumnResolver", "(", ")", "{", "super", "(", "NAME", ",", "\"\"", ")", ";", "}", "@", "Override", "protected", "String", "resolve", "(", "TemplateContext", "context", ")", "{", "TableDefinition", "tableDefinition", "=", "getTableDefinition", "(", "getMetaStatement", "(", "(", "XtextTemplateContext", ")", "context", ")", ")", ";", "if", "(", "tableDefinition", "!=", "null", "&&", "dbResolver", ".", "isResolveDb", "(", "tableDefinition", ")", ")", "{", "List", "<", "String", ">", "dbColumns", "=", "dbResolver", ".", "getColumns", "(", "tableDefinition", ",", "tableDefinition", ".", "getTable", "(", ")", ")", ";", "return", "getSelectColumns", "(", "dbColumns", ")", ";", "}", "return", "super", ".", "resolve", "(", "context", ")", ";", "}", "@", "Override", "protected", "boolean", "isUnambiguous", "(", "TemplateContext", "context", ")", "{", "return", "true", ";", "}", "}", "public", "class", "PojoColumnResolver", "extends", "SimpleTemplateVariableResolver", "{", "public", "static", "final", "String", "NAME", "=", "\"pojoColumn\"", ";", "public", "PojoColumnResolver", "(", ")", "{", "super", "(", "NAME", ",", "\"PojoColumn\"", ")", ";", "}", "@", "Override", "protected", "String", "resolve", "(", "TemplateContext", "context", ")", "{", "TableDefinition", "tableDefinition", "=", "getTableDefinition", "(", "getMetaStatement", "(", "(", "XtextTemplateContext", ")", "context", ")", ")", ";", "if", "(", "tableDefinition", "!=", "null", "&&", "dbResolver", ".", "isResolveDb", "(", "tableDefinition", ")", ")", "{", "List", "<", "String", ">", "dbColumns", "=", "dbResolver", ".", "getColumns", "(", "tableDefinition", ",", "tableDefinition", ".", "getTable", "(", ")", ")", ";", "return", "getPojoColumns", "(", "dbColumns", ")", ";", "}", "return", "super", ".", "resolve", "(", "context", ")", ";", "}", "@", "Override", "protected", "boolean", "isUnambiguous", "(", "TemplateContext", "context", ")", "{", "return", "true", ";", "}", "}", "public", "class", "DbInsertColumnResolver", "extends", "SimpleTemplateVariableResolver", "{", "public", "static", "final", "String", "NAME", "=", "\"\"", ";", "public", "DbInsertColumnResolver", "(", ")", "{", "super", "(", "NAME", ",", "\"\"", ")", ";", "}", "@", "Override", "protected", "String", "resolve", "(", "TemplateContext", "context", ")", "{", "TableDefinition", "tableDefinition", "=", "getTableDefinition", "(", "getMetaStatement", "(", "(", "XtextTemplateContext", ")", "context", ")", ")", ";", "if", "(", "tableDefinition", "!=", "null", "&&", "dbResolver", ".", "isResolveDb", "(", "tableDefinition", ")", ")", "{", "List", "<", "String", ">", "dbColumns", "=", "dbResolver", ".", "getColumns", "(", "tableDefinition", ",", "tableDefinition", ".", "getTable", "(", ")", ")", ";", "return", "getInsertColumns", "(", "dbColumns", ")", ";", "}", "return", "super", ".", "resolve", "(", "context", ")", ";", "}", "@", "Override", "protected", "boolean", "isUnambiguous", "(", "TemplateContext", "context", ")", "{", "return", "true", ";", "}", "}", "public", "class", "DbUpdateColumnResolver", "extends", "SimpleTemplateVariableResolver", "{", "public", "static", "final", "String", "NAME", "=", "\"\"", ";", "public", "DbUpdateColumnResolver", "(", ")", "{", "super", "(", "NAME", ",", "\"\"", ")", ";", "}", "@", "Override", "protected", "String", "resolve", "(", "TemplateContext", "context", ")", "{", "TableDefinition", "tableDefinition", "=", "getTableDefinition", "(", "getMetaStatement", "(", "(", "XtextTemplateContext", ")", "context", ")", ")", ";", "if", "(", "tableDefinition", "!=", "null", "&&", "dbResolver", ".", "isResolveDb", "(", "tableDefinition", ")", ")", "{", "List", "<", "String", ">", "dbColumns", "=", "dbResolver", ".", "getColumns", "(", "tableDefinition", ",", "tableDefinition", ".", "getTable", "(", ")", ")", ";", "return", "getUpdateColumns", "(", "dbColumns", ")", ";", "}", "return", "super", ".", "resolve", "(", "context", ")", ";", "}", "@", "Override", "protected", "boolean", "isUnambiguous", "(", "TemplateContext", "context", ")", "{", "return", "true", ";", "}", "}", "public", "class", "DbCondColumnResolver", "extends", "SimpleTemplateVariableResolver", "{", "public", "static", "final", "String", "NAME", "=", "\"dbCondColumn\"", ";", "public", "DbCondColumnResolver", "(", ")", "{", "super", "(", "NAME", ",", "\"DbCondColumn\"", ")", ";", "}", "@", "Override", "protected", "String", "resolve", "(", "TemplateContext", "context", ")", "{", "TableDefinition", "tableDefinition", "=", "getTableDefinition", "(", "getMetaStatement", "(", "(", "XtextTemplateContext", ")", "context", ")", ")", ";", "if", "(", "tableDefinition", "!=", "null", "&&", "dbResolver", ".", "isResolveDb", "(", "tableDefinition", ")", ")", "{", "List", "<", "String", ">", "dbColumns", "=", "dbResolver", ".", "getColumns", "(", "tableDefinition", ",", "tableDefinition", ".", "getTable", "(", ")", ")", ";", "return", "getCondColumns", "(", "dbColumns", ")", ";", "}", "return", "super", ".", "resolve", "(", "context", ")", ";", "}", "@", "Override", "protected", "boolean", "isUnambiguous", "(", "TemplateContext", "context", ")", "{", "return", "true", ";", "}", "}", "public", "class", "DbVerUpdateColumnResolver", "extends", "SimpleTemplateVariableResolver", "{", "public", "static", "final", "String", "NAME", "=", "\"\"", ";", "public", "DbVerUpdateColumnResolver", "(", ")", "{", "super", "(", "NAME", ",", "\"\"", ")", ";", "}", "@", "Override", "protected", "String", "resolve", "(", "TemplateContext", "context", ")", "{", "TableDefinition", "tableDefinition", "=", "getTableDefinition", "(", "getMetaStatement", "(", "(", "XtextTemplateContext", ")", "context", ")", ")", ";", "if", "(", "tableDefinition", "!=", "null", "&&", "dbResolver", ".", "isResolveDb", "(", "tableDefinition", ")", ")", "{", "List", "<", "String", ">", "dbColumns", "=", "dbResolver", ".", "getColumns", "(", "tableDefinition", ",", "tableDefinition", ".", "getTable", "(", ")", ")", ";", "return", "getVerUpdateColumns", "(", "dbColumns", ")", ";", "}", "return", "super", ".", "resolve", "(", "context", ")", ";", "}", "@", "Override", "protected", "boolean", "isUnambiguous", "(", "TemplateContext", "context", ")", "{", "return", "true", ";", "}", "}", "public", "class", "DbOptUpdateColumnResolver", "extends", "SimpleTemplateVariableResolver", "{", "public", "static", "final", "String", "NAME", "=", "\"\"", ";", "public", "DbOptUpdateColumnResolver", "(", ")", "{", "super", "(", "NAME", ",", "\"\"", ")", ";", "}", "@", "Override", "protected", "String", "resolve", "(", "TemplateContext", "context", ")", "{", "TableDefinition", "tableDefinition", "=", "getTableDefinition", "(", "getMetaStatement", "(", "(", "XtextTemplateContext", ")", "context", ")", ")", ";", "if", "(", "tableDefinition", "!=", "null", "&&", "dbResolver", ".", "isResolveDb", "(", "tableDefinition", ")", ")", "{", "List", "<", "String", ">", "dbColumns", "=", "dbResolver", ".", "getColumns", "(", "tableDefinition", ",", "tableDefinition", ".", "getTable", "(", ")", ")", ";", "return", "getOptUpdateColumns", "(", "dbColumns", ")", ";", "}", "return", "super", ".", "resolve", "(", "context", ")", ";", "}", "@", "Override", "protected", "boolean", "isUnambiguous", "(", "TemplateContext", "context", ")", "{", "return", "true", ";", "}", "}", "public", "class", "DbOptCondColumnResolver", "extends", "SimpleTemplateVariableResolver", "{", "public", "static", "final", "String", "NAME", "=", "\"\"", ";", "public", "DbOptCondColumnResolver", "(", ")", "{", "super", "(", "NAME", ",", "\"\"", ")", ";", "}", "@", "Override", "protected", "String", "resolve", "(", "TemplateContext", "context", ")", "{", "TableDefinition", "tableDefinition", "=", "getTableDefinition", "(", "getMetaStatement", "(", "(", "XtextTemplateContext", ")", "context", ")", ")", ";", "if", "(", "tableDefinition", "!=", "null", "&&", "dbResolver", ".", "isResolveDb", "(", "tableDefinition", ")", ")", "{", "List", "<", "String", ">", "dbColumns", "=", "dbResolver", ".", "getColumns", "(", "tableDefinition", ",", "tableDefinition", ".", "getTable", "(", ")", ")", ";", "return", "getOptCondColumns", "(", "dbColumns", ")", ";", "}", "return", "super", ".", "resolve", "(", "context", ")", ";", "}", "@", "Override", "protected", "boolean", "isUnambiguous", "(", "TemplateContext", "context", ")", "{", "return", "true", ";", "}", "}", "public", "class", "PojoDefinitionsResolver", "extends", "SimpleTemplateVariableResolver", "{", "public", "static", "final", "String", "NAME", "=", "\"\"", ";", "public", "PojoDefinitionsResolver", "(", ")", "{", "super", "(", "NAME", ",", "\"\"", ")", ";", "}", "@", "Override", "protected", "String", "resolve", "(", "TemplateContext", "context", ")", "{", "Artifacts", "artifacts", "=", "getArtifacts", "(", "(", "XtextTemplateContext", ")", "context", ")", ";", "if", "(", "artifacts", "!=", "null", "&&", "pojoResolver", ".", "isResolvePojo", "(", "artifacts", ")", ")", "{", "List", "<", "Class", "<", "?", ">", ">", "pojoClasses", "=", "pojoResolver", ".", "getPojoClasses", "(", ")", ";", "return", "getPojoDefinitions", "(", "pojoClasses", ")", ";", "}", "return", "super", ".", "resolve", "(", "context", ")", ";", "}", "@", "Override", "protected", "boolean", "isUnambiguous", "(", "TemplateContext", "context", ")", "{", "return", "true", ";", "}", "}", "public", "class", "TableDefinitionsResolver", "extends", "SimpleTemplateVariableResolver", "{", "public", "static", "final", "String", "NAME", "=", "\"\"", ";", "public", "TableDefinitionsResolver", "(", ")", "{", "super", "(", "NAME", ",", "\"\"", ")", ";", "}", "@", "Override", "protected", "String", "resolve", "(", "TemplateContext", "context", ")", "{", "Artifacts", "artifacts", "=", "getArtifacts", "(", "(", "XtextTemplateContext", ")", "context", ")", ";", "if", "(", "artifacts", "!=", "null", "&&", "dbResolver", ".", "isResolveDb", "(", "artifacts", ")", ")", "{", "List", "<", "String", ">", "tables", "=", "dbResolver", ".", "getTables", "(", "artifacts", ")", ";", "return", "getTableDefinitions", "(", "tables", ")", ";", "}", "return", "super", ".", "resolve", "(", "context", ")", ";", "}", "@", "Override", "protected", "boolean", "isUnambiguous", "(", "TemplateContext", "context", ")", "{", "return", "true", ";", "}", "}", "}", "</s>" ]
294
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "templates", ";", "import", "org", ".", "eclipse", ".", "jface", ".", "text", ".", "templates", ".", "ContextTypeRegistry", ";", "import", "org", ".", "eclipse", ".", "jface", ".", "text", ".", "templates", ".", "Template", ";", "import", "org", ".", "eclipse", ".", "jface", ".", "text", ".", "templates", ".", "TemplateContext", ";", "import", "org", ".", "eclipse", ".", "jface", ".", "text", ".", "templates", ".", "TemplateProposal", ";", "import", "org", ".", "eclipse", ".", "jface", ".", "text", ".", "templates", ".", "persistence", ".", "TemplateStore", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "contentassist", ".", "ContentAssistContext", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "contentassist", ".", "ITemplateAcceptor", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "templates", ".", "ContextTypeIdHelper", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "templates", ".", "DefaultTemplateProposalProvider", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "SqlFragment", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "services", ".", "ProcessorDslGrammarAccess", ";", "import", "com", ".", "google", ".", "inject", ".", "Inject", ";", "public", "class", "ProcessorTemplateProposalProvider", "extends", "DefaultTemplateProposalProvider", "{", "ContextTypeIdHelper", "helper", ";", "@", "Inject", "public", "ProcessorTemplateProposalProvider", "(", "TemplateStore", "templateStore", ",", "ContextTypeRegistry", "registry", ",", "ContextTypeIdHelper", "helper", ")", "{", "super", "(", "templateStore", ",", "registry", ",", "helper", ")", ";", "this", ".", "helper", "=", "helper", ";", "}", "@", "Inject", "ProcessorDslGrammarAccess", "ga", ";", "@", "Override", "protected", "void", "createTemplates", "(", "TemplateContext", "templateContext", ",", "ContentAssistContext", "context", ",", "ITemplateAcceptor", "acceptor", ")", "{", "super", ".", "createTemplates", "(", "templateContext", ",", "context", ",", "acceptor", ")", ";", "String", "id", "=", "helper", ".", "getId", "(", "ga", ".", "getSqlValueRule", "(", ")", ")", ";", "if", "(", "templateContext", ".", "getContextType", "(", ")", ".", "getId", "(", ")", ".", "equals", "(", "id", ")", "&&", "(", "context", ".", "getPreviousModel", "(", ")", "==", "null", "||", "context", ".", "getPreviousModel", "(", ")", "instanceof", "SqlFragment", ")", ")", "{", "Template", "template", "=", "new", "Template", "(", "\"ins\"", ",", "\"\"", ",", "\"\"", ",", "\"\"", ",", "false", ")", ";", "TemplateProposal", "tp", "=", "createProposal", "(", "template", ",", "templateContext", ",", "context", ",", "getImage", "(", "template", ")", ",", "getRelevance", "(", "template", ")", ")", ";", "acceptor", ".", "accept", "(", "tp", ")", ";", "template", "=", "new", "Template", "(", "\"sel\"", ",", "\"\"", ",", "\"\"", ",", "\"\"", ",", "false", ")", ";", "tp", "=", "createProposal", "(", "template", ",", "templateContext", ",", "context", ",", "getImage", "(", "template", ")", ",", "getRelevance", "(", "template", ")", ")", ";", "acceptor", ".", "accept", "(", "tp", ")", ";", "template", "=", "new", "Template", "(", "\"upd\"", ",", "\"\"", ",", "\"\"", ",", "\"\"", ",", "false", ")", ";", "tp", "=", "createProposal", "(", "template", ",", "templateContext", ",", "context", ",", "getImage", "(", "template", ")", ",", "getRelevance", "(", "template", ")", ")", ";", "acceptor", ".", "accept", "(", "tp", ")", ";", "template", "=", "new", "Template", "(", "\"upd-opt\"", ",", "\"\"", ",", "\"\"", ",", "\"\"", ",", "false", ")", ";", "tp", "=", "createProposal", "(", "template", ",", "templateContext", ",", "context", ",", "getImage", "(", "template", ")", ",", "getRelevance", "(", "template", ")", ")", ";", "acceptor", ".", "accept", "(", "tp", ")", ";", "template", "=", "new", "Template", "(", "\"del\"", ",", "\"\"", ",", "\"\"", ",", "\"\"", ",", "false", ")", ";", "tp", "=", "createProposal", "(", "template", ",", "templateContext", ",", "context", ",", "getImage", "(", "template", ")", ",", "getRelevance", "(", "template", ")", ")", ";", "acceptor", ".", "accept", "(", "tp", ")", ";", "}", "String", "idDef", "=", "helper", ".", "getId", "(", "ga", ".", "getOptionalFeatureRule", "(", ")", ")", ";", "if", "(", "templateContext", ".", "getContextType", "(", ")", ".", "getId", "(", ")", ".", "equals", "(", "idDef", ")", ")", "{", "Template", "template", "=", "new", "Template", "(", "\"pojos\"", ",", "\"\"", ",", "\"\"", ",", "\"\"", ",", "false", ")", ";", "TemplateProposal", "tp", "=", "createProposal", "(", "template", ",", "templateContext", ",", "context", ",", "getImage", "(", "template", ")", ",", "getRelevance", "(", "template", ")", ")", ";", "acceptor", ".", "accept", "(", "tp", ")", ";", "template", "=", "new", "Template", "(", "\"tables\"", ",", "\"\"", ",", "\"\"", ",", "\"\"", ",", "false", ")", ";", "tp", "=", "createProposal", "(", "template", ",", "templateContext", ",", "context", ",", "getImage", "(", "template", ")", ",", "getRelevance", "(", "template", ")", ")", ";", "acceptor", ".", "accept", "(", "tp", ")", ";", "}", "}", "}", "</s>" ]
295
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "labeling", ";", "import", "org", ".", "eclipse", ".", "emf", ".", "edit", ".", "ui", ".", "provider", ".", "AdapterFactoryLabelProvider", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "label", ".", "DefaultEObjectLabelProvider", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Artifacts", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Column", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Constant", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "DatabaseColumn", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "DatabaseTable", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "Identifier", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingColumn", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MappingRule", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "MetaStatement", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "OptionalFeature", ";", "import", "com", ".", "google", ".", "inject", ".", "Inject", ";", "public", "class", "ProcessorDslLabelProvider", "extends", "DefaultEObjectLabelProvider", "{", "@", "Inject", "public", "ProcessorDslLabelProvider", "(", "AdapterFactoryLabelProvider", "delegate", ")", "{", "super", "(", "delegate", ")", ";", "}", "public", "String", "text", "(", "Artifacts", "ele", ")", "{", "return", "\"MODEL\"", ";", "}", "public", "String", "text", "(", "MetaStatement", "ele", ")", "{", "return", "ele", ".", "getName", "(", ")", ";", "}", "public", "String", "text", "(", "MappingRule", "ele", ")", "{", "return", "ele", ".", "getName", "(", ")", ";", "}", "public", "String", "text", "(", "OptionalFeature", "ele", ")", "{", "return", "ele", ".", "getName", "(", ")", ";", "}", "public", "String", "text", "(", "Identifier", "ele", ")", "{", "return", "ele", ".", "getName", "(", ")", ";", "}", "public", "String", "text", "(", "Constant", "ele", ")", "{", "return", "ele", ".", "getName", "(", ")", ";", "}", "public", "String", "text", "(", "Column", "ele", ")", "{", "return", "ele", ".", "getName", "(", ")", ";", "}", "public", "String", "text", "(", "MappingColumn", "ele", ")", "{", "return", "ele", ".", "getName", "(", ")", ";", "}", "public", "String", "text", "(", "DatabaseColumn", "ele", ")", "{", "return", "ele", ".", "getName", "(", ")", ";", "}", "public", "String", "text", "(", "DatabaseTable", "ele", ")", "{", "return", "ele", ".", "getName", "(", ")", ";", "}", "String", "image", "(", "MetaStatement", "ele", ")", "{", "return", "\"SQL.gif\"", ";", "}", "String", "image", "(", "MappingRule", "ele", ")", "{", "return", "\"OUT.gif\"", ";", "}", "String", "image", "(", "OptionalFeature", "ele", ")", "{", "return", "\"OPT.gif\"", ";", "}", "String", "image", "(", "Identifier", "ele", ")", "{", "return", "\"IDNT.gif\"", ";", "}", "String", "image", "(", "Constant", "ele", ")", "{", "return", "\"CNST.gif\"", ";", "}", "String", "image", "(", "Column", "ele", ")", "{", "return", "\"COL.gif\"", ";", "}", "String", "image", "(", "MappingColumn", "ele", ")", "{", "return", "\"COL.gif\"", ";", "}", "String", "image", "(", "DatabaseColumn", "ele", ")", "{", "return", "\"DBCOL.gif\"", ";", "}", "}", "</s>" ]
296
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "labeling", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "resource", ".", "IEObjectDescription", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "label", ".", "DefaultDescriptionLabelProvider", ";", "public", "class", "ProcessorDslDescriptionLabelProvider", "extends", "DefaultDescriptionLabelProvider", "{", "public", "String", "text", "(", "IEObjectDescription", "ele", ")", "{", "return", "\"\"", "+", "ele", ".", "getName", "(", ")", ";", "}", "}", "</s>" ]
297
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "outline", ";", "import", "org", ".", "apache", ".", "log4j", ".", "Logger", ";", "import", "org", ".", "eclipse", ".", "jface", ".", "action", ".", "Action", ";", "import", "org", ".", "eclipse", ".", "jface", ".", "resource", ".", "ImageDescriptor", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "PluginImageHelper", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "outline", ".", "IOutlineNode", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "outline", ".", "actions", ".", "AbstractFilterOutlineContribution", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "outline", ".", "impl", ".", "EObjectNode", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "import", "com", ".", "google", ".", "inject", ".", "Inject", ";", "public", "class", "FilterOptionalFeaturesContribution", "extends", "AbstractFilterOutlineContribution", "{", "protected", "Logger", "LOGGER", "=", "Logger", ".", "getLogger", "(", "FilterOptionalFeaturesContribution", ".", "class", ")", ";", "@", "Inject", "private", "PluginImageHelper", "imageHelper", ";", "@", "Override", "protected", "boolean", "apply", "(", "IOutlineNode", "node", ")", "{", "boolean", "result", "=", "!", "(", "node", "instanceof", "EObjectNode", ")", "||", "!", "(", "(", "EObjectNode", ")", "node", ")", ".", "getEClass", "(", ")", ".", "equals", "(", "ProcessorDslPackage", ".", "Literals", ".", "OPTIONAL_FEATURE", ")", ";", "if", "(", "LOGGER", ".", "isTraceEnabled", "(", ")", ")", "{", "LOGGER", ".", "trace", "(", "\"OPT", "\"", "+", "node", "+", "\"", "\"", "+", "result", ")", ";", "}", "return", "result", ";", "}", "@", "Override", "public", "String", "getPreferenceKey", "(", ")", "{", "return", "\"\"", ";", "}", "@", "Override", "protected", "void", "configureAction", "(", "Action", "action", ")", "{", "action", ".", "setText", "(", "\"\"", ")", ";", "action", ".", "setDescription", "(", "\"\"", ")", ";", "action", ".", "setToolTipText", "(", "\"\"", ")", ";", "action", ".", "setImageDescriptor", "(", "getImageDescriptor", "(", "\"\"", ")", ")", ";", "}", "protected", "ImageDescriptor", "getImageDescriptor", "(", "String", "imagePath", ")", "{", "return", "ImageDescriptor", ".", "createFromImage", "(", "imageHelper", ".", "getImage", "(", "\"OPT.gif\"", ")", ")", ";", "}", "}", "</s>" ]
298
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "outline", ";", "import", "org", ".", "apache", ".", "log4j", ".", "Logger", ";", "import", "org", ".", "eclipse", ".", "jface", ".", "action", ".", "Action", ";", "import", "org", ".", "eclipse", ".", "jface", ".", "resource", ".", "ImageDescriptor", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "PluginImageHelper", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "outline", ".", "IOutlineNode", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "outline", ".", "actions", ".", "AbstractFilterOutlineContribution", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "outline", ".", "impl", ".", "EObjectNode", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "import", "com", ".", "google", ".", "inject", ".", "Inject", ";", "public", "class", "FilterMappingRulesContribution", "extends", "AbstractFilterOutlineContribution", "{", "protected", "Logger", "LOGGER", "=", "Logger", ".", "getLogger", "(", "FilterMappingRulesContribution", ".", "class", ")", ";", "@", "Inject", "private", "PluginImageHelper", "imageHelper", ";", "@", "Override", "protected", "boolean", "apply", "(", "IOutlineNode", "node", ")", "{", "boolean", "result", "=", "!", "(", "node", "instanceof", "EObjectNode", ")", "||", "!", "(", "(", "EObjectNode", ")", "node", ")", ".", "getEClass", "(", ")", ".", "equals", "(", "ProcessorDslPackage", ".", "Literals", ".", "MAPPING_RULE", ")", ";", "if", "(", "LOGGER", ".", "isTraceEnabled", "(", ")", ")", "{", "LOGGER", ".", "trace", "(", "\"OUT", "\"", "+", "node", "+", "\"", "\"", "+", "result", ")", ";", "}", "return", "result", ";", "}", "@", "Override", "public", "String", "getPreferenceKey", "(", ")", "{", "return", "\"\"", ";", "}", "@", "Override", "protected", "void", "configureAction", "(", "Action", "action", ")", "{", "action", ".", "setText", "(", "\"\"", ")", ";", "action", ".", "setDescription", "(", "\"\"", ")", ";", "action", ".", "setToolTipText", "(", "\"\"", ")", ";", "action", ".", "setImageDescriptor", "(", "getImageDescriptor", "(", "\"\"", ")", ")", ";", "}", "protected", "ImageDescriptor", "getImageDescriptor", "(", "String", "imagePath", ")", "{", "return", "ImageDescriptor", ".", "createFromImage", "(", "imageHelper", ".", "getImage", "(", "\"OUT.gif\"", ")", ")", ";", "}", "}", "</s>" ]
299
[ "<s>", "package", "org", ".", "sqlproc", ".", "dsl", ".", "ui", ".", "outline", ";", "import", "org", ".", "apache", ".", "log4j", ".", "Logger", ";", "import", "org", ".", "eclipse", ".", "jface", ".", "action", ".", "Action", ";", "import", "org", ".", "eclipse", ".", "jface", ".", "resource", ".", "ImageDescriptor", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "PluginImageHelper", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "outline", ".", "IOutlineNode", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "outline", ".", "actions", ".", "AbstractFilterOutlineContribution", ";", "import", "org", ".", "eclipse", ".", "xtext", ".", "ui", ".", "editor", ".", "outline", ".", "impl", ".", "EObjectNode", ";", "import", "org", ".", "sqlproc", ".", "dsl", ".", "processorDsl", ".", "ProcessorDslPackage", ";", "import", "com", ".", "google", ".", "inject", ".", "Inject", ";", "public", "class", "FilterMetaStatementsContribution", "extends", "AbstractFilterOutlineContribution", "{", "protected", "Logger", "LOGGER", "=", "Logger", ".", "getLogger", "(", "FilterMetaStatementsContribution", ".", "class", ")", ";", "@", "Inject", "private", "PluginImageHelper", "imageHelper", ";", "@", "Override", "protected", "boolean", "apply", "(", "IOutlineNode", "node", ")", "{", "boolean", "result", "=", "!", "(", "node", "instanceof", "EObjectNode", ")", "||", "!", "(", "(", "EObjectNode", ")", "node", ")", ".", "getEClass", "(", ")", ".", "equals", "(", "ProcessorDslPackage", ".", "Literals", ".", "META_STATEMENT", ")", ";", "if", "(", "LOGGER", ".", "isTraceEnabled", "(", ")", ")", "{", "LOGGER", ".", "trace", "(", "\"META", "\"", "+", "node", "+", "\"", "\"", "+", "result", ")", ";", "}", "return", "result", ";", "}", "@", "Override", "public", "String", "getPreferenceKey", "(", ")", "{", "return", "\"\"", ";", "}", "@", "Override", "protected", "void", "configureAction", "(", "Action", "action", ")", "{", "action", ".", "setText", "(", "\"\"", ")", ";", "action", ".", "setDescription", "(", "\"\"", ")", ";", "action", ".", "setToolTipText", "(", "\"\"", ")", ";", "action", ".", "setImageDescriptor", "(", "getImageDescriptor", "(", "\"\"", ")", ")", ";", "}", "protected", "ImageDescriptor", "getImageDescriptor", "(", "String", "imagePath", ")", "{", "return", "ImageDescriptor", ".", "createFromImage", "(", "imageHelper", ".", "getImage", "(", "\"SQL.gif\"", ")", ")", ";", "}", "}", "</s>" ]