Package com.im.commons.db.ddl.tablesets
Class StandardTableSetInfo
- java.lang.Object
-
- com.im.commons.db.ddl.tablesets.TableSetInfo
-
- com.im.commons.db.ddl.tablesets.StandardTableSetInfo
-
- All Implemented Interfaces:
AbstractInfo
,java.io.Serializable
public class StandardTableSetInfo extends TableSetInfo
TableSetInfo for a plain, non-structure table- Author:
- Martin Adamek
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
TABLE_TYPE
-
Fields inherited from class com.im.commons.db.ddl.tablesets.TableSetInfo
tableInfos
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StandardTableSetInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StandardTableSetInfo
clone()
SQLJoin[]
getJoins()
The joins for each of the tables used by this set of tables.java.lang.String
getType()
A string that identifies the table type.-
Methods inherited from class com.im.commons.db.ddl.tablesets.TableSetInfo
addToModel, buildToString, getTableInfos, getTableNames, removeFromModel, schemaPlusTable, toString, updateLazyTableInfos, updateTableInfos, updateTableInfosRemoveProxies
-
-
-
-
Field Detail
-
TABLE_TYPE
public static final java.lang.String TABLE_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
public java.lang.String getType()
Description copied from class:TableSetInfo
A string that identifies the table type. The value will be one of the TABLE_TYPE_* constants- Specified by:
getType
in classTableSetInfo
- Returns:
- The table type
-
getJoins
public SQLJoin[] getJoins()
Description copied from class:TableSetInfo
The joins for each of the tables used by this set of tables. The joins information must be supplied in the same order as the tables inTableSetInfo.getTableNames()
e.g. the second element in the list of joins corresponds to the join between the master table and the second element in the getTableNames() list. Join information allows data (e.g. a field) to be present in a separate table and provides the information necessary to retreive that information By definition the join for the first element must be a SQLJoin with has a zero length path (e.g. new SQLJoin(new SQLJoin.Path[0]) ), but joins for the other tables can optionally be defined. A join will be defined where the row(s) in the secondary table can be related to those in the master table by means of a join. Not all tables will have such a join, and in these cases the list should contain null for that element in the list.- Specified by:
getJoins
in classTableSetInfo
- Returns:
- SQLJoin array
-
clone
public StandardTableSetInfo clone()
- Specified by:
clone
in classTableSetInfo
-
-