public class PgParameterMetaData
extends java.lang.Object
implements java.sql.ParameterMetaData
Modifier and Type | Field and Description |
---|---|
private BaseConnection |
connection |
private int[] |
oids |
Constructor and Description |
---|
PgParameterMetaData(BaseConnection connection,
int[] oids) |
Modifier and Type | Method and Description |
---|---|
private void |
checkParamIndex(int param) |
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 numbers
|
boolean |
isWrapperFor(java.lang.Class<?> iface) |
<T> T |
unwrap(java.lang.Class<T> iface) |
private final BaseConnection connection
private final int[] oids
public PgParameterMetaData(BaseConnection connection, int[] oids)
public java.lang.String getParameterClassName(int param) throws java.sql.SQLException
getParameterClassName
in interface java.sql.ParameterMetaData
java.sql.SQLException
public int getParameterCount()
getParameterCount
in interface java.sql.ParameterMetaData
public int getParameterMode(int param) throws java.sql.SQLException
getParameterMode
in interface java.sql.ParameterMetaData
java.sql.SQLException
public int getParameterType(int param) throws java.sql.SQLException
getParameterType
in interface java.sql.ParameterMetaData
java.sql.SQLException
public java.lang.String getParameterTypeName(int param) throws java.sql.SQLException
getParameterTypeName
in interface java.sql.ParameterMetaData
java.sql.SQLException
public int getPrecision(int param) throws java.sql.SQLException
getPrecision
in interface java.sql.ParameterMetaData
java.sql.SQLException
public int getScale(int param) throws java.sql.SQLException
getScale
in interface java.sql.ParameterMetaData
java.sql.SQLException
public int isNullable(int param) throws java.sql.SQLException
isNullable
in interface java.sql.ParameterMetaData
java.sql.SQLException
public boolean isSigned(int param) throws java.sql.SQLException
isSigned
in interface java.sql.ParameterMetaData
java.sql.SQLException
private void checkParamIndex(int param) throws PSQLException
PSQLException
public boolean isWrapperFor(java.lang.Class<?> iface) throws java.sql.SQLException
isWrapperFor
in interface java.sql.Wrapper
java.sql.SQLException
public <T> T unwrap(java.lang.Class<T> iface) throws java.sql.SQLException
unwrap
in interface java.sql.Wrapper
java.sql.SQLException