Package org.h2.bnf.context
Class DbProcedure
- java.lang.Object
-
- org.h2.bnf.context.DbProcedure
-
public class DbProcedure extends java.lang.Object
Contains meta data information about a procedure. This class is used by the H2 Console.
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
name
private DbColumn[]
parameters
private java.lang.String
quotedName
private boolean
returnsResult
private DbSchema
schema
-
Constructor Summary
Constructors Constructor Description DbProcedure(DbSchema schema, java.sql.ResultSet rs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
DbColumn[]
getParameters()
java.lang.String
getQuotedName()
DbSchema
getSchema()
boolean
isReturnsResult()
(package private) void
readParameters(java.sql.DatabaseMetaData meta)
Read the column for this table from the database meta data.
-
-
-
Constructor Detail
-
DbProcedure
public DbProcedure(DbSchema schema, java.sql.ResultSet rs) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
-
Method Detail
-
getSchema
public DbSchema getSchema()
- Returns:
- The schema this table belongs to.
-
getParameters
public DbColumn[] getParameters()
- Returns:
- The column list.
-
getName
public java.lang.String getName()
- Returns:
- The table name.
-
getQuotedName
public java.lang.String getQuotedName()
- Returns:
- The quoted table name.
-
isReturnsResult
public boolean isReturnsResult()
- Returns:
- True if this function return a value
-
readParameters
void readParameters(java.sql.DatabaseMetaData meta) throws java.sql.SQLException
Read the column for this table from the database meta data.- Parameters:
meta
- the database meta data- Throws:
java.sql.SQLException
- on failure
-
-