Package org.postgresql.jdbc
Class PgParameterMetaData
- java.lang.Object
-
- org.postgresql.jdbc.PgParameterMetaData
-
- All Implemented Interfaces:
java.sql.ParameterMetaData
,java.sql.Wrapper
public class PgParameterMetaData extends java.lang.Object implements java.sql.ParameterMetaData
-
-
Constructor Summary
Constructors Constructor Description PgParameterMetaData(BaseConnection connection, int[] oids)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getParameterClassName(int param)
int
getParameterCount()
int
getParameterMode(int param)
For now report all parameters as inputs.int
getParameterType(int param)
java.lang.String
getParameterTypeName(int param)
int
getPrecision(int param)
int
getScale(int param)
int
isNullable(int param)
boolean
isSigned(int param)
PostgreSQL doesn't have unsigned numbersboolean
isWrapperFor(java.lang.Class<?> iface)
<T> T
unwrap(java.lang.Class<T> iface)
-
-
-
Constructor Detail
-
PgParameterMetaData
public PgParameterMetaData(BaseConnection connection, int[] oids)
-
-
Method Detail
-
getParameterClassName
public java.lang.String getParameterClassName(int param) throws java.sql.SQLException
- Specified by:
getParameterClassName
in interfacejava.sql.ParameterMetaData
- Throws:
java.sql.SQLException
-
getParameterCount
public int getParameterCount()
- Specified by:
getParameterCount
in interfacejava.sql.ParameterMetaData
-
getParameterMode
public int getParameterMode(int param) throws java.sql.SQLException
For now report all parameters as inputs. CallableStatements may have one output, but ignore that for now.- Specified by:
getParameterMode
in interfacejava.sql.ParameterMetaData
- Throws:
java.sql.SQLException
-
getParameterType
public int getParameterType(int param) throws java.sql.SQLException
- Specified by:
getParameterType
in interfacejava.sql.ParameterMetaData
- Throws:
java.sql.SQLException
-
getParameterTypeName
public java.lang.String getParameterTypeName(int param) throws java.sql.SQLException
- Specified by:
getParameterTypeName
in interfacejava.sql.ParameterMetaData
- Throws:
java.sql.SQLException
-
getPrecision
public int getPrecision(int param) throws java.sql.SQLException
- Specified by:
getPrecision
in interfacejava.sql.ParameterMetaData
- Throws:
java.sql.SQLException
-
getScale
public int getScale(int param) throws java.sql.SQLException
- Specified by:
getScale
in interfacejava.sql.ParameterMetaData
- Throws:
java.sql.SQLException
-
isNullable
public int isNullable(int param) throws java.sql.SQLException
- Specified by:
isNullable
in interfacejava.sql.ParameterMetaData
- Throws:
java.sql.SQLException
-
isSigned
public boolean isSigned(int param) throws java.sql.SQLException
PostgreSQL doesn't have unsigned numbers- Specified by:
isSigned
in interfacejava.sql.ParameterMetaData
- Throws:
java.sql.SQLException
-
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException
- Specified by:
isWrapperFor
in interfacejava.sql.Wrapper
- Throws:
java.sql.SQLException
-
unwrap
public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException
- Specified by:
unwrap
in interfacejava.sql.Wrapper
- Throws:
java.sql.SQLException
-
-