The com.ibm.db2.jcc.DB2FileReference class is an abstract class that defines methods that support insertion of data into tables from file reference variables. This class applies only to IBM® Data Server Driver for JDBC and SQLJ type 2 connectivity to DB2® for z/OS® Version 9 or later.
The following constants define types codes only for the IBM Data Server Driver for JDBC and SQLJ.
The following methods are defined only for the IBM Data Server Driver for JDBC and SQLJ.
public int getDriverType()
Returns the server data type of the file reference variable. This type is one of the values in com.ibm.db2.jcc.DB2Types.
public String getFileEncoding()
Returns the encoding of the data in the file for a DB2FileReference object.
public String getFileName()
Returns the file name for a DB2FileReference object.
public int getFileCcsid()
Returns the CCSID of the data in the file for a DB2FileReference object.
public String setFileName(String fileName)
throws java.sql.SQLException
Sets the file name in a DB2FileReference object.