Class MyUntypedData

    • Method Summary

      Modifier and Type Method Description
      int getId()
      Getter for the id.
      java.lang.String getString()
      Getter for the field _string.
      void setId​(int id)
      Setter for the id.
      void setString​(java.lang.String string)
      Setter for the field _string.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MyUntypedData

        public MyUntypedData()
        Default constructor for MyUntypedData is necessary for PojoInstantiator of HIBERNATE.
      • MyUntypedData

        public MyUntypedData​(java.lang.String string)
        Constructor for MyUntypedData with specified string.
        Parameters:
        string - a String object.
    • Method Detail

      • getId

        public int getId()
        Getter for the id.
        Returns:
        a int.
      • getString

        @Field(index=YES,
               store=YES)
        public java.lang.String getString()
        Getter for the field _string.

        Index.TOKENIZED = ignore case

        '@Analyzer(impl=WhitespaceAnalyzer.class)'

        WhitespaceAnalyzer is necessary to find object with dots at the beginning

        Overrides:
        getString in class UntypedData
        Returns:
        a String object.
      • setId

        public void setId​(int id)
        Setter for the id.
        Parameters:
        id - a int.
      • setString

        public void setString​(java.lang.String string)
        Setter for the field _string.
        Overrides:
        setString in class UntypedData
        Parameters:
        string - a String object.