Class QTableMetaData
java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.tables.QTableMetaData
- All Implemented Interfaces:
QAppChildMetaData
,MetaDataProducerOutput
,MetaDataWithName
,MetaDataWithPermissionRules
,SourceQBitAware
,QMetaDataObject
,TopLevelMetaDataInterface
,Serializable
public class QTableMetaData
extends Object
implements QAppChildMetaData, Serializable, MetaDataWithPermissionRules, TopLevelMetaDataInterface, SourceQBitAware
Meta-Data to define a table in a QQQ instance.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addField
(QFieldMetaData field) void
addSection
(QFieldSection fieldSection) void
addSelfToInstance
(QInstance qInstance) call the appropriate methods on a QInstance to add ourselves to it.Getter for associatedScriptsgetAssociationByName
(String name) Getter for an association by nameGetter for associationsGetter for auditRulesGetter for automationDetailsGetter for backendDetailsGetter for backendNameGetter for cacheOfgetCustomizer
(String customizerName) Getter for disabledCapabilitiesGetter for enabledCapabilitiesGetter for exposedJoinsGetter for helpContentgetIcon()
Getter for iconboolean
Getter for isHiddengetLabel()
Getter for labelgetName()
Getter for nameGetter for permissionRulesGetter for recordLabelFieldsGetter for recordLabelFormatGetter for recordSecurityLocksgetSection
(String name) Getter for sectionsGetter for sectionsGetter for shareableTableMetaDataGetter for sourceQBitNameGetter for supplementalMetaDataGetter for supplementalMetaDataGetter for uniqueKeysboolean
isCapabilityEnabled
(QBackendMetaData backend, Capability capability) Test if a capability is enabled - checking both at the table level and at the backend level.void
removeHelpContent
(String slot, Set<HelpRole> roles) remove a helpContent for a slot based on its set of rolesvoid
setAssociatedScripts
(List<AssociatedScript> associatedScripts) Setter for associatedScriptsvoid
setAssociations
(List<Association> associations) Setter for associationsvoid
setAuditRules
(QAuditRules auditRules) Setter for auditRulesvoid
setAutomationDetails
(QTableAutomationDetails automationDetails) Setter for automationDetailsvoid
setBackendDetails
(QTableBackendDetails backendDetails) Setter for backendDetailsvoid
setBackendName
(String backendName) Setter for backendNamevoid
setCacheOf
(CacheOf cacheOf) Setter for cacheOfvoid
setCustomizers
(Map<String, QCodeReference> customizers) Setter for customizersvoid
setDisabledCapabilities
(Set<Capability> disabledCapabilities) Setter for disabledCapabilitiesvoid
setEnabledCapabilities
(Set<Capability> enabledCapabilities) Setter for enabledCapabilitiesvoid
setExposedJoins
(List<ExposedJoin> exposedJoins) Setter for exposedJoinsvoid
setFields
(Map<String, QFieldMetaData> fields) Setter for fieldsvoid
setHelpContent
(Map<String, List<QHelpContent>> helpContent) Setter for helpContentvoid
Setter for iconvoid
setIsHidden
(boolean isHidden) Setter for isHiddenvoid
Setter for labelvoid
Setter for namevoid
setPermissionRules
(QPermissionRules permissionRules) Setter for permissionRulesvoid
setPrimaryKeyField
(String primaryKeyField) void
setRecordLabelFields
(List<String> recordLabelFields) Setter for recordLabelFieldsvoid
setRecordLabelFormat
(String recordLabelFormat) Setter for recordLabelFormatvoid
setRecordSecurityLocks
(List<RecordSecurityLock> recordSecurityLocks) Setter for recordSecurityLocksvoid
setSections
(List<QFieldSection> sections) Setter for sectionsvoid
setShareableTableMetaData
(ShareableTableMetaData shareableTableMetaData) Setter for shareableTableMetaDatavoid
setSourceQBitName
(String sourceQBitName) Setter for sourceQBitNamevoid
setSupplementalMetaData
(Map<String, QSupplementalTableMetaData> supplementalMetaData) Setter for supplementalMetaDatavoid
setUniqueKeys
(List<UniqueKey> uniqueKeys) Setter for uniqueKeystoString()
withAssociatedScript
(AssociatedScript associatedScript) Fluent setter for associatedScriptswithAssociatedScripts
(List<AssociatedScript> associatedScripts) Fluent setter for associatedScriptswithAssociation
(Association association) Fluent setter for associationswithAssociations
(List<Association> associations) Fluent setter for associationswithAuditRules
(QAuditRules auditRules) Fluent setter for auditRuleswithAutomationDetails
(QTableAutomationDetails automationDetails) Fluent Setter for automationDetailswithBackendDetails
(QTableBackendDetails backendDetails) Fluent Setter for backendDetailswithBackendName
(String backendName) withCacheOf
(CacheOf cacheOf) Fluent setter for cacheOfwithCapabilities
(Capability... enabledCapabilities) Fluent setter for enabledCapabilitieswithCapabilities
(Set<Capability> enabledCapabilities) Alternative fluent setter for enabledCapabilitieswithCapability
(Capability capability) Alternative fluent setter for a single enabledCapabilitieswithCustomizer
(TableCustomizers tableCustomizer, QCodeReference customizer) withCustomizer
(String role, QCodeReference customizer) withCustomizers
(Map<String, QCodeReference> customizers) withDisabledCapabilities
(Set<Capability> disabledCapabilities) Fluent setter for disabledCapabilitieswithEnabledCapabilities
(Set<Capability> enabledCapabilities) Fluent setter for enabledCapabilitieswithExposedJoin
(ExposedJoin exposedJoin) Fluent setter for exposedJoinswithExposedJoins
(List<ExposedJoin> exposedJoins) Fluent setter for exposedJoinswithField
(QFieldMetaData field) withFields
(List<QFieldMetaData> fields) withFields
(Map<String, QFieldMetaData> fields) withFieldsFromEntity
(Class<? extends QRecordEntity> entityClass) withHelpContent
(String slot, QHelpContent helpContent) Fluent setter for adding 1 helpContent (for a slot)withHelpContent
(Map<String, List<QHelpContent>> helpContent) Fluent setter for helpContentFluent setter for iconwithIsHidden
(boolean isHidden) Fluent Setter for isHiddenwithoutCapabilities
(Capability... disabledCapabilities) Fluent setter for disabledCapabilitieswithoutCapabilities
(Set<Capability> disabledCapabilities) Alternative fluent setter for disabledCapabilitieswithoutCapability
(Capability capability) Alternative fluent setter for a single disabledCapabilitieswithPermissionRules
(QPermissionRules permissionRules) Fluent setter for permissionRuleswithPrimaryKeyField
(String primaryKeyField) withRecordLabelFields
(String... recordLabelFields) Fluent setter for recordLabelFieldswithRecordLabelFields
(List<String> recordLabelFields) Fluent setter for recordLabelFieldswithRecordLabelFormat
(String recordLabelFormat) Fluent setter for recordLabelFormatwithRecordLabelFormatAndFields
(String format, String... fields) fluent setter for both recordLabelFormat and recordLabelFieldswithRecordSecurityLock
(RecordSecurityLock recordSecurityLock) Fluent setter for recordSecurityLockswithRecordSecurityLocks
(List<RecordSecurityLock> recordSecurityLocks) Fluent setter for recordSecurityLockswithSection
(QFieldSection fieldSection) withSectionOfFields
(QFieldSection fieldSection, QFieldMetaData... fields) Fluently add a section and fields in that section.withSections
(List<QFieldSection> fieldSections) Fluent setter for sectionswithShareableTableMetaData
(ShareableTableMetaData shareableTableMetaData) Fluent setter for shareableTableMetaDatawithSourceQBitName
(String sourceQBitName) Fluent setter for sourceQBitNamewithSupplementalMetaData
(QSupplementalTableMetaData supplementalMetaData) Fluent setter for supplementalMetaDatawithSupplementalMetaData
(Map<String, QSupplementalTableMetaData> supplementalMetaData) Fluent setter for supplementalMetaDatawithUniqueKey
(UniqueKey uniqueKey) Fluent setter for uniqueKeyswithUniqueKeys
(List<UniqueKey> uniqueKeys) Fluent setter for uniqueKeysMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.kingsrook.qqq.backend.core.model.metadata.qbits.SourceQBitAware
getSourceQBit, getSourceQBitConfig
-
Field Details
-
helpContent
-
-
Constructor Details
-
QTableMetaData
public QTableMetaData()Default constructor.
-
-
Method Details
-
toString
-
getField
-
withFieldsFromEntity
public QTableMetaData withFieldsFromEntity(Class<? extends QRecordEntity> entityClass) throws QException - Throws:
QException
-
getName
Description copied from interface:MetaDataWithName
Getter for name- Specified by:
getName
in interfaceMetaDataWithName
- Specified by:
getName
in interfaceQAppChildMetaData
- Specified by:
getName
in interfaceTopLevelMetaDataInterface
-
setName
Description copied from interface:MetaDataWithName
Setter for name- Specified by:
setName
in interfaceMetaDataWithName
-
withName
-
getLabel
Description copied from interface:MetaDataWithName
Getter for label- Specified by:
getLabel
in interfaceMetaDataWithName
- Specified by:
getLabel
in interfaceQAppChildMetaData
-
setLabel
Description copied from interface:MetaDataWithName
Setter for label- Specified by:
setLabel
in interfaceMetaDataWithName
-
withLabel
-
getBackendName
Getter for backendName -
setBackendName
Setter for backendName -
withBackendName
-
getPrimaryKeyField
-
setPrimaryKeyField
-
withPrimaryKeyField
-
getIsHidden
public boolean getIsHidden()Getter for isHidden -
setIsHidden
public void setIsHidden(boolean isHidden) Setter for isHidden -
withIsHidden
Fluent Setter for isHidden -
getFields
-
setFields
Setter for fields -
withFields
-
withFields
-
addField
-
withField
-
getBackendDetails
Getter for backendDetails -
setBackendDetails
Setter for backendDetails -
withBackendDetails
Fluent Setter for backendDetails -
getAutomationDetails
Getter for automationDetails -
setAutomationDetails
Setter for automationDetails -
withAutomationDetails
Fluent Setter for automationDetails -
getCustomizer
-
getCustomizers
-
setCustomizers
Setter for customizers -
withCustomizer
-
withCustomizer
-
withCustomizers
-
getIcon
-
setIcon
Setter for icon -
withIcon
Fluent setter for icon -
getRecordLabelFormat
Getter for recordLabelFormat -
setRecordLabelFormat
Setter for recordLabelFormat -
withRecordLabelFormat
Fluent setter for recordLabelFormat -
withRecordLabelFormatAndFields
fluent setter for both recordLabelFormat and recordLabelFields -
getRecordLabelFields
-
setRecordLabelFields
-
withRecordLabelFields
Fluent setter for recordLabelFields -
withRecordLabelFields
Fluent setter for recordLabelFields -
getSections
Getter for sections -
getSection
Getter for sections -
setSections
Setter for sections -
withSections
Fluent setter for sections -
addSection
-
withSection
-
getAssociatedScripts
Getter for associatedScripts -
setAssociatedScripts
Setter for associatedScripts -
withAssociatedScripts
Fluent setter for associatedScripts -
withAssociatedScript
Fluent setter for associatedScripts -
getUniqueKeys
-
setUniqueKeys
-
withUniqueKeys
Fluent setter for uniqueKeys -
withUniqueKey
Fluent setter for uniqueKeys -
withSectionOfFields
Fluently add a section and fields in that section. -
getEnabledCapabilities
Getter for enabledCapabilities -
setEnabledCapabilities
Setter for enabledCapabilities -
withEnabledCapabilities
Fluent setter for enabledCapabilities -
withCapabilities
Alternative fluent setter for enabledCapabilities -
withCapability
Alternative fluent setter for a single enabledCapabilities -
withCapabilities
Fluent setter for enabledCapabilities -
getDisabledCapabilities
Getter for disabledCapabilities -
setDisabledCapabilities
Setter for disabledCapabilities -
withDisabledCapabilities
Fluent setter for disabledCapabilities -
withoutCapabilities
Fluent setter for disabledCapabilities -
withoutCapabilities
Alternative fluent setter for disabledCapabilities -
withoutCapability
Alternative fluent setter for a single disabledCapabilities -
getCacheOf
Getter for cacheOf -
setCacheOf
Setter for cacheOf -
withCacheOf
Fluent setter for cacheOf -
isCapabilityEnabled
Test if a capability is enabled - checking both at the table level and at the backend level. If backend says disabled, then disable - UNLESS - the table says enable. If backend either doesn't specify, or says enable, return what the table says (if it says). else, return the default (of enabled). -
getRecordSecurityLocks
Getter for recordSecurityLocks -
setRecordSecurityLocks
Setter for recordSecurityLocks -
withRecordSecurityLocks
Fluent setter for recordSecurityLocks -
withRecordSecurityLock
Fluent setter for recordSecurityLocks -
getPermissionRules
Getter for permissionRules- Specified by:
getPermissionRules
in interfaceMetaDataWithPermissionRules
-
setPermissionRules
Setter for permissionRules- Specified by:
setPermissionRules
in interfaceMetaDataWithPermissionRules
-
withPermissionRules
Fluent setter for permissionRules -
getAuditRules
Getter for auditRules -
setAuditRules
Setter for auditRules -
withAuditRules
Fluent setter for auditRules -
getSupplementalMetaData
Getter for supplementalMetaData -
getSupplementalMetaData
Getter for supplementalMetaData -
setSupplementalMetaData
Setter for supplementalMetaData -
withSupplementalMetaData
public QTableMetaData withSupplementalMetaData(Map<String, QSupplementalTableMetaData> supplementalMetaData) Fluent setter for supplementalMetaData -
withSupplementalMetaData
Fluent setter for supplementalMetaData -
getAssociations
Getter for associations -
getAssociationByName
Getter for an association by name -
setAssociations
Setter for associations -
withAssociations
Fluent setter for associations -
withAssociation
Fluent setter for associations -
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
-
getExposedJoins
Getter for exposedJoins -
setExposedJoins
Setter for exposedJoins -
withExposedJoins
Fluent setter for exposedJoins -
withExposedJoin
Fluent setter for exposedJoins -
getHelpContent
Getter for helpContent -
setHelpContent
Setter for helpContent -
withHelpContent
Fluent setter for helpContent -
withHelpContent
Fluent setter for adding 1 helpContent (for a slot) -
removeHelpContent
-
getSourceQBitName
Getter for sourceQBitName- Specified by:
getSourceQBitName
in interfaceSourceQBitAware
-
setSourceQBitName
Setter for sourceQBitName- Specified by:
setSourceQBitName
in interfaceSourceQBitAware
-
withSourceQBitName
Fluent setter for sourceQBitName- Specified by:
withSourceQBitName
in interfaceSourceQBitAware
-