import eu.etaxonomy.cdm.model.agent.TeamOrPersonBase;\r
import eu.etaxonomy.cdm.model.common.CdmBase;\r
import eu.etaxonomy.cdm.model.common.DescriptionElementSource;\r
-import eu.etaxonomy.cdm.model.description.DescriptionElementBase;\r
import eu.etaxonomy.cdm.model.description.Feature;\r
import eu.etaxonomy.cdm.model.description.TaxonDescription;\r
import eu.etaxonomy.cdm.model.description.TextData;\r
validperiod_start varchar(255),
validperiod_freetext varchar(30),
iso3166_a2 varchar(2),
- createdby_id integer,
+ isTechnical bit,
+ createdby_id integer,
updatedby_id integer,
kindof_id integer,
partof_id integer,
shape_id integer,
type_id integer,
iso3166_a2 varchar(2),
- symmetric bit,
+ isTechnical bit,
+ symmetric bit,
transitive bit,
lsid_authority varchar(255),
lsid_lsid varchar(255),
uuid varchar(255),
updated timestamp,
flag bit not null,
- isTechnical bit not null,
markedObj_type varchar(255),
markedObj_id integer not null,
createdby_id integer,
uuid varchar(255),
updated timestamp,
flag bit,
- isTechnical bit,
- createdby_id integer,
+ createdby_id integer,
updatedby_id integer,
markertype_id integer,
primary key (id, REV)
VALIDPERIOD_FREETEXT CDATA #IMPLIED
VALIDPERIOD_START CDATA #IMPLIED
ISO3166_A2 CDATA #IMPLIED
+ ISTECHNICAL CDATA #IMPLIED
CREATEDBY_ID CDATA #IMPLIED
UPDATEDBY_ID CDATA #IMPLIED
KINDOF_ID CDATA #IMPLIED
ISO3166_A2 CDATA #IMPLIED
ISO639_1 CDATA #IMPLIED
ISO639_2 CDATA #IMPLIED
+ ISTECHNICAL CDATA #IMPLIED
SUPPORTSCATEGORICALDATA CDATA #IMPLIED
SUPPORTSCOMMONTAXONNAME CDATA #IMPLIED
SUPPORTSDISTRIBUTION CDATA #IMPLIED
UUID CDATA #IMPLIED
UPDATED CDATA #IMPLIED
FLAG CDATA #IMPLIED
- ISTECHNICAL CDATA #IMPLIED
MARKEDOBJ_TYPE CDATA #IMPLIED
MARKEDOBJ_ID CDATA #IMPLIED
CREATEDBY_ID CDATA #IMPLIED
UUID CDATA #IMPLIED
UPDATED CDATA #IMPLIED
FLAG CDATA #IMPLIED
- ISTECHNICAL CDATA #IMPLIED
CREATEDBY_ID CDATA #IMPLIED
UPDATEDBY_ID CDATA #IMPLIED
MARKERTYPE_ID CDATA #IMPLIED
* be handled by SCHEMA_VALIDATION.UPDATE\r
* The last number represents the date of change.\r
*/\r
- private static final String dbSchemaVersion = "2.1.2.0.200909211654";\r
+ private static final String dbSchemaVersion = "2.1.2.1.200909212019";\r
\r
public enum MetaDataPropertyName{\r
DB_SCHEMA_VERSION\r
@JoinColumn(name = "markedObj_id")
@NotAudited
private AnnotatableEntity markedObj;
-
- @XmlAttribute(name = "isTechnical")
- private boolean isTechnical=false;
/**
* Factory method
return getFlag();
}
- /**
- * A flag indicating if the marked value is user content or technical information
- * to be used by applications only. E.g. a FeatureTree may have a marker that defines
- * the role of this FeatureTree ("for ordering") whereas a {@link eu.etaxonomy.cdm.model.taxon.Taxon taxon}
- * may have a user defined marker "completed" that indicates that this taxon does not
- * need further investigation. The earlier will be flagged isTechnical=true whereas
- * the later will be flagged as isTechnical=false
- * @return the isTechnical
- */
- public boolean isTechnical() {
- return isTechnical;
- }
-
- /**
- * @param isTechnical the isTechnical to set
- */
- public void setTechnical(boolean isTechnical) {
- this.isTechnical = isTechnical;
- }
//****************** CLONE ************************************************/
import javax.persistence.*;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
return new MarkerType(term, label, labelAbbrev);
}
- protected static MarkerType getTermByUuid(UUID uuid){
- if (termMap == null){
- DefaultTermInitializer vocabularyStore = new DefaultTermInitializer();
- vocabularyStore.initialize();
- }
- return (MarkerType)termMap.get(uuid);
- }
+
+
+ @XmlAttribute(name = "isTechnical")
+ private boolean isTechnical=false;
+
+
/**
*/
public MarkerType() {
}
+
+ /**
+ * A flag indicating if markers of this type are user content or technical information
+ * to be used by applications only. E.g. a FeatureTree may have a marker that defines
+ * the role of this FeatureTree ("for ordering") whereas a {@link eu.etaxonomy.cdm.model.taxon.Taxon taxon}
+ * may have a user defined marker "completed" that indicates that this taxon does not
+ * need further investigation. The earlier will be flagged isTechnical=true whereas
+ * the later will be flagged as isTechnical=false
+ * @return the isTechnical
+ */
+ public boolean isTechnical() {
+ return isTechnical;
+ }
+
+ /**
+ * @param isTechnical the isTechnical to set
+ */
+ public void setTechnical(boolean isTechnical) {
+ this.isTechnical = isTechnical;
+ }
+//***************************** CONSTRUCTOR **************************************/
+
/**
* Constructor
* @param term
super(term, label, labelAbbrev);
}
-
+//***************************** TERMS **************************************/
+
+ protected static MarkerType getTermByUuid(UUID uuid){
+ if (termMap == null){
+ DefaultTermInitializer vocabularyStore = new DefaultTermInitializer();
+ vocabularyStore.initialize();
+ }
+ return (MarkerType)termMap.get(uuid);
+ }
+
public static final MarkerType IMPORTED(){
return getTermByUuid(uuidImported);
}
import org.hibernate.envers.Audited;
/**
+ * Abstract base class for original sources.
+ * An original source can be used in different ways.<BR>
+ * 1.) As a referencing system. The original source holds all information about the reference,
+ * the microReference (page, figure, ...), the identifier used in for the referenced object in the
+ * reference, a namespace that makes this identifier unique, the original name string that in
+ * general stores the representation of the referenced object within the source (if a differing
+ * string is used in the source then for the CDM object
+ *
+ *
* Other names/labels/titles (abreviated or not) for the same object (person,
* reference, source, etc.).
- * It can also be used to store the id, namespace/tablename from an import source into CDM.
+ *
+ * 2.) Dataprovenance: When importing data from another (database) datasource the identifier, namespace/tablename
+ * from an import source into CDM.
* E.g. when importing SDD data here you may store the filename and the id used in the SDD file here.
*
* @author m.doering
try {\r
connection = getConnection();\r
IDataSet dataSet = new FlatXmlDataSet(new InputStreamReader(termsDataSet.getInputStream()),new InputStreamReader(termsDtd.getInputStream()));\r
+ \r
DatabaseOperation.CLEAN_INSERT.execute(connection, dataSet);\r
} catch (Exception e) {\r
logger.error(e);\r
logger.error(sqle);\r
}\r
}\r
+ \r
transactionManager.commit(txStatus);\r
\r
for(VocabularyEnum vocabularyType : VocabularyEnum.values()) {\r
validperiod_freetext varchar(255),
validperiod_start varchar(255),
iso3166_a2 varchar(2),
- createdby_id integer,
+ isTechnical bit,
+ createdby_id integer,
updatedby_id integer,
kindof_id integer,
partof_id integer,
shape_id integer,
type_id integer,
iso3166_a2 varchar(2),
- lsid_authority varchar(255),
+ isTechnical bit,
+ lsid_authority varchar(255),
lsid_lsid varchar(255),
lsid_namespace varchar(255),
lsid_object varchar(255),
uuid varchar(36),
updated timestamp,
flag bit not null,
- isTechnical bit not null,
- markedObj_type varchar(255),
+ markedObj_type varchar(255),
markedObj_id integer not null,
createdby_id integer,
updatedby_id integer,
uuid varchar(36),
updated timestamp,
flag bit,
- isTechnical bit,
createdby_id integer,
updatedby_id integer,
markertype_id integer,
<ANNOTATION_ANNOTATION ANNOTATION_ID="1" ANNOTATIONS_ID="5"/>
<ANNOTATION_MARKER ANNOTATION_ID="2" MARKERS_ID="1"/>
<ANNOTATION_MARKER ANNOTATION_ID="3" MARKERS_ID="2"/>
- <MARKER ID="1" CREATED="2008-12-10 09:56:07.0" UUID="4a3e2cf8-64d4-4b61-8579-364780afb7cb" UPDATED="2008-12-10 09:56:07.253" FLAG="true" ISTECHNICAL="false" MARKERTYPE_ID="893" MARKEDOBJ_ID="2" MARKEDOBJ_TYPE="Annotation"/>
- <MARKER ID="2" CREATED="2008-12-10 09:56:07.0" UUID="564c04a5-ecb8-49df-a578-1671a68a5d30" UPDATED="2008-12-10 09:56:07.253" FLAG="true" ISTECHNICAL="false" MARKERTYPE_ID="893" MARKEDOBJ_ID="3" MARKEDOBJ_TYPE="Annotation"/>
+ <MARKER ID="1" CREATED="2008-12-10 09:56:07.0" UUID="4a3e2cf8-64d4-4b61-8579-364780afb7cb" UPDATED="2008-12-10 09:56:07.253" FLAG="true" MARKERTYPE_ID="893" MARKEDOBJ_ID="2" MARKEDOBJ_TYPE="Annotation"/>
+ <MARKER ID="2" CREATED="2008-12-10 09:56:07.0" UUID="564c04a5-ecb8-49df-a578-1671a68a5d30" UPDATED="2008-12-10 09:56:07.253" FLAG="true" MARKERTYPE_ID="893" MARKEDOBJ_ID="3" MARKEDOBJ_TYPE="Annotation"/>
</dataset>
VALIDPERIOD_END CDATA #IMPLIED
VALIDPERIOD_START CDATA #IMPLIED
ISO3166_A2 CDATA #IMPLIED
+ ISTECHNICAL CDATA #REQUIRED
CREATEDBY_ID CDATA #IMPLIED
UPDATEDBY_ID CDATA #IMPLIED
KINDOF_ID CDATA #IMPLIED
ORDERINDEX CDATA #IMPLIED
ISO639_1 CDATA #IMPLIED
ISO639_2 CDATA #IMPLIED
+ ISTECHNICAL CDATA #IMPLIED
DEFAULTCOLOR CDATA #IMPLIED
SUPPORTSCOMMONTAXONNAME CDATA #IMPLIED
SUPPORTSDISTRIBUTION CDATA #IMPLIED
validperiod_freetext varchar(255),
validperiod_start varchar(255),
iso3166_a2 varchar(2),
- createdby_id integer,
+ isTechnical bit,
+ createdby_id integer,
updatedby_id integer,
kindof_id integer,
partof_id integer,
symmetric bit,
transitive bit,
iso3166_a2 varchar(2),
- supportscategoricaldata bit,
+ isTechnical bit,
+ supportscategoricaldata bit,
supportscommontaxonname bit,
supportsdistribution bit,
supportsindividualassociation bit,
uuid varchar(36),
updated timestamp,
flag bit not null,
- isTechnical bit not null,
markedObj_type varchar(255),
markedObj_id integer not null,
createdby_id integer,
uuid varchar(36),
updated timestamp,
flag bit,
- isTechnical bit,
createdby_id integer,
updatedby_id integer,
markertype_id integer,