Class VitamSequence

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Map<java.lang.String,​java.lang.Object>, org.bson.conversions.Bson

    public class VitamSequence
    extends VitamDocument<VitamSequence>
    Defines a Contract Sequence collection.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      VitamSequence()
      Empty Constructor
      VitamSequence​(com.fasterxml.jackson.databind.JsonNode content)  
      VitamSequence​(java.lang.Integer tenantId)  
      VitamSequence​(java.lang.String content, java.lang.Integer tenant)  
      VitamSequence​(org.bson.Document document)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer getCounter()
      Get the contract sequence counter
      java.lang.String getName()
      Name of the contract sequence
      VitamDocument<VitamSequence> newInstance​(com.fasterxml.jackson.databind.JsonNode content)
      Make a new instance of the document with the given json
      VitamSequence setCounter​(java.lang.String counter)
      Set or change the contract sequence counter
      VitamSequence setId​(java.lang.String id)  
      VitamSequence setName​(java.lang.String name)
      Set or change the contract sequence name
      • Methods inherited from class org.bson.Document

        append, clear, containsKey, containsValue, entrySet, equals, get, get, get, getBoolean, getBoolean, getDate, getDouble, getEmbedded, getEmbedded, getInteger, getInteger, getList, getList, getLong, getObjectId, getString, hashCode, isEmpty, keySet, parse, parse, put, putAll, remove, size, toBsonDocument, toJson, toJson, toJson, toJson, values
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Field Detail

      • NAME

        public static final java.lang.String NAME
        the contract sequence name
        See Also:
        Constant Field Values
      • COUNTER

        public static final java.lang.String COUNTER
        the contract sequence description
        See Also:
        Constant Field Values
    • Constructor Detail

      • VitamSequence

        public VitamSequence()
        Empty Constructor
      • VitamSequence

        public VitamSequence​(org.bson.Document document)
        Constructor
        Parameters:
        document - data in format Document to create contact
      • VitamSequence

        public VitamSequence​(com.fasterxml.jackson.databind.JsonNode content)
        Parameters:
        content - in format JsonNode to create contract sequence
      • VitamSequence

        public VitamSequence​(java.lang.String content,
                             java.lang.Integer tenant)
        Parameters:
        content - in format String to create contract sequence
      • VitamSequence

        public VitamSequence​(java.lang.Integer tenantId)
        Parameters:
        tenantId - the working tenant
    • Method Detail

      • newInstance

        public VitamDocument<VitamSequence> newInstance​(com.fasterxml.jackson.databind.JsonNode content)
        Description copied from class: VitamDocument
        Make a new instance of the document with the given json
        Specified by:
        newInstance in class VitamDocument<VitamSequence>
        Parameters:
        content - document structure as json
        Returns:
        new document with the json as content
      • setId

        public VitamSequence setId​(java.lang.String id)
        Parameters:
        id - the id of ingest contract sequence
        Returns:
        AccessionRegisterDetail
      • getName

        public java.lang.String getName()
        Name of the contract sequence
        Returns:
        name of contract sequence
      • setName

        public VitamSequence setName​(java.lang.String name)
        Set or change the contract sequence name
        Parameters:
        name - to set
        Returns:
        this
      • getCounter

        public java.lang.Integer getCounter()
        Get the contract sequence counter
        Returns:
        this
      • setCounter

        public VitamSequence setCounter​(java.lang.String counter)
        Set or change the contract sequence counter
        Parameters:
        counter - to set
        Returns:
        this