Class QBitMetaData

java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.qbits.QBitMetaData
All Implemented Interfaces:
MetaDataProducerOutput, QMetaDataObject, TopLevelMetaDataInterface, Serializable

public class QBitMetaData extends Object implements TopLevelMetaDataInterface
Meta-data to define an active QBit in a QQQ Instance. The unique "name" for the QBit is composed of its groupId and artifactId (maven style). There is also a version - but it is not part of the unique name. But - there is also a namespace attribute, which IS part of the unique name. This will (eventually?) allow us to have multiple instances of the same qbit in a qInstance at the same time (e.g., 2 versions of some table, which should be namespace-prefixed); QBitMetaData also retains the QBitConfig that was used to produce the QBit. Some meta-data objects are aware of the fact that they may have come from a QBit - see SourceQBitAware interface. These objects can get their source QBitMetaData (this object) and its config,via that interface.
See Also:
  • Constructor Details

    • QBitMetaData

      public QBitMetaData()
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface TopLevelMetaDataInterface
    • addSelfToInstance

      public void addSelfToInstance(QInstance qInstance)
      Description copied from interface: MetaDataProducerOutput
      call the appropriate methods on a QInstance to add ourselves to it.
      Specified by:
      addSelfToInstance in interface MetaDataProducerOutput
      Specified by:
      addSelfToInstance in interface TopLevelMetaDataInterface
    • getConfig

      public QBitConfig getConfig()
      Getter for config
    • setConfig

      public void setConfig(QBitConfig config)
      Setter for config
    • withConfig

      public QBitMetaData withConfig(QBitConfig config)
      Fluent setter for config
    • getGroupId

      public String getGroupId()
      Getter for groupId
    • setGroupId

      public void setGroupId(String groupId)
      Setter for groupId
    • withGroupId

      public QBitMetaData withGroupId(String groupId)
      Fluent setter for groupId
    • getArtifactId

      public String getArtifactId()
      Getter for artifactId
    • setArtifactId

      public void setArtifactId(String artifactId)
      Setter for artifactId
    • withArtifactId

      public QBitMetaData withArtifactId(String artifactId)
      Fluent setter for artifactId
    • getVersion

      public String getVersion()
      Getter for version
    • setVersion

      public void setVersion(String version)
      Setter for version
    • withVersion

      public QBitMetaData withVersion(String version)
      Fluent setter for version
    • getNamespace

      public String getNamespace()
      Getter for namespace
    • setNamespace

      public void setNamespace(String namespace)
      Setter for namespace
    • withNamespace

      public QBitMetaData withNamespace(String namespace)
      Fluent setter for namespace