## Uses of Class
org.apache.torque.map.TableMap

- Packages that use TableMap
  Package | Description
  --- | ---
  org.apache.torque | Torque is an object-relational mapper for Java.
  org.apache.torque.map | Description of the schema layout.
  org.apache.torque.sql | This package contains classes which are mainly used in the SQL generation process.
  org.apache.torque.util | Misc. utility classes.

- - ### Uses of TableMap in org.apache.torque

    Methods in org.apache.torque that return TableMap
    Modifier and Type | Method | Description
    --- | --- | ---
    `TableMap` | Database.`getIdTable()` | Get the ID table for this database.

    Methods in org.apache.torque with parameters of type TableMap
    Modifier and Type | Method | Description
    --- | --- | ---
    `void` | Database.`setIdTable​(TableMap idTable)` | Set the ID table for this database.

  - ### Uses of TableMap in org.apache.torque.map

    Methods in org.apache.torque.map that return TableMap
    Modifier and Type | Method | Description
    --- | --- | ---
    `TableMap` | DatabaseMap.`addTable​(String tableName)` | Add a new table to the database by name.
    `TableMap` | ForeignKeyMap.`getForeignTable()` | Returns the foreign table of the foreign key.
    `TableMap` | ColumnMap.`getTable()` | Returns the map for the table this column belongs to.
    `TableMap` | DatabaseMap.`getTable​(String name)` | Get a TableMap for the table by name.
    `TableMap` | ForeignKeyMap.`getTable()` | Returns the local table of the foreign key.
    `static TableMap` | MapHelper.`getTableMap​(Object possibleColumn, Criteria criteria, TableMap defaultTableMap)` | Returns the table map for a table name.
    `TableMap[]` | DatabaseMap.`getTables()` | Get a TableMap[] of all of the tables in the database.

    Methods in org.apache.torque.map with parameters of type TableMap
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | DatabaseMap.`containsTable​(TableMap table)` | Does this database contain this specific table?
    `static TableMap` | MapHelper.`getTableMap​(Object possibleColumn, Criteria criteria, TableMap defaultTableMap)` | Returns the table map for a table name.
    `void` | DatabaseMap.`setIdTable​(TableMap idTableMap)` | Add a new TableMap to the database.

    Constructors in org.apache.torque.map with parameters of type TableMap
    Constructor | Description
    --- | ---
    `ColumnMap​(String name, TableMap containingTable)` | Constructor.
    `ForeignKeyMap​(TableMap table, String foreignTableName)` | Constructor.
    `ForeignKeyMap​(TableMap table, TableMap foreignTable)` | Constructor.

  - ### Uses of TableMap in org.apache.torque.sql

    Methods in org.apache.torque.sql that return TableMap
    Modifier and Type | Method | Description
    --- | --- | ---
    `static TableMap` | SqlBuilder.`getTableMap​(String tableName, String dbName)` | Returns the table map for a table.

  - ### Uses of TableMap in org.apache.torque.util

    Methods in org.apache.torque.util that return TableMap
    Modifier and Type | Method | Description
    --- | --- | ---
    `TableMap` | BasePeerImpl.`getTableMap()` | Get the default table map for this instance.

    Methods in org.apache.torque.util with parameters of type TableMap
    Modifier and Type | Method | Description
    --- | --- | ---
    `BigDecimal` | AvgHelper.`avg​(Criteria c, Connection conn, String columnName, TableMap tableMap)` | Returns the average of a column in a query.
    `int` | CountHelper.`count​(Criteria c, Connection conn, String columnName, TableMap tableMap)` | Returns the number of rows in a query.
    `int` | CountHelper.`count​(TableMap tableMap)` | Counts all rows in a table.
    `int` | CountHelper.`count​(TableMap tableMap, Connection conn)` | Counts all rows in a table.
    `void` | BasePeerImpl.`setTableMap​(TableMap tableMap)` | Set the default table map for this instance.

    Constructors in org.apache.torque.util with parameters of type TableMap
    Constructor | Description
    --- | ---
    `AbstractPeerImpl​(RecordMapper<T> recordMapper, TableMap tableMap, String databaseName)` | Constructor providing the objects to be injected as parameters.
    `BasePeerImpl​(RecordMapper<T> recordMapper, TableMap tableMap, String databaseName)` | Constructor providing the objects to be injected as parameters.