From 7f2f480b25e895151d4587dd7cd8efbeb6b57a2a Mon Sep 17 00:00:00 2001 From: jendib Date: Sun, 14 Feb 2016 01:58:32 +0100 Subject: [PATCH] #65: Init vocabulary resource --- .../docs/core/dao/jpa/VocabularyDao.java | 9 + .../sismics/docs/core/model/jpa/AuditLog.java | 60 ---- .../core/model/jpa/AuthenticationToken.java | 66 ----- .../docs/core/model/jpa/BaseFunction.java | 10 - .../sismics/docs/core/model/jpa/Comment.java | 60 ---- .../sismics/docs/core/model/jpa/Config.java | 20 -- .../docs/core/model/jpa/DocumentTag.java | 40 --- .../com/sismics/docs/core/model/jpa/Role.java | 40 --- .../docs/core/model/jpa/RoleBaseFunction.java | 50 ---- .../sismics/docs/core/model/jpa/Share.java | 40 --- .../com/sismics/docs/core/model/jpa/Tag.java | 70 ----- .../docs/core/model/jpa/Vocabulary.java | 69 +++++ .../resources/db/update/dbupdate-006-0.sql | 275 ++++++++++++++++++ .../rest/resource/VocabularyResource.java | 12 + .../docs/rest/TestVocabularyResource.java | 19 ++ 15 files changed, 384 insertions(+), 456 deletions(-) create mode 100644 docs-core/src/main/java/com/sismics/docs/core/dao/jpa/VocabularyDao.java create mode 100644 docs-core/src/main/java/com/sismics/docs/core/model/jpa/Vocabulary.java create mode 100644 docs-web/src/main/java/com/sismics/docs/rest/resource/VocabularyResource.java create mode 100644 docs-web/src/test/java/com/sismics/docs/rest/TestVocabularyResource.java 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 new file mode 100644 index 00000000..a7cef7b0 --- /dev/null +++ b/docs-core/src/main/java/com/sismics/docs/core/dao/jpa/VocabularyDao.java @@ -0,0 +1,9 @@ +package com.sismics.docs.core.dao.jpa; + +/** + * Vocabulary DAO. + * + * @author bgamard + */ +public class VocabularyDao { +} diff --git a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/AuditLog.java b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/AuditLog.java index 6e38c780..ce29e1f9 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/AuditLog.java +++ b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/AuditLog.java @@ -58,110 +58,50 @@ public class AuditLog { @Column(name = "LOG_CREATEDATE_D", nullable = false) private Date createDate; - /** - * Getter of id. - * - * @return id - */ public String getId() { return id; } - /** - * Setter of id. - * - * @param id id - */ public void setId(String id) { this.id = id; } - /** - * Getter of entityId. - * - * @return entityId - */ public String getEntityId() { return entityId; } - /** - * Setter of entityId. - * - * @param entityId entityId - */ public void setEntityId(String entityId) { this.entityId = entityId; } - /** - * Getter of entityClass. - * - * @return entityClass - */ public String getEntityClass() { return entityClass; } - /** - * Setter of entityClass. - * - * @param entityClass entityClass - */ public void setEntityClass(String entityClass) { this.entityClass = entityClass; } - /** - * Getter of message. - * - * @return message - */ public String getMessage() { return message; } - /** - * Setter of message. - * - * @param message message - */ public void setMessage(String message) { this.message = message; } - /** - * Getter of type. - * - * @return type - */ public AuditLogType getType() { return type; } - /** - * Setter of type. - * - * @param type type - */ public void setType(AuditLogType type) { this.type = type; } - /** - * Getter of createDate. - * - * @return createDate - */ public Date getCreateDate() { return createDate; } - /** - * Setter of createDate. - * - * @param createDate createDate - */ public void setCreateDate(Date createDate) { this.createDate = createDate; } diff --git a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/AuthenticationToken.java b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/AuthenticationToken.java index 2d41a3ed..c5030e0d 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/AuthenticationToken.java +++ b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/AuthenticationToken.java @@ -60,124 +60,58 @@ public class AuthenticationToken { @Column(name = "AUT_LASTCONNECTIONDATE_D") private Date lastConnectionDate; - /** - * Getter of id. - * - * @return id - */ public String getId() { return id; } - /** - * Setter of id. - * - * @param id id - */ public void setId(String id) { this.id = id; } - /** - * Getter of userId. - * - * @return userId - */ public String getUserId() { return userId; } - /** - * Setter of userId. - * - * @param userId userId - */ public void setUserId(String userId) { this.userId = userId; } - /** - * Getter of longLasted. - * - * @return longLasted - */ public boolean isLongLasted() { return longLasted; } - /** - * Setter of longLasted. - * - * @param longLasted longLasted - */ public void setLongLasted(boolean longLasted) { this.longLasted = longLasted; } - /** - * Getter of ip. - * @return ip - */ public String getIp() { return ip; } - /** - * Setter of ip. - * @param ip ip - */ public void setIp(String ip) { this.ip = ip; } - /** - * Getter of userAgent. - * @return userAgent - */ public String getUserAgent() { return userAgent; } - /** - * Setter of userAgent. - * @param userAgent userAgent - */ public void setUserAgent(String userAgent) { this.userAgent = userAgent; } - /** - * Getter of creationDate. - * - * @return creationDate - */ public Date getCreationDate() { return creationDate; } - /** - * Setter of creationDate. - * - * @param creationDate creationDate - */ public void setCreationDate(Date creationDate) { this.creationDate = creationDate; } - /** - * Getter of lastConnectionDate. - * - * @return lastConnectionDate - */ public Date getLastConnectionDate() { return lastConnectionDate; } - /** - * Setter of lastConnectionDate. - * - * @param lastConnectionDate lastConnectionDate - */ public void setLastConnectionDate(Date lastConnectionDate) { this.lastConnectionDate = lastConnectionDate; } diff --git a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/BaseFunction.java b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/BaseFunction.java index 56bc1418..530d9fe8 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/BaseFunction.java +++ b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/BaseFunction.java @@ -22,20 +22,10 @@ public class BaseFunction { @Column(name = "BAF_ID_C", length = 10) private String id; - /** - * Getter of id. - * - * @return id - */ public String getId() { return id; } - /** - * Setter of id. - * - * @param id id - */ public void setId(String id) { this.id = id; } diff --git a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Comment.java b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Comment.java index 9b3fd2bf..574eedc7 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Comment.java +++ b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Comment.java @@ -54,111 +54,51 @@ public class Comment implements Loggable { @Column(name = "COM_DELETEDATE_D") private Date deleteDate; - /** - * Getter of id. - * - * @return the id - */ public String getId() { return id; } - /** - * Setter of id. - * - * @param id id - */ public void setId(String id) { this.id = id; } - /** - * Getter of documentId. - * - * @return the documentId - */ public String getDocumentId() { return documentId; } - /** - * Setter of documentId. - * - * @param documentId documentId - */ public void setDocumentId(String documentId) { this.documentId = documentId; } - /** - * Getter of createDate. - * - * @return the createDate - */ public Date getCreateDate() { return createDate; } - /** - * Setter of createDate. - * - * @param createDate createDate - */ public void setCreateDate(Date createDate) { this.createDate = createDate; } - /** - * Getter of deleteDate. - * - * @return the deleteDate - */ @Override public Date getDeleteDate() { return deleteDate; } - /** - * Setter of deleteDate. - * - * @param deleteDate deleteDate - */ public void setDeleteDate(Date deleteDate) { this.deleteDate = deleteDate; } - /** - * Getter of content. - * - * @return the content - */ public String getContent() { return content; } - /** - * Setter of content. - * - * @param content content - */ public void setContent(String content) { this.content = content; } - /** - * Getter of userId. - * - * @return the userId - */ public String getUserId() { return userId; } - /** - * Setter of userId. - * - * @param userId userId - */ public void setUserId(String userId) { this.userId = userId; } diff --git a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Config.java b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Config.java index 26f89601..65c196d6 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Config.java +++ b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Config.java @@ -32,38 +32,18 @@ public class Config { @Column(name = "CFG_VALUE_C", length = 250) private String value; - /** - * Getter of id. - * - * @return id - */ public ConfigType getId() { return id; } - /** - * Setter of id. - * - * @param id id - */ public void setId(ConfigType id) { this.id = id; } - /** - * Getter of value. - * - * @return value - */ public String getValue() { return value; } - /** - * Setter of value. - * - * @param value value - */ public void setValue(String value) { this.value = value; } diff --git a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/DocumentTag.java b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/DocumentTag.java index af8451c5..51b0d51a 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/DocumentTag.java +++ b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/DocumentTag.java @@ -48,74 +48,34 @@ public class DocumentTag implements Serializable { @Column(name = "DOT_DELETEDATE_D") private Date deleteDate; - /** - * Getter of id. - * - * @return id - */ public String getId() { return id; } - /** - * Setter of id. - * - * @param id id - */ public void setId(String id) { this.id = id; } - /** - * Getter de documentId. - * - * @return the documentId - */ public String getDocumentId() { return documentId; } - /** - * Setter de documentId. - * - * @param documentId documentId - */ public void setDocumentId(String documentId) { this.documentId = documentId; } - /** - * Getter de tagId. - * - * @return the tagId - */ public String getTagId() { return tagId; } - /** - * Setter de tagId. - * - * @param tagId tagId - */ public void setTagId(String tagId) { this.tagId = tagId; } - /** - * Getter of deleteDate. - * - * @return the deleteDate - */ public Date getDeleteDate() { return deleteDate; } - /** - * Setter of deleteDate. - * - * @param deleteDate deleteDate - */ public void setDeleteDate(Date deleteDate) { this.deleteDate = deleteDate; } diff --git a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Role.java b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Role.java index bfdf1449..287401d6 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Role.java +++ b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Role.java @@ -42,74 +42,34 @@ public class Role { @Column(name = "ROL_DELETEDATE_D") private Date deleteDate; - /** - * Getter of id. - * - * @return id - */ public String getId() { return id; } - /** - * Setter of id. - * - * @param id id - */ public void setId(String id) { this.id = id; } - /** - * Getter of name. - * - * @return name - */ public String getName() { return name; } - /** - * Setter of name. - * - * @param name name - */ public void setName(String name) { this.name = name; } - /** - * Getter of createDate. - * - * @return createDate - */ public Date getCreateDate() { return createDate; } - /** - * Setter of createDate. - * - * @param createDate createDate - */ public void setCreateDate(Date createDate) { this.createDate = createDate; } - /** - * Getter of deleteDate. - * - * @return deleteDate - */ public Date getDeleteDate() { return deleteDate; } - /** - * Setter of deleteDate. - * - * @param deleteDate deleteDate - */ public void setDeleteDate(Date deleteDate) { this.deleteDate = deleteDate; } diff --git a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/RoleBaseFunction.java b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/RoleBaseFunction.java index d3f7303f..d4600244 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/RoleBaseFunction.java +++ b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/RoleBaseFunction.java @@ -48,92 +48,42 @@ public class RoleBaseFunction { @Column(name = "RBF_DELETEDATE_D") private Date deleteDate; - /** - * Getter of id. - * - * @return id - */ public String getId() { return id; } - /** - * Setter of id. - * - * @param id id - */ public void setId(String id) { this.id = id; } - /** - * Getter of roleId. - * - * @return roleId - */ public String getRoleId() { return roleId; } - /** - * Setter of roleId. - * - * @param roleId roleId - */ public void setRoleId(String roleId) { this.roleId = roleId; } - /** - * Getter of baseFunctionId. - * - * @return baseFunctionId - */ public String getBaseFunctionId() { return baseFunctionId; } - /** - * Setter of baseFunctionId. - * - * @param baseFunctionId baseFunctionId - */ public void setBaseFunctionId(String baseFunctionId) { this.baseFunctionId = baseFunctionId; } - /** - * Getter of createDate. - * - * @return createDate - */ public Date getCreateDate() { return createDate; } - /** - * Setter of createDate. - * - * @param createDate createDate - */ public void setCreateDate(Date createDate) { this.createDate = createDate; } - /** - * Getter of deleteDate. - * - * @return deleteDate - */ public Date getDeleteDate() { return deleteDate; } - /** - * Setter of deleteDate. - * - * @param deleteDate deleteDate - */ public void setDeleteDate(Date deleteDate) { this.deleteDate = deleteDate; } diff --git a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Share.java b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Share.java index 565d4c2a..f27b6a65 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Share.java +++ b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Share.java @@ -40,74 +40,34 @@ public class Share { @Column(name = "SHA_DELETEDATE_D") private Date deleteDate; - /** - * Getter of id. - * - * @return the id - */ public String getId() { return id; } - /** - * Setter of id. - * - * @param id id - */ public void setId(String id) { this.id = id; } - /** - * Getter of name. - * - * @return the name - */ public String getName() { return name; } - /** - * Setter of name. - * - * @param name name - */ public void setName(String name) { this.name = name; } - /** - * Getter of createDate. - * - * @return the createDate - */ public Date getCreateDate() { return createDate; } - /** - * Setter of createDate. - * - * @param createDate createDate - */ public void setCreateDate(Date createDate) { this.createDate = createDate; } - /** - * Getter of deleteDate. - * - * @return the deleteDate - */ public Date getDeleteDate() { return deleteDate; } - /** - * Setter of deleteDate. - * - * @param deleteDate deleteDate - */ public void setDeleteDate(Date deleteDate) { this.deleteDate = deleteDate; } diff --git a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Tag.java b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Tag.java index 708eb6ae..82a2f2cd 100644 --- a/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Tag.java +++ b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Tag.java @@ -60,129 +60,59 @@ public class Tag implements Loggable { @Column(name = "TAG_COLOR_C", nullable = false, length = 7) private String color; - /** - * Getter of id. - * - * @return id - */ public String getId() { return id; } - /** - * Setter of id. - * - * @param id id - */ public void setId(String id) { this.id = id; } - /** - * Getter of userId. - * - * @return the userId - */ public String getUserId() { return userId; } - /** - * Setter of userId. - * - * @param userId userId - */ public void setUserId(String userId) { this.userId = userId; } - /** - * Getter of name. - * - * @return name - */ public String getName() { return name; } - /** - * Setter of name. - * - * @param name name - */ public void setName(String name) { this.name = name; } - /** - * Getter of createDate. - * - * @return createDate - */ public Date getCreateDate() { return createDate; } - /** - * Setter of createDate. - * - * @param createDate createDate - */ public void setCreateDate(Date createDate) { this.createDate = createDate; } - /** - * Getter of color. - * - * @return the color - */ public String getColor() { return color; } - /** - * Setter of color. - * - * @param color color - */ public void setColor(String color) { this.color = color; } - /** - * Getter of deleteDate. - * - * @return deleteDate - */ @Override public Date getDeleteDate() { return deleteDate; } - /** - * Setter of deleteDate. - * - * @param deleteDate deleteDate - */ public void setDeleteDate(Date deleteDate) { this.deleteDate = deleteDate; } - /** - * Getter of parentId. - * - * @return parentId - */ public String getParentId() { return parentId; } - /** - * Setter of parentId. - * - * @param parentId parentId - */ public void setParentId(String parentId) { this.parentId = parentId; } 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 new file mode 100644 index 00000000..79a721a9 --- /dev/null +++ b/docs-core/src/main/java/com/sismics/docs/core/model/jpa/Vocabulary.java @@ -0,0 +1,69 @@ +package com.sismics.docs.core.model.jpa; + +import javax.persistence.Column; +import javax.persistence.Entity; +import javax.persistence.Id; +import javax.persistence.Table; + +import com.google.common.base.MoreObjects; + +/** + * Vocabulary entity. + * + * @author bgamard + */ +@Entity +@Table(name = "T_VOCABULARY") +public class Vocabulary { + /** + * Vocabulary ID. + */ + @Id + @Column(name = "VOC_ID_C", length = 50) + private String id; + + /** + * Vocabulary value. + */ + @Column(name = "VOC_VALUE_C", length = 100) + private String value; + + /** + * Vocabulary order. + */ + @Column(name = "VOC_ORDER_N") + private int order; + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + public int getOrder() { + return order; + } + + public void setOrder(int order) { + this.order = order; + } + + @Override + public String toString() { + return MoreObjects.toStringHelper(this) + .add("id", id) + .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 3213010c..be2e0966 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,3 +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 ); + +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_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_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); + 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 new file mode 100644 index 00000000..4dc9ca2d --- /dev/null +++ b/docs-web/src/main/java/com/sismics/docs/rest/resource/VocabularyResource.java @@ -0,0 +1,12 @@ +package com.sismics.docs.rest.resource; + +import javax.ws.rs.Path; + +/** + * Vocabulary REST resources. + * + * @author bgamard + */ +@Path("/vocabulary") +public class VocabularyResource extends BaseResource { +} 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 new file mode 100644 index 00000000..a26a69c9 --- /dev/null +++ b/docs-web/src/test/java/com/sismics/docs/rest/TestVocabularyResource.java @@ -0,0 +1,19 @@ +package com.sismics.docs.rest; + +import org.junit.Test; + +/** + * Exhaustive test of the vocabulary resource. + * + * @author bgamard + */ +public class TestVocabularyResource extends BaseJerseyTest { + /** + * Test the vocabulary resource. + * + * @throws Exception + */ + @Test + public void testVocabularyResource() throws Exception { + } +} \ No newline at end of file