
org.postgresql.jdbc4.AbstractJdbc4ParameterMetaData Maven / Gradle / Ivy
/*-------------------------------------------------------------------------
*
* Copyright (c) 2005-2014, PostgreSQL Global Development Group
*
*
*-------------------------------------------------------------------------
*/
package org.postgresql.jdbc4;
import java.sql.SQLException;
import org.postgresql.core.BaseConnection;
public abstract class AbstractJdbc4ParameterMetaData extends org.postgresql.jdbc3.AbstractJdbc3ParameterMetaData
{
public AbstractJdbc4ParameterMetaData(BaseConnection connection, int oids[])
{
super(connection, oids);
}
public boolean isWrapperFor(Class> iface) throws SQLException
{
return iface.isAssignableFrom(getClass());
}
public T unwrap(Class iface) throws SQLException
{
if (iface.isAssignableFrom(getClass()))
{
return iface.cast(this);
}
throw new SQLException("Cannot unwrap to " + iface.getName());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy