Package de.calamanari.adl.sql.config
Class DummyDataTableConfig
java.lang.Object
de.calamanari.adl.sql.config.DummyDataTableConfig
- All Implemented Interfaces:
de.calamanari.adl.cnv.tps.ArgMetaInfoLookup,DataTableConfig,Serializable
This implementation is for testing and debugging, it returns a dummy table name and the argName
- Author:
- Karl Eilebrecht
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the meta information for all the tables in this configuration.booleanstatic DummyDataTableConfiglookupAssignment(String argName, de.calamanari.adl.ProcessContext ctx) Determines the column assignment for the given argName.lookupTableMetaInfo(String argName, de.calamanari.adl.ProcessContext ctx) Returns the table meta infos for the column that is mapped to the given argNameintReturns the total number of tables in this configurationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.calamanari.adl.cnv.tps.ArgMetaInfoLookup
isAlwaysKnown, isCollection, lookup, typeOfMethods inherited from interface de.calamanari.adl.sql.config.DataTableConfig
lookup, lookupColumn, lookupTableMetaInfoByTableName, numberOfTablesInvolved, primaryTable, tableMetaInfosInvolved, tablesInvolved, tablesThatContainAllIds
-
Method Details
-
getInstance
-
contains
- Specified by:
containsin interfacede.calamanari.adl.cnv.tps.ArgMetaInfoLookup
-
lookupAssignment
Description copied from interface:DataTableConfigDetermines the column assignment for the given argName.- Specified by:
lookupAssignmentin interfaceDataTableConfig- Parameters:
argName-ctx-- Returns:
- the configured
ArgColumnAssignmentifArgMetaInfoLookup.contains(String)=true, otherwise throws exception
-
numberOfTables
public int numberOfTables()Description copied from interface:DataTableConfigReturns the total number of tables in this configuration- Specified by:
numberOfTablesin interfaceDataTableConfig- Returns:
- number of tables this config is based on, >=1
-
lookupTableMetaInfo
Description copied from interface:DataTableConfigReturns the table meta infos for the column that is mapped to the given argName- Specified by:
lookupTableMetaInfoin interfaceDataTableConfig- Parameters:
argName-ctx-- Returns:
- meta data
-
allTableMetaInfos
Description copied from interface:DataTableConfigReturns the meta information for all the tables in this configuration.Important: Although the order is not defined, best case the order in the list reflects the order of configuration.
In any case it must be stable and it should be deterministic because this is the order the default implementations of several other methods relies on. If the result is composed from an underlying set, then the list should be sorted before returning to avoid indeterministic behavior like flaky tests or unexplainable variations when generating queries.- Specified by:
allTableMetaInfosin interfaceDataTableConfig- Returns:
- all configured tables
-