pt.moredata.dao
Class DataBaseTable

java.lang.Object
  extended bypt.moredata.dao.DataBaseTable
Direct Known Subclasses:
DDataDbTable

public class DataBaseTable
extends java.lang.Object

Identificação de uma tabela da base de dados.

Para ser totalmente compativel com o modo ansi falta-lhe o owner.

É usado sobretudo para as implementações dos data controls Company MoreData

Version:
$Revision: 1.8 $
Author:
Paulo Carmo, Ricardo Amaro

Constructor Summary
DataBaseTable(DataSource dataSource, java.lang.String tableName)
          Build a new object for representing a database table.
DataBaseTable(DataSource dataSource, java.lang.String tableName, java.lang.String tableAlias)
          Build a new object for representing a database table.
 
Method Summary
 java.lang.String getAlias()
          Devolve o atalho corrente da tabela
 java.lang.String getJoinClause()
          Getter for property joinClause.
 java.lang.String getName()
          Devolve o nome da tabela
 DataTableInfo getTableInfo()
          Get the value of tableInfo.
 void initTableInfo()
          Inicializa a informacao acerca da tabela
 boolean isIncludeInDelete()
          Getter for property includeInDelete.
 boolean isIncludeInInsert()
          Getter for property includeInInsert.
 boolean isIncludeInQuery()
          Check if the table should be include in a database selected.
 boolean isIncludeInUpdate()
          Getter for property includeInUpdate.
 void setAlias(java.lang.String alias)
          Deprecated. The alias cannot be modified after the table been added to a DAOFieldsInfo object. The DAOFieldsInfo uses the table alias and table name to build the keys used in the map between a table name and the metafields. This will be removed soon.
 void setDataSource(DataSource dataSource)
          Setter for property dataSource.
 void setIncludeInDelete(boolean includeInDelete)
          Setter for property includeInDelete.
 void setIncludeInInsert(boolean includeInInsert)
          Setter for property includeInInsert.
 void setIncludeInQuery(boolean includeInQuery)
          Change the includeInQuery property of the table.
 void setIncludeInUpdate(boolean includeInUpdate)
          Setter for property includeInUpdate.
 void setJoinClause(java.lang.String joinClause)
          Setter for property joinClause.
 void setName(java.lang.String name)
          Deprecated. The alias cannot be modified after the table been added to a DAOFieldsInfo object. The DAOFieldsInfo uses the table alias and table name to build the keys used in the map between a table name and the metafields. This will be removed soon.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataBaseTable

public DataBaseTable(DataSource dataSource,
                     java.lang.String tableName)
Build a new object for representing a database table.

Parameters:
dataSource - The data source of the table.
tableName - Table name.

DataBaseTable

public DataBaseTable(DataSource dataSource,
                     java.lang.String tableName,
                     java.lang.String tableAlias)
Build a new object for representing a database table.

Parameters:
dataSource - The data source of the table.
tableName - Table name.
tableAlias - Table alias.
Method Detail

setName

public void setName(java.lang.String name)
Deprecated. The alias cannot be modified after the table been added to a DAOFieldsInfo object. The DAOFieldsInfo uses the table alias and table name to build the keys used in the map between a table name and the metafields. This will be removed soon.

Afecta o nome da tabela


getName

public java.lang.String getName()
Devolve o nome da tabela

Returns:
nome da tabela

setAlias

public void setAlias(java.lang.String alias)
Deprecated. The alias cannot be modified after the table been added to a DAOFieldsInfo object. The DAOFieldsInfo uses the table alias and table name to build the keys used in the map between a table name and the metafields. This will be removed soon.

Cria um atalho para a tabela


getAlias

public java.lang.String getAlias()
Devolve o atalho corrente da tabela

Returns:
atalho corrente da tabela

initTableInfo

public void initTableInfo()
                   throws DAORuntimeException
Inicializa a informacao acerca da tabela

Throws:
DAORuntimeException - Se nao for possivel inicializar a informacao da tabela.

getTableInfo

public DataTableInfo getTableInfo()
Get the value of tableInfo.

Returns:
Value of tableInfo.

getJoinClause

public java.lang.String getJoinClause()
Getter for property joinClause.

Returns:
Value of property joinClause.

setJoinClause

public void setJoinClause(java.lang.String joinClause)
Setter for property joinClause.

Parameters:
joinClause - New value of property joinClause.

setDataSource

public void setDataSource(DataSource dataSource)
Setter for property dataSource.

Parameters:
dataSource - New value of property dataSource.

isIncludeInQuery

public boolean isIncludeInQuery()
Check if the table should be include in a database selected.

Returns:
true if the table should be included in a select, false otherwise.

setIncludeInQuery

public void setIncludeInQuery(boolean includeInQuery)
Change the includeInQuery property of the table.

Parameters:
includeInQuery - true if the table should be incluede in the select, false if not.

isIncludeInInsert

public boolean isIncludeInInsert()
Getter for property includeInInsert.

Returns:
Value of property includeInInsert.

setIncludeInInsert

public void setIncludeInInsert(boolean includeInInsert)
Setter for property includeInInsert.

Parameters:
includeInInsert - New value of property includeInInsert.

isIncludeInUpdate

public boolean isIncludeInUpdate()
Getter for property includeInUpdate.

Returns:
Value of property includeInUpdate.

setIncludeInUpdate

public void setIncludeInUpdate(boolean includeInUpdate)
Setter for property includeInUpdate.

Parameters:
includeInUpdate - New value of property includeInUpdate.

isIncludeInDelete

public boolean isIncludeInDelete()
Getter for property includeInDelete.

Returns:
Value of property includeInDelete.

setIncludeInDelete

public void setIncludeInDelete(boolean includeInDelete)
Setter for property includeInDelete.

Parameters:
includeInDelete - New value of property includeInDelete.