Class ApiTableMetaDataContainer
java.lang.Object
com.kingsrook.qqq.backend.core.model.metadata.tables.QSupplementalTableMetaData
com.kingsrook.qqq.api.model.metadata.tables.ApiTableMetaDataContainer
- All Implemented Interfaces:
Cloneable
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenrich(QInstance qInstance, QTableMetaData table) protected ApiTableMetaDataContainerfinishClone(QSupplementalTableMetaData abstractClone) finish the cloning operation started in the base class. copy all state from the subclass into the input clone (which can be safely casted to the subclass's type, as it was obtained by super.clone()) Rather than making this public and breaking all existing implementations that don't have it - we're making it protected, with a one-time warning if it isn't implemented in a subclass.getApis()Getter for apisgetApiTableMetaData(String apiName) Getter for apisgetOrWithNewApiTableMetaData(String apiName) Getter for apigetType()Getter for typestatic ApiTableMetaDataContainerof(QTableMetaData table) static ApiTableMetaDataContainerofOrWithNew(QTableMetaData table) either get the container attached to a table - or create a new one and attach it to the table, and return that.voidsetApis(Map<String, ApiTableMetaData> apis) Setter for apisvoidvalidate(QInstance qInstance, QTableMetaData tableMetaData, QInstanceValidator qInstanceValidator) withApis(Map<String, ApiTableMetaData> apis) Fluent setter for apiswithApiTableMetaData(String apiName, ApiTableMetaData apiTableMetaData) Fluent setter for apisMethods inherited from class com.kingsrook.qqq.backend.core.model.metadata.tables.QSupplementalTableMetaData
clone, includeInFullFrontendMetaData, includeInPartialFrontendMetaData, of, ofOrWithNew
-
Constructor Details
-
ApiTableMetaDataContainer
public ApiTableMetaDataContainer()
-
-
Method Details
-
of
-
getType
Description copied from class:QSupplementalTableMetaDataGetter for type- Specified by:
getTypein classQSupplementalTableMetaData
-
ofOrWithNew
either get the container attached to a table - or create a new one and attach it to the table, and return that. -
enrich
- Overrides:
enrichin classQSupplementalTableMetaData
-
getApis
Getter for apis -
getApiTableMetaData
Getter for apis -
getOrWithNewApiTableMetaData
Getter for api -
setApis
Setter for apis -
withApis
Fluent setter for apis -
withApiTableMetaData
public ApiTableMetaDataContainer withApiTableMetaData(String apiName, ApiTableMetaData apiTableMetaData) Fluent setter for apis -
validate
public void validate(QInstance qInstance, QTableMetaData tableMetaData, QInstanceValidator qInstanceValidator) - Overrides:
validatein classQSupplementalTableMetaData
-
finishClone
Description copied from class:QSupplementalTableMetaDatafinish the cloning operation started in the base class. copy all state from the subclass into the input clone (which can be safely casted to the subclass's type, as it was obtained by super.clone()) Rather than making this public and breaking all existing implementations that don't have it - we're making it protected, with a one-time warning if it isn't implemented in a subclass.- Overrides:
finishClonein classQSupplementalTableMetaData
-