Class QBitMetaData
java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.qbits.QBitMetaData
- All Implemented Interfaces:
MetaDataProducerOutput
,QMetaDataObject
,TopLevelMetaDataInterface
,Serializable
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSelfToInstance
(QInstance qInstance) call the appropriate methods on a QInstance to add ourselves to it.Getter for artifactIdGetter for configGetter for groupIdgetName()
Getter for namespaceGetter for versionvoid
setArtifactId
(String artifactId) Setter for artifactIdvoid
setConfig
(QBitConfig config) Setter for configvoid
setGroupId
(String groupId) Setter for groupIdvoid
setNamespace
(String namespace) Setter for namespacevoid
setVersion
(String version) Setter for versionwithArtifactId
(String artifactId) Fluent setter for artifactIdwithConfig
(QBitConfig config) Fluent setter for configwithGroupId
(String groupId) Fluent setter for groupIdwithNamespace
(String namespace) Fluent setter for namespacewithVersion
(String version) Fluent setter for version
-
Constructor Details
-
QBitMetaData
public QBitMetaData()
-
-
Method Details
-
getName
- Specified by:
getName
in interfaceTopLevelMetaDataInterface
-
addSelfToInstance
Description copied from interface:MetaDataProducerOutput
call the appropriate methods on a QInstance to add ourselves to it.- Specified by:
addSelfToInstance
in interfaceMetaDataProducerOutput
- Specified by:
addSelfToInstance
in interfaceTopLevelMetaDataInterface
-
getConfig
Getter for config -
setConfig
Setter for config -
withConfig
Fluent setter for config -
getGroupId
Getter for groupId -
setGroupId
Setter for groupId -
withGroupId
Fluent setter for groupId -
getArtifactId
Getter for artifactId -
setArtifactId
Setter for artifactId -
withArtifactId
Fluent setter for artifactId -
getVersion
Getter for version -
setVersion
Setter for version -
withVersion
Fluent setter for version -
getNamespace
Getter for namespace -
setNamespace
Setter for namespace -
withNamespace
Fluent setter for namespace
-