Class CompositeID

  • All Implemented Interfaces:
    com.anaptecs.jeaf.core.api.ServiceObject, java.io.Serializable

    @Valid
    public class CompositeID
    extends CompositeIDBase
    See Also:
    Serialized Form
    • Constructor Detail

      • CompositeID

        protected CompositeID()
        Default constructor is only intended to be used for deserialization by tools like Jackson for JSON. For "normal" object creation builder should be used instead.
    • Method Detail

      • builder

        public static CompositeID.Builder builder​(CompositeID pObject)
        Method creates a new builder and initialize it with the data from the passed object.
        Parameters:
        pObject - Object that should be used to initialize the builder. The parameter may be null.
        Returns:
        CompositeID.Builder New builder that can be used to create new CompositeID objects. The method never returns null.
      • builder

        public static CompositeID.Builder builder​(long pPrimaryCode,
                                                  long pSecondaryCode)
        Method creates a new builder and initializes it with the passed attributes.
      • serialize

        public java.lang.String serialize()
        Method serializes this object into its custom string representation.
        Returns:
        String Serialized String representation of this object. The method must not return null.
      • deserialize

        public static CompositeID deserialize​(java.lang.String pSerialized)
        Method deserialized the passed String representation of this object into a new instance of this class.
        Parameters:
        pSerialized - Serialized representation that should be used to create a new instance. The parameter is never null.
        Returns:
        CompositeID Instance of this class as it was deserialized from the passed string. The method must not return null.