module JDBC.Types.SQLInput
  ( readArraySQLInput,
    readAsciiStreamSQLInput,
    readBigDecimalSQLInput,
    readBinaryStreamSQLInput,
    readBlobSQLInput,
    readBooleanSQLInput,
    readByteSQLInput,
    readBytesSQLInput2,
    readCharacterStreamSQLInput,
    readClobSQLInput,
    readDateSQLInput,
    readDoubleSQLInput,
    readFloatSQLInput,
    readIntSQLInput,
    readLongSQLInput,
    readNClobSQLInput,
    readNStringSQLInput,
    readObjectSQLInput,
    readRefSQLInput,
    readRowIdSQLInput,
    readShortSQLInput,
    readSQLXMLSQLInput,
    readStringSQLInput,
    readTimeSQLInput,
    readTimestampSQLInput,
    readURLSQLInput,
    wasNullSQLInput)
where

import Java
import Interop.Java.DateTime
import Interop.Java.IO
import Java.Math
import Interop.Java.Net
import JDBC.Types

foreign import java unsafe "@interface readArray" readArraySQLInput :: Java SQLInput Array

foreign import java unsafe "@interface readAsciiStream" readAsciiStreamSQLInput :: Java SQLInput InputStream

foreign import java unsafe "@interface readBigDecimal" readBigDecimalSQLInput :: Java SQLInput BigDecimal

foreign import java unsafe "@interface readBinaryStream" readBinaryStreamSQLInput :: Java SQLInput InputStream

foreign import java unsafe "@interface readBlob" readBlobSQLInput :: Java SQLInput Blob

foreign import java unsafe "@interface readBoolean" readBooleanSQLInput_ :: Java SQLInput JBoolean

--Wrapper

readBooleanSQLInput :: Java SQLInput Bool
readBooleanSQLInput = fmap fromJava (readBooleanSQLInput_)

--End Wrapper

foreign import java unsafe "@interface readByte" readByteSQLInput :: Java SQLInput JByte

foreign import java unsafe "@interface readBytes" readBytesSQLInput2_ :: Java SQLInput JByteArray

--Wrapper

readBytesSQLInput2 :: Java SQLInput [Byte]
readBytesSQLInput2 = fmap fromJava (readBytesSQLInput2_)

--End Wrapper


foreign import java unsafe "@interface readCharacterStream" readCharacterStreamSQLInput :: Java SQLInput Reader

foreign import java unsafe "@interface readClob" readClobSQLInput :: Java SQLInput Clob

foreign import java unsafe "@interface readDate" readDateSQLInput :: Java SQLInput Date

foreign import java unsafe "@interface readDouble" readDoubleSQLInput :: Java SQLInput Double

foreign import java unsafe "@interface readFloat" readFloatSQLInput :: Java SQLInput Float

foreign import java unsafe "@interface readInt" readIntSQLInput :: Java SQLInput Int

foreign import java unsafe "@interface readLong" readLongSQLInput :: Java SQLInput Int64

foreign import java unsafe "@interface readNClob" readNClobSQLInput :: Java SQLInput NClob

foreign import java unsafe "@interface readNString" readNStringSQLInput :: Java SQLInput JString

foreign import java unsafe "@interface readObject" readObjectSQLInput :: Java SQLInput Object

foreign import java unsafe "@interface readRef" readRefSQLInput :: Java SQLInput Ref

foreign import java unsafe "@interface readRowId" readRowIdSQLInput :: Java SQLInput RowId

foreign import java unsafe "@interface readShort" readShortSQLInput :: Java SQLInput Short

foreign import java unsafe "@interface readSQLXML" readSQLXMLSQLInput :: Java SQLInput SQLXML

foreign import java unsafe "@interface readString" readStringSQLInput :: Java SQLInput JString

foreign import java unsafe "@interface readTime" readTimeSQLInput :: Java SQLInput Time

foreign import java unsafe "@interface readTimestamp" readTimestampSQLInput :: Java SQLInput Timestamp

foreign import java unsafe "@interface readURL" readURLSQLInput :: Java SQLInput URL

foreign import java unsafe "@interface wasNull" wasNullSQLInput_ :: Java SQLInput JBoolean

--Wrapper

wasNullSQLInput :: Java SQLInput Bool
wasNullSQLInput = fmap fromJava (wasNullSQLInput_)

--End Wrapper
