|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectpt.moredata.dao.UtilStuff
UtilStuff.java Company MoreData
| Field Summary | |
static int |
CONTACTO_COL
Description of the Field |
static int |
CONTACTO_ROWS
Description of the Field |
static int |
ENTIDADE_COL
Description of the Field |
static int |
ENTIDADE_ROWS
Description of the Field |
| Constructor Summary | |
UtilStuff()
|
|
| Method Summary | |
static void |
createSyscolumnextTable(java.sql.Connection connection)
Cria a tabela syscolumnext na base de dados |
static void |
createSystableextTable(java.sql.Connection connection)
Cria a tabela systableext na base de dados |
static 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. |
static void |
createTables(java.sql.Connection connection,
java.lang.String targetName,
java.lang.String originName)
Cria duas tabelas na base de dados. |
static void |
createTableTarget(java.sql.Connection connection,
java.lang.String target)
Cria uma tabela na base de dados. |
static void |
destroySyscolumnextTable(java.sql.Connection connection)
Remove a tabela syscolumnext da base de dados. |
static void |
destroySystableextTable(java.sql.Connection connection)
Remove a tabela systableext da base de dados. |
static void |
destroyTable(java.sql.Connection connection,
java.lang.String nome)
Remove uma tabela da base de dados. |
static java.sql.Connection |
getConnection()
Cria uma coneccao a base de dados. |
static DataSource |
getDataSource()
Cria um DataSource com uma coneccao a base de dados. |
static 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. |
static java.lang.Object |
getValueContacto(int rowNum,
int colNum)
|
static int |
insertValueContacto(java.sql.Connection connection,
java.lang.String table)
Insere dados na tabela referenciada |
static int |
insertValueEntidade(java.sql.Connection connection,
java.lang.String table)
Insere dados na tabela que referencia |
static void |
insertValuesSyscolumnext(java.sql.Connection connection,
java.lang.String nome)
Insere dados na tabela syscolumnext |
static void |
insertValuesSystableext(java.sql.Connection connection,
java.lang.String nome)
Insere dados na tabela systableext |
static void |
makeJarFile(java.lang.String jarName,
java.lang.String serName)
Funcao auxiliar para construir ficheiros jar com tabelas serializadas |
static void |
removeValues(java.sql.Connection connection,
java.lang.String table)
Remove os dados na tabela que referencia |
static void |
setUtilStuff(AbstractUtilStuff _utilStuff)
Indica ema qual Base de Dados se esta a trabalhar |
| 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_COL
public static final int CONTACTO_ROWS
public static final int ENTIDADE_COL
public static final int ENTIDADE_ROWS
| Constructor Detail |
public UtilStuff()
| Method Detail |
public static void setUtilStuff(AbstractUtilStuff _utilStuff)
_utilStuff - The new utilStuff value
public static 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 static 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 static 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 static 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 static 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 static 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 static 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 static 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 static java.lang.Object getValueContacto(int rowNum,
int colNum)
rowNum - Description of the ParametercolNum - Description of the Parameter
public static 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 static 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 static 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 static 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 static 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 static java.sql.Connection getConnection()
throws DAORuntimeException
DAORuntimeException - No caso de nao ser possivel efectuar a
coneccao.
public static DataSource getDataSource()
throws DAORuntimeException
DAORuntimeException - No caso de nao ser possivel efectuar a
coneccao.public static java.lang.String getTableName(java.lang.String name)
name - Description of the Parameter
public static 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 | ||||||||||