test_class.file: ontopia-engine/src/test/java/net/ontopia/topicmaps/impl/rdbms/OccurrenceTest.java
test_class.identifier: OccurrenceTest
test_class.superclass: extends net.ontopia.topicmaps.core.OccurrenceTest
test_case.body: @Test
    public void testIssue494() throws Exception {
      // bug is only triggered if the value is committed
      topicmap.getStore().commit();
      Assert.assertNotNull("Bug 494: empty occurrence value returned as null", occurrence.getValue());
    }
test_case.class_method_signature: OccurrenceTest.testIssue494()
test_case.full_signature: @Test public void testIssue494()
test_case.identifier: testIssue494
test_case.invocations: commit getStore assertNotNull getValue
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testIssue494()
focal_class.declarator: CLASS_INDICATOR = "O"
focal_class.modifier: public static final
focal_class.original_string: public static final String CLASS_INDICATOR = "O";
focal_class.type: String
focal_class.var_name: CLASS_INDICATOR
focal_class.declarator: LF_topic = 2
focal_class.modifier: protected static final
focal_class.original_string: protected static final int LF_topic = 2;
focal_class.type: int
focal_class.var_name: LF_topic
focal_class.declarator: LF_scope = 3
focal_class.modifier: protected static final
focal_class.original_string: protected static final int LF_scope = 3;
focal_class.type: int
focal_class.var_name: LF_scope
focal_class.declarator: LF_type = 4
focal_class.modifier: protected static final
focal_class.original_string: protected static final int LF_type = 4;
focal_class.type: int
focal_class.var_name: LF_type
focal_class.declarator: LF_datatype = 5
focal_class.modifier: protected static final
focal_class.original_string: protected static final int LF_datatype = 5;
focal_class.type: int
focal_class.var_name: LF_datatype
focal_class.declarator: LF_length = 6
focal_class.modifier: protected static final
focal_class.original_string: protected static final int LF_length = 6;
focal_class.type: int
focal_class.var_name: LF_length
focal_class.declarator: LF_hashcode = 7
focal_class.modifier: protected static final
focal_class.original_string: protected static final int LF_hashcode = 7;
focal_class.type: int
focal_class.var_name: LF_hashcode
focal_class.declarator: LF_value = 8
focal_class.modifier: protected static final
focal_class.original_string: protected static final int LF_value = 8;
focal_class.type: int
focal_class.var_name: LF_value
focal_class.declarator: LF_reifier = 9
focal_class.modifier: protected static final
focal_class.original_string: protected static final int LF_reifier = 9;
focal_class.type: int
focal_class.var_name: LF_reifier
focal_class.declarator: fields = {"sources", "topicmap", "topic", "scope", "type", "datatype", "length", "hashcode", "value", "reifier"}
focal_class.modifier: protected static final
focal_class.original_string: protected static final String[] fields = {"sources", "topicmap", "topic", "scope", "type", "datatype", "length", "hashcode", "value", "reifier"};
focal_class.type: String[]
focal_class.var_name: fields
focal_class.file: ontopia-engine/src/main/java/net/ontopia/topicmaps/impl/rdbms/Occurrence.java
focal_class.identifier: Occurrence
focal_class.interfaces: implements OccurrenceIF
focal_class.class_method_signature: Occurrence.detach()
focal_class.full_signature: @Override public void detach()
focal_class.identifier: detach
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void detach()
focal_class.class_method_signature: Occurrence.Occurrence()
focal_class.full_signature: public  Occurrence()
focal_class.identifier: Occurrence
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  Occurrence()
focal_class.class_method_signature: Occurrence.Occurrence(TransactionIF txn)
focal_class.full_signature: public  Occurrence(TransactionIF txn)
focal_class.identifier: Occurrence
focal_class.modifiers: public
focal_class.parameters: (TransactionIF txn)
focal_class.signature:  Occurrence(TransactionIF txn)
focal_class.class_method_signature: Occurrence._p_getFieldCount()
focal_class.full_signature: @Override public int _p_getFieldCount()
focal_class.identifier: _p_getFieldCount
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int _p_getFieldCount()
focal_class.class_method_signature: Occurrence.getClassIndicator()
focal_class.full_signature: @Override public String getClassIndicator()
focal_class.identifier: getClassIndicator
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getClassIndicator()
focal_class.class_method_signature: Occurrence.getObjectId()
focal_class.full_signature: @Override public String getObjectId()
focal_class.identifier: getObjectId
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getObjectId()
focal_class.class_method_signature: Occurrence.remove()
focal_class.full_signature: @Override public void remove()
focal_class.identifier: remove
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void remove()
focal_class.class_method_signature: Occurrence.getTopic()
focal_class.full_signature: @Override public TopicIF getTopic()
focal_class.identifier: getTopic
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: TopicIF
focal_class.signature: TopicIF getTopic()
focal_class.class_method_signature: Occurrence.setTopic(TopicIF topic)
focal_class.full_signature: protected void setTopic(TopicIF topic)
focal_class.identifier: setTopic
focal_class.modifiers: protected
focal_class.parameters: (TopicIF topic)
focal_class.return: void
focal_class.signature: void setTopic(TopicIF topic)
focal_class.class_method_signature: Occurrence.setTopicMap(TopicMap topicmap)
focal_class.full_signature: protected void setTopicMap(TopicMap topicmap)
focal_class.identifier: setTopicMap
focal_class.modifiers: protected
focal_class.parameters: (TopicMap topicmap)
focal_class.return: void
focal_class.signature: void setTopicMap(TopicMap topicmap)
focal_class.class_method_signature: Occurrence.getDataType()
focal_class.full_signature: @Override public LocatorIF getDataType()
focal_class.identifier: getDataType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: LocatorIF
focal_class.signature: LocatorIF getDataType()
focal_class.class_method_signature: Occurrence.setDataType(LocatorIF datatype)
focal_class.full_signature: protected void setDataType(LocatorIF datatype)
focal_class.identifier: setDataType
focal_class.modifiers: protected
focal_class.parameters: (LocatorIF datatype)
focal_class.return: void
focal_class.signature: void setDataType(LocatorIF datatype)
focal_class.class_method_signature: Occurrence.getValue()
focal_class.full_signature: @Override public String getValue()
focal_class.identifier: getValue
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getValue()
focal_class.class_method_signature: Occurrence.setValue(String value)
focal_class.full_signature: @Override public void setValue(String value)
focal_class.identifier: setValue
focal_class.modifiers: @Override public
focal_class.parameters: (String value)
focal_class.return: void
focal_class.signature: void setValue(String value)
focal_class.class_method_signature: Occurrence.setValue(String value, LocatorIF datatype)
focal_class.full_signature: @Override public void setValue(String value, LocatorIF datatype)
focal_class.identifier: setValue
focal_class.modifiers: @Override public
focal_class.parameters: (String value, LocatorIF datatype)
focal_class.return: void
focal_class.signature: void setValue(String value, LocatorIF datatype)
focal_class.class_method_signature: Occurrence.setValue(Object value, LocatorIF datatype, long length, long hashcode)
focal_class.full_signature: private void setValue(Object value, LocatorIF datatype, long length, long hashcode)
focal_class.identifier: setValue
focal_class.modifiers: private
focal_class.parameters: (Object value, LocatorIF datatype, long length, long hashcode)
focal_class.return: void
focal_class.signature: void setValue(Object value, LocatorIF datatype, long length, long hashcode)
focal_class.class_method_signature: Occurrence.getReader()
focal_class.full_signature: @Override public Reader getReader()
focal_class.identifier: getReader
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Reader
focal_class.signature: Reader getReader()
focal_class.class_method_signature: Occurrence.setReader(Reader value, long length, LocatorIF datatype)
focal_class.full_signature: @Override public void setReader(Reader value, long length, LocatorIF datatype)
focal_class.identifier: setReader
focal_class.modifiers: @Override public
focal_class.parameters: (Reader value, long length, LocatorIF datatype)
focal_class.return: void
focal_class.signature: void setReader(Reader value, long length, LocatorIF datatype)
focal_class.class_method_signature: Occurrence.getLocator()
focal_class.full_signature: @Override public LocatorIF getLocator()
focal_class.identifier: getLocator
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: LocatorIF
focal_class.signature: LocatorIF getLocator()
focal_class.class_method_signature: Occurrence.setLocator(LocatorIF locator)
focal_class.full_signature: @Override public void setLocator(LocatorIF locator)
focal_class.identifier: setLocator
focal_class.modifiers: @Override public
focal_class.parameters: (LocatorIF locator)
focal_class.return: void
focal_class.signature: void setLocator(LocatorIF locator)
focal_class.class_method_signature: Occurrence.getLength()
focal_class.full_signature: @Override public long getLength()
focal_class.identifier: getLength
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: long
focal_class.signature: long getLength()
focal_class.class_method_signature: Occurrence.getScope()
focal_class.full_signature: @Override public Collection<TopicIF> getScope()
focal_class.identifier: getScope
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Collection<TopicIF>
focal_class.signature: Collection<TopicIF> getScope()
focal_class.class_method_signature: Occurrence.addTheme(TopicIF theme)
focal_class.full_signature: @Override public void addTheme(TopicIF theme)
focal_class.identifier: addTheme
focal_class.modifiers: @Override public
focal_class.parameters: (TopicIF theme)
focal_class.return: void
focal_class.signature: void addTheme(TopicIF theme)
focal_class.class_method_signature: Occurrence.removeTheme(TopicIF theme)
focal_class.full_signature: @Override public void removeTheme(TopicIF theme)
focal_class.identifier: removeTheme
focal_class.modifiers: @Override public
focal_class.parameters: (TopicIF theme)
focal_class.return: void
focal_class.signature: void removeTheme(TopicIF theme)
focal_class.class_method_signature: Occurrence.getType()
focal_class.full_signature: @Override public TopicIF getType()
focal_class.identifier: getType
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: TopicIF
focal_class.signature: TopicIF getType()
focal_class.class_method_signature: Occurrence.setType(TopicIF type)
focal_class.full_signature: @Override public void setType(TopicIF type)
focal_class.identifier: setType
focal_class.modifiers: @Override public
focal_class.parameters: (TopicIF type)
focal_class.return: void
focal_class.signature: void setType(TopicIF type)
focal_class.class_method_signature: Occurrence.getReifier()
focal_class.full_signature: @Override public TopicIF getReifier()
focal_class.identifier: getReifier
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: TopicIF
focal_class.signature: TopicIF getReifier()
focal_class.class_method_signature: Occurrence.setReifier(TopicIF _reifier)
focal_class.full_signature: @Override public void setReifier(TopicIF _reifier)
focal_class.identifier: setReifier
focal_class.modifiers: @Override public
focal_class.parameters: (TopicIF _reifier)
focal_class.return: void
focal_class.signature: void setReifier(TopicIF _reifier)
focal_class.class_method_signature: Occurrence.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: Occurrence.syncAfterMerge(IdentityIF source, IdentityIF target)
focal_class.full_signature: @Override public void syncAfterMerge(IdentityIF source, IdentityIF target)
focal_class.identifier: syncAfterMerge
focal_class.modifiers: @Override public
focal_class.parameters: (IdentityIF source, IdentityIF target)
focal_class.return: void
focal_class.signature: void syncAfterMerge(IdentityIF source, IdentityIF target)
focal_class.superclass: extends TMObject
focal_method.body: @Override
    public String getValue() {
      Object value = loadField(LF_value);
      if (value instanceof String) {
        return (String) value;
      } else if (value instanceof OnDemandValue) {
        OnDemandValue odv = (OnDemandValue)value;
        try {
          Reader r = (Reader)odv.getValue(_p_getTransaction());
          try {
            return IOUtils.toString(r);
          } finally {
            r.close();
          }
        } catch (IOException e) {
          throw new OntopiaRuntimeException(e);
        }
      } else if (value != null) {
        throw new OntopiaRuntimeException("Occurrence value cannot be non-null at this point: " + value);
      } else {
        return null; // FIXME: or possibly something else
      }
    }
focal_method.class_method_signature: Occurrence.getValue()
focal_method.full_signature: @Override public String getValue()
focal_method.identifier: getValue
focal_method.invocations: loadField getValue _p_getTransaction toString close
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: String
focal_method.signature: String getValue()