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
-
-
Field Summary
Fields Modifier and Type Field Description private BaseConnectionconnectionprivate int[]oids
-
Constructor Summary
Constructors Constructor Description PgParameterMetaData(BaseConnection connection, int[] oids)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidcheckParamIndex(int param)java.lang.StringgetParameterClassName(int param)intgetParameterCount()intgetParameterMode(int param)For now report all parameters as inputs.intgetParameterType(int param)java.lang.StringgetParameterTypeName(int param)intgetPrecision(int param)intgetScale(int param)intisNullable(int param)booleanisSigned(int param)PostgreSQL doesn't have unsigned numbersbooleanisWrapperFor(java.lang.Class<?> iface)<T> Tunwrap(java.lang.Class<T> iface)
-
-
-
Field Detail
-
connection
private final BaseConnection connection
-
oids
private final int[] oids
-
-
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:
getParameterClassNamein interfacejava.sql.ParameterMetaData- Throws:
java.sql.SQLException
-
getParameterCount
public int getParameterCount()
- Specified by:
getParameterCountin interfacejava.sql.ParameterMetaData
-
getParameterMode
public int getParameterMode(int param) throws java.sql.SQLExceptionFor now report all parameters as inputs. CallableStatements may have one output, but ignore that for now.- Specified by:
getParameterModein interfacejava.sql.ParameterMetaData- Throws:
java.sql.SQLException
-
getParameterType
public int getParameterType(int param) throws java.sql.SQLException- Specified by:
getParameterTypein interfacejava.sql.ParameterMetaData- Throws:
java.sql.SQLException
-
getParameterTypeName
public java.lang.String getParameterTypeName(int param) throws java.sql.SQLException- Specified by:
getParameterTypeNamein interfacejava.sql.ParameterMetaData- Throws:
java.sql.SQLException
-
getPrecision
public int getPrecision(int param) throws java.sql.SQLException- Specified by:
getPrecisionin interfacejava.sql.ParameterMetaData- Throws:
java.sql.SQLException
-
getScale
public int getScale(int param) throws java.sql.SQLException- Specified by:
getScalein interfacejava.sql.ParameterMetaData- Throws:
java.sql.SQLException
-
isNullable
public int isNullable(int param) throws java.sql.SQLException- Specified by:
isNullablein interfacejava.sql.ParameterMetaData- Throws:
java.sql.SQLException
-
isSigned
public boolean isSigned(int param) throws java.sql.SQLExceptionPostgreSQL doesn't have unsigned numbers- Specified by:
isSignedin interfacejava.sql.ParameterMetaData- Throws:
java.sql.SQLException
-
checkParamIndex
private void checkParamIndex(int param) throws PSQLException- Throws:
PSQLException
-
isWrapperFor
public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException- Specified by:
isWrapperForin interfacejava.sql.Wrapper- Throws:
java.sql.SQLException
-
unwrap
public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException- Specified by:
unwrapin interfacejava.sql.Wrapper- Throws:
java.sql.SQLException
-
-