if (fid == null)
throw StandardException.newException(SQLState.LANG_FILE_DOES_NOT_EXIST, sqlName,schemaName);
long generationId = fid.getGenerationId();
FileResource fr = af.getTransaction(ddc.getContextManager()).getFileHandler();
String externalName = org.apache.derby.impl.sql.execute.JarDDL.mkExternalName(schemaName, sqlName, fr.getSeparatorChar());
Object f = fr.getAsFile(externalName, generationId);
if (f instanceof java.io.File)
return f;
try {
return fr.getAsStream(externalName, generationId);
} catch (java.io.IOException ioe) {
throw StandardException.newException(SQLState.LANG_FILE_ERROR, ioe, ioe.toString());
}
}