From d3a74ed361a1b5c79e7343bcc73a9083575be064 Mon Sep 17 00:00:00 2001 From: jendib Date: Sun, 14 Feb 2016 19:23:44 +0100 Subject: [PATCH] #65: PUT /vocabulary resource --- .../docs/core/dao/jpa/VocabularyDao.java | 24 + .../docs/core/model/jpa/Vocabulary.java | 19 +- .../resources/db/update/dbupdate-006-0.sql | 542 +++++++++--------- .../rest/resource/VocabularyResource.java | 47 ++ .../docs/rest/TestVocabularyResource.java | 20 + 5 files changed, 379 insertions(+), 273 deletions(-) diff --git a/docs-core/src/main/java/com/sismics/docs/core/dao/jpa/VocabularyDao.java b/docs-core/src/main/java/com/sismics/docs/core/dao/jpa/VocabularyDao.java index a7cef7b0..6eecb247 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/dao/jpa/VocabularyDao.java +++ b/docs-core/src/main/java/com/sismics/docs/core/dao/jpa/VocabularyDao.java @@ -1,9 +1,33 @@ package com.sismics.docs.core.dao.jpa; +import java.util.UUID; + +import javax.persistence.EntityManager; + +import com.sismics.docs.core.model.jpa.Vocabulary; +import com.sismics.util.context.ThreadLocalContext; + /** * Vocabulary DAO. * * @author bgamard */ public class VocabularyDao { + /** + * Creates a new vocabulary entry. + * + * @param vocabulary Vocabulary + * @return New ID + * @throws Exception + */ + public String create(Vocabulary vocabulary) { + // Create the UUID + vocabulary.setId(UUID.randomUUID().toString()); + + // Create the comment + EntityManager em = ThreadLocalContext.get().getEntityManager(); + em.persist(vocabulary); + + return vocabulary.getId(); + } } diff --git a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Vocabulary.java b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Vocabulary.java index 79a721a9..934ec1ed 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Vocabulary.java +++ b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Vocabulary.java @@ -19,13 +19,19 @@ public class Vocabulary { * Vocabulary ID. */ @Id - @Column(name = "VOC_ID_C", length = 50) + @Column(name = "VOC_ID_C", nullable = false, length = 36) private String id; + /** + * Vocabulary name. + */ + @Column(name = "VOC_NAME_C", nullable = false, length = 50) + private String name; + /** * Vocabulary value. */ - @Column(name = "VOC_VALUE_C", length = 100) + @Column(name = "VOC_VALUE_C", nullable = false, length = 100) private String value; /** @@ -42,6 +48,14 @@ public class Vocabulary { this.id = id; } + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + public String getValue() { return value; } @@ -62,6 +76,7 @@ public class Vocabulary { public String toString() { return MoreObjects.toStringHelper(this) .add("id", id) + .add("name", name) .add("value", value) .add("order", order) .toString(); diff --git a/docs-core/src/main/resources/db/update/dbupdate-006-0.sql b/docs-core/src/main/resources/db/update/dbupdate-006-0.sql index be2e0966..87cbf9d5 100644 --- a/docs-core/src/main/resources/db/update/dbupdate-006-0.sql +++ b/docs-core/src/main/resources/db/update/dbupdate-006-0.sql @@ -1,278 +1,278 @@ alter table T_DOCUMENT add column DOC_SUBJECT_C varchar(500); alter table T_DOCUMENT add column DOC_IDENTIFIER_C varchar(500); -create memory table T_VOCABULARY ( VOC_ID_C varchar(50) not null, VOC_VALUE_C varchar(100) not null, VOC_ORDER_N int not null ); +create memory table T_VOCABULARY ( VOC_ID_C varchar(36) not null, VOC_NAME_C varchar(50) not null, VOC_VALUE_C varchar(100) not null, VOC_ORDER_N int not null ); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('TYPE', 'Collection', 0); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('TYPE', 'Dataset', 1); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('TYPE', 'Event', 2); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('TYPE', 'Image', 3); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('TYPE', 'Interactive Resource', 4); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('TYPE', 'Moving Image', 5); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('TYPE', 'Physical Object', 6); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('TYPE', 'Service', 7); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('TYPE', 'Software', 8); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('TYPE', 'Sound', 9); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('TYPE', 'Still Image', 10); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('TYPE', 'Text', 11); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('type_collection, 'TYPE', 'Collection', 0); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('type_dataset', 'TYPE', 'Dataset', 1); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('type_event', 'TYPE', 'Event', 2); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('type_image', 'TYPE', 'Image', 3); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('type_interactive_resource', 'TYPE', 'Interactive Resource', 4); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('type_moving_image', 'TYPE', 'Moving Image', 5); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('type_physical_object', 'TYPE', 'Physical Object', 6); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('type_service', 'TYPE', 'Service', 7); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('type_software', 'TYPE', 'Software', 8); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('type_sound', 'TYPE', 'Sound', 9); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('type_still_image', 'TYPE', 'Still Image', 10); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('type_text', 'TYPE', 'Text', 11); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Afghanistan', 0); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Åland Islands', 1); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Albania', 2); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Algeria', 3); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'American Samoa', 4); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Andorra', 5); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Angola', 6); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Anguilla', 7); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Antarctica', 8); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Antigua and Barbuda', 9); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Argentina', 10); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Armenia', 11); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Aruba', 12); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Australia', 13); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Austria', 14); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Azerbaijan', 15); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Bahamas', 16); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Bahrain', 17); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Bangladesh', 18); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Barbados', 19); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Belarus', 20); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Belgium', 21); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Belize', 22); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Benin', 23); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Bermuda', 24); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Bhutan', 25); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Bolivia (Plurinational State of)', 26); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Bonaire, Sint Eustatius and Saba', 27); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Bosnia and Herzegovina', 28); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Botswana', 29); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Bouvet Island', 30); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Brazil', 31); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'British Indian Ocean Territory', 32); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Brunei Darussalam', 33); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Bulgaria', 34); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Burkina Faso', 35); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Burundi', 36); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Cabo Verde', 37); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Cambodia', 38); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Cameroon', 39); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Canada', 40); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Cayman Islands', 41); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Central African Republic', 42); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Chad', 43); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Chile', 44); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'China', 45); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Christmas Island', 46); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Cocos (Keeling) Islands', 47); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Colombia', 48); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Comoros', 49); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Congo', 50); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Congo (Democratic Republic of the)', 51); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Cook Islands', 52); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Costa Rica', 53); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Côte d''Ivoire', 54); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Croatia', 55); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Cuba', 56); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Curaçao', 57); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Cyprus', 58); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Czech Republic', 59); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Denmark', 60); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Djibouti', 61); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Dominica', 62); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Dominican Republic', 63); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Ecuador', 64); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Egypt', 65); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'El Salvador', 66); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Equatorial Guinea', 67); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Eritrea', 68); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Estonia', 69); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Ethiopia', 70); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Falkland Islands (Malvinas)', 71); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Faroe Islands', 72); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Fiji', 73); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Finland', 74); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'France', 75); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'French Guiana', 76); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'French Polynesia', 77); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'French Southern Territories', 78); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Gabon', 79); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Gambia', 80); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Georgia', 81); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Germany', 82); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Ghana', 83); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Gibraltar', 84); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Greece', 85); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Greenland', 86); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Grenada', 87); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Guadeloupe', 88); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Guam', 89); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Guatemala', 90); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Guernsey', 91); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Guinea', 92); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Guinea-Bissau', 93); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Guyana', 94); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Haiti', 95); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Heard Island and McDonald Islands', 96); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Holy See', 97); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Honduras', 98); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Hong Kong', 99); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Hungary', 100); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Iceland', 101); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'India', 102); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Indonesia', 103); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Iran (Islamic Republic of)', 104); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Iraq', 105); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Ireland', 106); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Isle of Man', 107); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Israel', 108); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Italy', 109); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Jamaica', 110); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Japan', 111); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Jersey', 112); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Jordan', 113); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Kazakhstan', 114); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Kenya', 115); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Kiribati', 116); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Korea (Democratic People''s Republic of)', 117); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Korea (Republic of)', 118); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Kuwait', 119); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Kyrgyzstan', 120); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Lao People''s Democratic Republic', 121); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Latvia', 122); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Lebanon', 123); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Lesotho', 124); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Liberia', 125); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Libya', 126); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Liechtenstein', 127); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Lithuania', 128); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Luxembourg', 129); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Macao', 130); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Macedonia (the former Yugoslav Republic of)', 131); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Madagascar', 132); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Malawi', 133); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Malaysia', 134); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Maldives', 135); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Mali', 136); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Malta', 137); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Marshall Islands', 138); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Martinique', 139); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Mauritania', 140); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Mauritius', 141); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Mayotte', 142); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Mexico', 143); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Micronesia (Federated States of)', 144); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Moldova (Republic of)', 145); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Monaco', 146); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Mongolia', 147); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Montenegro', 148); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Montserrat', 149); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Morocco', 150); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Mozambique', 151); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Myanmar', 152); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Namibia', 153); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Nauru', 154); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Nepal', 155); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Netherlands', 156); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'New Caledonia', 157); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'New Zealand', 158); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Nicaragua', 159); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Niger', 160); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Nigeria', 161); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Niue', 162); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Norfolk Island', 163); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Northern Mariana Islands', 164); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Norway', 165); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Oman', 166); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Pakistan', 167); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Palau', 168); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Palestine, State of', 169); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Panama', 170); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Papua New Guinea', 171); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Paraguay', 172); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Peru', 173); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Philippines', 174); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Pitcairn', 175); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Poland', 176); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Portugal', 177); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Puerto Rico', 178); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Qatar', 179); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Réunion', 180); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Romania', 181); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Russian Federation', 182); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Rwanda', 183); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Saint Barthélemy', 184); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Saint Helena, Ascension and Tristan da Cunha', 185); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Saint Kitts and Nevis', 186); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Saint Lucia', 187); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Saint Martin (French part)', 188); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Saint Pierre and Miquelon', 189); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Saint Vincent and the Grenadines', 190); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Samoa', 191); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'San Marino', 192); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Sao Tome and Principe', 193); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Saudi Arabia', 194); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Senegal', 195); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Serbia', 196); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Seychelles', 197); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Sierra Leone', 198); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Singapore', 199); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Sint Maarten (Dutch part)', 200); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Slovakia', 201); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Slovenia', 202); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Solomon Islands', 203); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Somalia', 204); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'South Africa', 205); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'South Georgia and the South Sandwich Islands', 206); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'South Sudan', 207); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Spain', 208); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Sri Lanka', 209); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Sudan', 210); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Suriname', 211); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Svalbard and Jan Mayen', 212); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Swaziland', 213); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Sweden', 214); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Switzerland', 215); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Syrian Arab Republic', 216); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Taiwan, Province of China', 217); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Tajikistan', 218); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Tanzania, United Republic of', 219); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Thailand', 220); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Timor-Leste', 221); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Togo', 222); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Tokelau', 223); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Tonga', 224); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Trinidad and Tobago', 225); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Tunisia', 226); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Turkey', 227); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Turkmenistan', 228); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Turks and Caicos Islands', 229); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Tuvalu', 230); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Uganda', 231); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Ukraine', 232); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'United Arab Emirates', 233); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'United Kingdom of Great Britain and Northern Ireland', 234); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'United States of America', 235); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'United States Minor Outlying Islands', 236); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Uruguay', 237); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Uzbekistan', 238); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Vanuatu', 239); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Venezuela (Bolivarian Republic of)', 240); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Viet Nam', 241); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Virgin Islands (British)', 242); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Virgin Islands (U.S.)', 243); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Wallis and Futuna', 244); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Western Sahara', 245); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Yemen', 246); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Zambia', 247); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('COVERAGE', 'Zimbabwe', 248); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_afg', 'COVERAGE', 'Afghanistan', 0); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_ala', 'COVERAGE', 'Åland Islands', 1); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_alb', 'COVERAGE', 'Albania', 2); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_dza', 'COVERAGE', 'Algeria', 3); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_asm', 'COVERAGE', 'American Samoa', 4); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_and', 'COVERAGE', 'Andorra', 5); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_ago', 'COVERAGE', 'Angola', 6); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_aia', 'COVERAGE', 'Anguilla', 7); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_ata', 'COVERAGE', 'Antarctica', 8); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_atg', 'COVERAGE', 'Antigua and Barbuda', 9); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_arg', 'COVERAGE', 'Argentina', 10); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_arm', 'COVERAGE', 'Armenia', 11); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_abw', 'COVERAGE', 'Aruba', 12); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_aus', 'COVERAGE', 'Australia', 13); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_aut', 'COVERAGE', 'Austria', 14); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_aze', 'COVERAGE', 'Azerbaijan', 15); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_bhs', 'COVERAGE', 'Bahamas', 16); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_bhr', 'COVERAGE', 'Bahrain', 17); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_bgd', 'COVERAGE', 'Bangladesh', 18); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_brb', 'COVERAGE', 'Barbados', 19); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_blr', 'COVERAGE', 'Belarus', 20); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_bel', 'COVERAGE', 'Belgium', 21); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_blz', 'COVERAGE', 'Belize', 22); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_ben', 'COVERAGE', 'Benin', 23); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_bmu', 'COVERAGE', 'Bermuda', 24); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_btn', 'COVERAGE', 'Bhutan', 25); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_bol', 'COVERAGE', 'Bolivia (Plurinational State of)', 26); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_bes', 'COVERAGE', 'Bonaire, Sint Eustatius and Saba', 27); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_bih', 'COVERAGE', 'Bosnia and Herzegovina', 28); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_bwa', 'COVERAGE', 'Botswana', 29); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_bvt', 'COVERAGE', 'Bouvet Island', 30); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_bra', 'COVERAGE', 'Brazil', 31); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_iot', 'COVERAGE', 'British Indian Ocean Territory', 32); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_brn', 'COVERAGE', 'Brunei Darussalam', 33); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_bgr', 'COVERAGE', 'Bulgaria', 34); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_bfa', 'COVERAGE', 'Burkina Faso', 35); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_bdi', 'COVERAGE', 'Burundi', 36); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_cpv', 'COVERAGE', 'Cabo Verde', 37); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_khm', 'COVERAGE', 'Cambodia', 38); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_cmr', 'COVERAGE', 'Cameroon', 39); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_can', 'COVERAGE', 'Canada', 40); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_cym', 'COVERAGE', 'Cayman Islands', 41); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_caf', 'COVERAGE', 'Central African Republic', 42); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_tcd', 'COVERAGE', 'Chad', 43); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_chl', 'COVERAGE', 'Chile', 44); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_chn', 'COVERAGE', 'China', 45); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_cxr', 'COVERAGE', 'Christmas Island', 46); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_cck', 'COVERAGE', 'Cocos (Keeling) Islands', 47); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_col', 'COVERAGE', 'Colombia', 48); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_com', 'COVERAGE', 'Comoros', 49); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_cog', 'COVERAGE', 'Congo', 50); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_cod', 'COVERAGE', 'Congo (Democratic Republic of the)', 51); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_cok', 'COVERAGE', 'Cook Islands', 52); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_cri', 'COVERAGE', 'Costa Rica', 53); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_civ', 'COVERAGE', 'Côte d''Ivoire', 54); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_hrv', 'COVERAGE', 'Croatia', 55); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_cub', 'COVERAGE', 'Cuba', 56); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_cuw', 'COVERAGE', 'Curaçao', 57); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_cyp', 'COVERAGE', 'Cyprus', 58); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_cze', 'COVERAGE', 'Czech Republic', 59); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_dnk', 'COVERAGE', 'Denmark', 60); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_dji', 'COVERAGE', 'Djibouti', 61); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_dma', 'COVERAGE', 'Dominica', 62); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_dom', 'COVERAGE', 'Dominican Republic', 63); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_ecu', 'COVERAGE', 'Ecuador', 64); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_egy', 'COVERAGE', 'Egypt', 65); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_slv', 'COVERAGE', 'El Salvador', 66); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_gnq', 'COVERAGE', 'Equatorial Guinea', 67); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_eri', 'COVERAGE', 'Eritrea', 68); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_est', 'COVERAGE', 'Estonia', 69); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_eth', 'COVERAGE', 'Ethiopia', 70); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_flk', 'COVERAGE', 'Falkland Islands (Malvinas)', 71); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_fro', 'COVERAGE', 'Faroe Islands', 72); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_fji', 'COVERAGE', 'Fiji', 73); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_fin', 'COVERAGE', 'Finland', 74); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_fra', 'COVERAGE', 'France', 75); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_guf', 'COVERAGE', 'French Guiana', 76); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_pyf', 'COVERAGE', 'French Polynesia', 77); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_atf', 'COVERAGE', 'French Southern Territories', 78); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_gab', 'COVERAGE', 'Gabon', 79); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_gmb', 'COVERAGE', 'Gambia', 80); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_geo', 'COVERAGE', 'Georgia', 81); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_deu', 'COVERAGE', 'Germany', 82); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_gha', 'COVERAGE', 'Ghana', 83); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_gib', 'COVERAGE', 'Gibraltar', 84); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_grc', 'COVERAGE', 'Greece', 85); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_grl', 'COVERAGE', 'Greenland', 86); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_grd', 'COVERAGE', 'Grenada', 87); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_glp', 'COVERAGE', 'Guadeloupe', 88); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_gum', 'COVERAGE', 'Guam', 89); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_gtm', 'COVERAGE', 'Guatemala', 90); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_ggy', 'COVERAGE', 'Guernsey', 91); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_gin', 'COVERAGE', 'Guinea', 92); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_gnb', 'COVERAGE', 'Guinea-Bissau', 93); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_guy', 'COVERAGE', 'Guyana', 94); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_hti', 'COVERAGE', 'Haiti', 95); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_hmd', 'COVERAGE', 'Heard Island and McDonald Islands', 96); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_vat', 'COVERAGE', 'Holy See', 97); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_hnd', 'COVERAGE', 'Honduras', 98); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_hkg', 'COVERAGE', 'Hong Kong', 99); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_hun', 'COVERAGE', 'Hungary', 100); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_isl', 'COVERAGE', 'Iceland', 101); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_ind', 'COVERAGE', 'India', 102); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_idn', 'COVERAGE', 'Indonesia', 103); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_irn', 'COVERAGE', 'Iran (Islamic Republic of)', 104); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_irq', 'COVERAGE', 'Iraq', 105); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_irl', 'COVERAGE', 'Ireland', 106); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_imn', 'COVERAGE', 'Isle of Man', 107); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_isr', 'COVERAGE', 'Israel', 108); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_ita', 'COVERAGE', 'Italy', 109); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_jam', 'COVERAGE', 'Jamaica', 110); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_jpn', 'COVERAGE', 'Japan', 111); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_jey', 'COVERAGE', 'Jersey', 112); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_jor', 'COVERAGE', 'Jordan', 113); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_kaz', 'COVERAGE', 'Kazakhstan', 114); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_ken', 'COVERAGE', 'Kenya', 115); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_kir', 'COVERAGE', 'Kiribati', 116); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_prk', 'COVERAGE', 'Korea (Democratic People''s Republic of)', 117); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_kor', 'COVERAGE', 'Korea (Republic of)', 118); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_kwt', 'COVERAGE', 'Kuwait', 119); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_kgz', 'COVERAGE', 'Kyrgyzstan', 120); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_lao', 'COVERAGE', 'Lao People''s Democratic Republic', 121); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_lva', 'COVERAGE', 'Latvia', 122); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_lbn', 'COVERAGE', 'Lebanon', 123); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_lso', 'COVERAGE', 'Lesotho', 124); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_lbr', 'COVERAGE', 'Liberia', 125); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_lby', 'COVERAGE', 'Libya', 126); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_lie', 'COVERAGE', 'Liechtenstein', 127); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_ltu', 'COVERAGE', 'Lithuania', 128); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_lux', 'COVERAGE', 'Luxembourg', 129); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_mac', 'COVERAGE', 'Macao', 130); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_mkd', 'COVERAGE', 'Macedonia (the former Yugoslav Republic of)', 131); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_mdg', 'COVERAGE', 'Madagascar', 132); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_mwi', 'COVERAGE', 'Malawi', 133); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_mys', 'COVERAGE', 'Malaysia', 134); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_mdv', 'COVERAGE', 'Maldives', 135); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_mli', 'COVERAGE', 'Mali', 136); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_mlt', 'COVERAGE', 'Malta', 137); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_mhl', 'COVERAGE', 'Marshall Islands', 138); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_mtq', 'COVERAGE', 'Martinique', 139); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_mrt', 'COVERAGE', 'Mauritania', 140); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_mus', 'COVERAGE', 'Mauritius', 141); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_myt', 'COVERAGE', 'Mayotte', 142); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_mex', 'COVERAGE', 'Mexico', 143); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_fsm', 'COVERAGE', 'Micronesia (Federated States of)', 144); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_mda', 'COVERAGE', 'Moldova (Republic of)', 145); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_mco', 'COVERAGE', 'Monaco', 146); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_mng', 'COVERAGE', 'Mongolia', 147); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_mne', 'COVERAGE', 'Montenegro', 148); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_msr', 'COVERAGE', 'Montserrat', 149); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_mar', 'COVERAGE', 'Morocco', 150); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_moz', 'COVERAGE', 'Mozambique', 151); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_mmr', 'COVERAGE', 'Myanmar', 152); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_nam', 'COVERAGE', 'Namibia', 153); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_nru', 'COVERAGE', 'Nauru', 154); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_npl', 'COVERAGE', 'Nepal', 155); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_nld', 'COVERAGE', 'Netherlands', 156); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_ncl', 'COVERAGE', 'New Caledonia', 157); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_nzl', 'COVERAGE', 'New Zealand', 158); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_nic', 'COVERAGE', 'Nicaragua', 159); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_ner', 'COVERAGE', 'Niger', 160); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_nga', 'COVERAGE', 'Nigeria', 161); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_niu', 'COVERAGE', 'Niue', 162); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_nfk', 'COVERAGE', 'Norfolk Island', 163); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_mnp', 'COVERAGE', 'Northern Mariana Islands', 164); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_nor', 'COVERAGE', 'Norway', 165); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_omn', 'COVERAGE', 'Oman', 166); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_pak', 'COVERAGE', 'Pakistan', 167); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_plw', 'COVERAGE', 'Palau', 168); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_pse', 'COVERAGE', 'Palestine, State of', 169); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_pan', 'COVERAGE', 'Panama', 170); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_png', 'COVERAGE', 'Papua New Guinea', 171); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_pry', 'COVERAGE', 'Paraguay', 172); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_per', 'COVERAGE', 'Peru', 173); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_phl', 'COVERAGE', 'Philippines', 174); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_pcn', 'COVERAGE', 'Pitcairn', 175); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_pol', 'COVERAGE', 'Poland', 176); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_prt', 'COVERAGE', 'Portugal', 177); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_pri', 'COVERAGE', 'Puerto Rico', 178); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_qat', 'COVERAGE', 'Qatar', 179); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_reu', 'COVERAGE', 'Réunion', 180); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_rou', 'COVERAGE', 'Romania', 181); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_rus', 'COVERAGE', 'Russian Federation', 182); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_rwa', 'COVERAGE', 'Rwanda', 183); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_blm', 'COVERAGE', 'Saint Barthélemy', 184); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_shn', 'COVERAGE', 'Saint Helena, Ascension and Tristan da Cunha', 185); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_kna', 'COVERAGE', 'Saint Kitts and Nevis', 186); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_lca', 'COVERAGE', 'Saint Lucia', 187); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_maf', 'COVERAGE', 'Saint Martin (French part)', 188); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_spm', 'COVERAGE', 'Saint Pierre and Miquelon', 189); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_vct', 'COVERAGE', 'Saint Vincent and the Grenadines', 190); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_wsm', 'COVERAGE', 'Samoa', 191); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_smr', 'COVERAGE', 'San Marino', 192); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_stp', 'COVERAGE', 'Sao Tome and Principe', 193); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_sau', 'COVERAGE', 'Saudi Arabia', 194); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_sen', 'COVERAGE', 'Senegal', 195); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_srb', 'COVERAGE', 'Serbia', 196); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_syc', 'COVERAGE', 'Seychelles', 197); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_sle', 'COVERAGE', 'Sierra Leone', 198); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_sgp', 'COVERAGE', 'Singapore', 199); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_sxm', 'COVERAGE', 'Sint Maarten (Dutch part)', 200); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_svk', 'COVERAGE', 'Slovakia', 201); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_svn', 'COVERAGE', 'Slovenia', 202); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_slb', 'COVERAGE', 'Solomon Islands', 203); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_som', 'COVERAGE', 'Somalia', 204); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_zaf', 'COVERAGE', 'South Africa', 205); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_sgs', 'COVERAGE', 'South Georgia and the South Sandwich Islands', 206); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_ssd', 'COVERAGE', 'South Sudan', 207); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_esp', 'COVERAGE', 'Spain', 208); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_lka', 'COVERAGE', 'Sri Lanka', 209); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_sdn', 'COVERAGE', 'Sudan', 210); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_sur', 'COVERAGE', 'Suriname', 211); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_sjm', 'COVERAGE', 'Svalbard and Jan Mayen', 212); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_swz', 'COVERAGE', 'Swaziland', 213); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_swe', 'COVERAGE', 'Sweden', 214); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_che', 'COVERAGE', 'Switzerland', 215); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_syr', 'COVERAGE', 'Syrian Arab Republic', 216); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_twn', 'COVERAGE', 'Taiwan, Province of China', 217); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_tjk', 'COVERAGE', 'Tajikistan', 218); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_tza', 'COVERAGE', 'Tanzania, United Republic of', 219); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_tha', 'COVERAGE', 'Thailand', 220); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_tls', 'COVERAGE', 'Timor-Leste', 221); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_tgo', 'COVERAGE', 'Togo', 222); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_tkl', 'COVERAGE', 'Tokelau', 223); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_ton', 'COVERAGE', 'Tonga', 224); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_tto', 'COVERAGE', 'Trinidad and Tobago', 225); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_tun', 'COVERAGE', 'Tunisia', 226); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_tur', 'COVERAGE', 'Turkey', 227); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_tkm', 'COVERAGE', 'Turkmenistan', 228); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_tca', 'COVERAGE', 'Turks and Caicos Islands', 229); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_tuv', 'COVERAGE', 'Tuvalu', 230); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_uga', 'COVERAGE', 'Uganda', 231); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_ukr', 'COVERAGE', 'Ukraine', 232); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_are', 'COVERAGE', 'United Arab Emirates', 233); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_gbr', 'COVERAGE', 'United Kingdom of Great Britain and Northern Ireland', 234); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_usa', 'COVERAGE', 'United States of America', 235); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_umi', 'COVERAGE', 'United States Minor Outlying Islands', 236); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_ury', 'COVERAGE', 'Uruguay', 237); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_uzb', 'COVERAGE', 'Uzbekistan', 238); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_vut', 'COVERAGE', 'Vanuatu', 239); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_ven', 'COVERAGE', 'Venezuela (Bolivarian Republic of)', 240); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_vnm', 'COVERAGE', 'Viet Nam', 241); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_vgb', 'COVERAGE', 'Virgin Islands (British)', 242); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_vir', 'COVERAGE', 'Virgin Islands (U.S.)', 243); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_wlf', 'COVERAGE', 'Wallis and Futuna', 244); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_esh', 'COVERAGE', 'Western Sahara', 245); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_yem', 'COVERAGE', 'Yemen', 246); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_zmb', 'COVERAGE', 'Zambia', 247); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('coverage_zwe', 'COVERAGE', 'Zimbabwe', 248); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('RIGHTS', 'All Rights Reserved', 0); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('RIGHTS', 'Public Domain', 1); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('RIGHTS', 'Attribution-NonCommercial-ShareAlike License', 2); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('RIGHTS', 'Attribution-NonCommercial License', 3); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('RIGHTS', 'Attribution-NonCommercial-NoDerivs License', 4); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('RIGHTS', 'Attribution License', 5); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('RIGHTS', 'Attribution-ShareAlike License', 6); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('RIGHTS', 'Attribution-NoDerivs License', 7); -insert into T_VOCABULARY(VOC_ID_C, VOC_VALUE_C, VOC_ORDER_N) values('RIGHTS', 'No known copyright restrictions', 8); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('rights_all_rights_reserved', 'RIGHTS', 'All Rights Reserved', 0); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('rights_public_domain', 'RIGHTS', 'Public Domain', 1); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('rights_cc_ancsa', 'RIGHTS', 'Attribution-NonCommercial-ShareAlike License', 2); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('rights_cc_anc', 'RIGHTS', 'Attribution-NonCommercial License', 3); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('rights_cc_ancnd', 'RIGHTS', 'Attribution-NonCommercial-NoDerivs License', 4); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('rights_cc_a', 'RIGHTS', 'Attribution License', 5); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('rights_cc_asa', 'RIGHTS', 'Attribution-ShareAlike License', 6); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('rights_cc_and', 'RIGHTS', 'Attribution-NoDerivs License', 7); +insert into T_VOCABULARY(VOC_ID_C, VOC_NAME_C, VOC_VALUE_C, VOC_ORDER_N) values('rights_no_copyright', 'RIGHTS', 'No known copyright restrictions', 8); update T_CONFIG set CFG_VALUE_C = '6' where CFG_ID_C = 'DB_VERSION'; diff --git a/docs-web/src/main/java/com/sismics/docs/rest/resource/VocabularyResource.java b/docs-web/src/main/java/com/sismics/docs/rest/resource/VocabularyResource.java index 4dc9ca2d..5f2758aa 100644 --- a/docs-web/src/main/java/com/sismics/docs/rest/resource/VocabularyResource.java +++ b/docs-web/src/main/java/com/sismics/docs/rest/resource/VocabularyResource.java @@ -1,6 +1,16 @@ package com.sismics.docs.rest.resource; +import javax.json.Json; +import javax.json.JsonObjectBuilder; +import javax.ws.rs.FormParam; +import javax.ws.rs.PUT; import javax.ws.rs.Path; +import javax.ws.rs.core.Response; + +import com.sismics.docs.core.dao.jpa.VocabularyDao; +import com.sismics.docs.core.model.jpa.Vocabulary; +import com.sismics.rest.exception.ForbiddenClientException; +import com.sismics.rest.util.ValidationUtil; /** * Vocabulary REST resources. @@ -9,4 +19,41 @@ import javax.ws.rs.Path; */ @Path("/vocabulary") public class VocabularyResource extends BaseResource { + /** + * Add a vocabulary. + * + * @param name Name + * @param value Value + * @param order Order + * @return Response + */ + @PUT + public Response add(@FormParam("name") String name, + @FormParam("value") String value, + @FormParam("order") String orderStr) { + if (!authenticate()) { + throw new ForbiddenClientException(); + } + + // Validate input data + name = ValidationUtil.validateLength(name, "name", 1, 50, false); + value = ValidationUtil.validateLength(value, "value", 1, 100, false); + Integer order = ValidationUtil.validateInteger(orderStr, "order"); + + // Create the comment + VocabularyDao vocabularyDao = new VocabularyDao(); + Vocabulary vocabulary = new Vocabulary(); + vocabulary.setName(name); + vocabulary.setValue(value); + vocabulary.setOrder(order); + vocabularyDao.create(vocabulary); + + // Returns the comment + JsonObjectBuilder response = Json.createObjectBuilder() + .add("id", vocabulary.getId()) + .add("name", vocabulary.getName()) + .add("value", vocabulary.getValue()) + .add("order", Integer.toString(vocabulary.getOrder())); + return Response.ok().entity(response.build()).build(); + } } diff --git a/docs-web/src/test/java/com/sismics/docs/rest/TestVocabularyResource.java b/docs-web/src/test/java/com/sismics/docs/rest/TestVocabularyResource.java index a26a69c9..a30392e2 100644 --- a/docs-web/src/test/java/com/sismics/docs/rest/TestVocabularyResource.java +++ b/docs-web/src/test/java/com/sismics/docs/rest/TestVocabularyResource.java @@ -1,7 +1,14 @@ package com.sismics.docs.rest; +import javax.json.JsonObject; +import javax.ws.rs.client.Entity; +import javax.ws.rs.core.Form; + +import org.junit.Assert; import org.junit.Test; +import com.sismics.util.filter.TokenBasedSecurityFilter; + /** * Exhaustive test of the vocabulary resource. * @@ -15,5 +22,18 @@ public class TestVocabularyResource extends BaseJerseyTest { */ @Test public void testVocabularyResource() throws Exception { + // Login vocabulary1 + clientUtil.createUser("vocabulary1"); + String vocabulary1Token = clientUtil.login("vocabulary1"); + + // Create a vocabulary entry with vocabulary1 + JsonObject json = target().path("/vocabulary").request() + .cookie(TokenBasedSecurityFilter.COOKIE_NAME, vocabulary1Token) + .put(Entity.form(new Form() + .param("name", "TEST_VOC_1") + .param("value", "First value") + .param("order", "0")), JsonObject.class); + String vocabulary1Id = json.getString("id"); + Assert.assertNotNull(vocabulary1Id); } } \ No newline at end of file