Package org.faktorips.runtime.model.type
Class TableUsage
java.lang.Object
org.faktorips.runtime.model.type.ModelElement
org.faktorips.runtime.model.type.TypePart
org.faktorips.runtime.model.type.TableUsage
Describes the model information for a table usage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionITable<?>getTable(IProductComponent productComponent, Calendar effectiveDate) Returns the table the given product component references for this table usage.getTableName(IProductComponent productComponent, Calendar effectiveDate) Returns the name of the table for the given product component that references a table usage.voidsetTableName(String tableName, IProductComponent productComponent, Calendar effectiveDate) Sets the name of the table for the given product component that references a table usage.toString()Methods inherited from class org.faktorips.runtime.model.type.TypePart
getMessageHelper, getMessageKey, getModelType, getType, getTypeNameMethods inherited from class org.faktorips.runtime.model.type.ModelElement
createMessageHelper, getDeprecation, getDescription, getDocumentation, getExtensionPropertyIds, getExtensionPropertyValue, getLabel, getName, getRelevantProductObject, invokeField, invokeMethod, isDeprecated
-
Constructor Details
-
TableUsage
-
-
Method Details
-
getTable
Returns the table the given product component references for this table usage. If this table usage is changing over time (resides in the generation) the date is used to retrieve the correct generation. If the date isnullthe latest generation is used. If the table usage is not changing over time the date will be ignored.- Parameters:
productComponent- The product component that holds the table instanceeffectiveDate- the date to determine the product component generation. Ifnullthe latest generation is used. Is ignored if the table usage configuration is not changing over time.- Returns:
- The table instance hold by the product component and is identified by this table usage
-
getTableName
Returns the name of the table for the given product component that references a table usage. If this table usage is changing over time (resides in the generation) the date is used to retrieve the correct generation. If the date isnullthe latest generation is used. If the table usage is not changing over time the date will be ignored.- Parameters:
productComponent- The product component that holds the table instanceeffectiveDate- the date to determine the product component generation. Ifnullthe latest generation is used. Is ignored if the table usage configuration is not changing over time.- Returns:
- The name of the table for this table usage in the product component
- Since:
- 24.7
-
setTableName
public void setTableName(String tableName, IProductComponent productComponent, Calendar effectiveDate) Sets the name of the table for the given product component that references a table usage. If this table usage is changing over time (resides in the generation) the date is used to retrieve the correct generation. If the date isnullthe latest generation is used. If the table usage is not changing over time the date will be ignored.- Parameters:
tableName- The name of the table for this table usage in the product componentproductComponent- The product component that holds the table instanceeffectiveDate- the date to determine the product component generation. Ifnullthe latest generation is used. Is ignored if the table usage configuration is not changing over time.- Since:
- 24.7
-
getTableStructure
- Returns:
- the model for the table structure referenced in this table usage.
- Throws:
UnsupportedOperationException- if this table usage uses multiple table structures.
-
toString
- Overrides:
toStringin classModelElement
-