如何使用JavaSwing从数据库中获取所有类型名?

如何使用JavaSwing从数据库中获取所有类型名?,java,oracle,resultset,database-metadata,sql-types,Java,Oracle,Resultset,Database Metadata,Sql Types,我想从oracle数据库模式中检索所有触发器名称 我使用getFunctions检索所有函数,但找不到其他类型的函数 DatabaseMetaData dbmd; ResultSet result = dbmd.getFunctions(null, Ousername, null); 以下是一些创建的类型: create type FINAL_obj is object (acode integer,performance Float); create type FINAL_tab is ta

我想从oracle数据库模式中检索所有触发器名称

我使用getFunctions检索所有函数,但找不到其他类型的函数

DatabaseMetaData dbmd;
ResultSet result = dbmd.getFunctions(null, Ousername, null);
以下是一些创建的类型:

create type FINAL_obj is object (acode integer,performance Float);
create type FINAL_tab is table of FINAL_obj;

您可以使用元数据来实现这一点

DatabaseMetaData dbmd = dbConnection.getMetaData(); 
ResultSet result = dbmd.getTables("%", Ousername, "%", new String[]{ "TYPE" });
while (result.next()) {
    result.getString("TABLE_NAME")
}