forked from geodmms/xdgnjobs

?? ?
2008-03-25 b2f56dae55d1de8f7378f22b2466e314b1e30cc7
xdgnjobs/ximple-spatialjob/src/main/java/com/ximple/eofms/jobs/AbstractOracleDatabaseJob.java
@@ -39,7 +39,7 @@
    protected String _password;
    protected String _orgSchema;
    protected boolean _testMode = false;
    protected int    _testCount = -1;
    protected int _testCount = -1;
    public abstract void execute(JobExecutionContext context) throws JobExecutionException;
@@ -105,10 +105,7 @@
        }
    }
    protected OracleConvertJobContext prepareJobContext()
    {
        return new OracleConvertJobContext();
    }
    protected abstract AbstractOracleJobContext prepareJobContext(String filterPath);
    protected static byte[] getBytesFromBLOB(BLOB blob) throws SQLException
    {
@@ -119,7 +116,7 @@
        byte[] chunk = new byte[optimalSize];
        InputStream is = blob.getBinaryStream(0);
        ByteBuffer buffer = null;    // ByteBuffer.allocate(optimalSize);
        int len = 0;
        int len;
        try
        {
@@ -137,6 +134,8 @@
            }
            is.close();
            assert buffer != null;
            buffer.position(0);
            raw = buffer.array();
        } catch (IOException e)