|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpt.moredata.dao.AbstractUtilStuff
UtilStuff.java Company MoreData
| Field Summary | |
static int |
CONTACTO_ROWS
Description of the Field |
| Constructor Summary | |
AbstractUtilStuff()
|
|
| Method Summary | |
void |
createSyscolumnextTable(java.sql.Connection connection)
Cria a tabela syscolumnext na base de dados |
void |
createSystableextTable(java.sql.Connection connection)
Cria a tabela systableext na base de dados |
void |
createTableOrigin(java.sql.Connection connection,
java.lang.String origin,
java.lang.String target)
Cria uma tabela na base de dados com uma chave estrangeira para outra tabela. |
void |
createTables(java.sql.Connection connection,
java.lang.String targetName,
java.lang.String originName)
Cria duas tabelas na base de dados. |
abstract void |
createTableTarget(java.sql.Connection connection,
java.lang.String target)
Cria uma tabela na base de dados. |
void |
destroySyscolumnextTable(java.sql.Connection connection)
Remove a tabela syscolumnext da base de dados. |
void |
destroySystableextTable(java.sql.Connection connection)
Remove a tabela systableext da base de dados. |
void |
destroyTable(java.sql.Connection connection,
java.lang.String nome)
Remove uma tabela da base de dados. |
abstract java.sql.Connection |
getConnection()
Cria uma coneccao a base de dados. |
DataSource |
getDataSource()
Cria um DataSource com uma coneccao a base de dados. |
java.lang.String |
getTableName(java.lang.String name)
Devolve o nome de uma tabela, gerado com base no nome recebido e com base na data. |
java.lang.Object |
getValueContacto(int rowNum,
int colNum)
|
int |
insertValueContacto(java.sql.Connection connection,
java.lang.String table)
Insere dados na tabela referenciada |
int |
insertValueEntidade(java.sql.Connection connection,
java.lang.String table)
Insere dados na tabela que referencia |
void |
insertValuesSyscolumnext(java.sql.Connection connection,
java.lang.String nome)
Insere dados na tabela syscolumnext |
void |
insertValuesSystableext(java.sql.Connection connection,
java.lang.String nome)
Insere dados na tabela systableext |
void |
makeJarFile(java.lang.String jarName,
java.lang.String serName)
Funcao auxiliar para construir ficheiros jar com tabelas serializadas |
void |
removeValues(java.sql.Connection connection,
java.lang.String table)
Remove os dados na tabela que referencia |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int CONTACTO_ROWS
| Constructor Detail |
public AbstractUtilStuff()
| Method Detail |
public void createTableOrigin(java.sql.Connection connection,
java.lang.String origin,
java.lang.String target)
throws java.sql.SQLException
connection - Ligacao a base de dados.origin - Nome da tabela a criar.target - Nome da tabela que exporta a chave.
java.sql.SQLException - Se houver algum erro com a base de dados.
public abstract void createTableTarget(java.sql.Connection connection,
java.lang.String target)
throws java.sql.SQLException
connection - Ligacao a base de dados.target - Nome da tabela a criar.
java.sql.SQLException - Se houver algum erro com a base de dados.
public void createTables(java.sql.Connection connection,
java.lang.String targetName,
java.lang.String originName)
throws java.sql.SQLException
connection - Ligacao a base de dados.targetName - Description of the ParameteroriginName - Description of the Parameter
java.sql.SQLException - Se houver algum erro com a base de dados.
public void createSyscolumnextTable(java.sql.Connection connection)
throws java.sql.SQLException
connection - Ligacao a base de dados.
java.sql.SQLException - Se houver algum erro com a base de dados.
public void createSystableextTable(java.sql.Connection connection)
throws java.sql.SQLException
connection - Ligacao a base de dados.
java.sql.SQLException - Se houver algum erro com a base de dados.
public void insertValuesSyscolumnext(java.sql.Connection connection,
java.lang.String nome)
throws java.sql.SQLException
connection - Ligacao a base de dadosnome - Description of the Parameter
java.sql.SQLException - Se houver algum erro com a base de dados.
public void insertValuesSystableext(java.sql.Connection connection,
java.lang.String nome)
throws java.sql.SQLException
connection - Ligacao a base de dadosnome - Description of the Parameter
java.sql.SQLException - Se houver algum erro com a base de dados.
public void destroySyscolumnextTable(java.sql.Connection connection)
throws java.sql.SQLException
connection - Coneccao a base de dados
java.sql.SQLException - Se houver algum erro com a base de dados.
public void destroySystableextTable(java.sql.Connection connection)
throws java.sql.SQLException
connection - Coneccao a base de dados
java.sql.SQLException - Se houver algum erro com a base de dados.
public java.lang.Object getValueContacto(int rowNum,
int colNum)
rowNum - Description of the ParametercolNum - Description of the Parameter
public int insertValueContacto(java.sql.Connection connection,
java.lang.String table)
throws java.sql.SQLException
connection - Ligacao a base de dadostable - Nome da tabela onde vai inserir
java.sql.SQLException - Se houver algum erro com a base de dados.
public int insertValueEntidade(java.sql.Connection connection,
java.lang.String table)
throws java.sql.SQLException
connection - Ligacao a base de dadostable - Nome da tabela onde vai inserir
java.sql.SQLException - Se houver algum erro com a base de dados.
public void removeValues(java.sql.Connection connection,
java.lang.String table)
throws java.sql.SQLException
connection - Ligacao a base de dadostable - Nome da tabela onde vai remover
java.sql.SQLException - Description of the Exception
public void destroyTable(java.sql.Connection connection,
java.lang.String nome)
throws java.sql.SQLException
nome - Nome da tabela a removerconnection - Description of the Parameter
java.sql.SQLException - Se houver algum erro com a base de dados.
public abstract java.sql.Connection getConnection()
throws DAORuntimeException
DAORuntimeException - No caso de nao ser possivel efectuar a
coneccao.
public DataSource getDataSource()
throws DAORuntimeException
DAORuntimeException - No caso de nao ser possivel efectuar a
coneccao.public java.lang.String getTableName(java.lang.String name)
name - Description of the Parameter
public void makeJarFile(java.lang.String jarName,
java.lang.String serName)
jarName - O nome a dar ao ficheiro jarserName - nome do ficheiro com a tabela serializada a ser incluido
no ficheiro jar
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||