equal
deleted
inserted
replaced
37 public int encode(SQLCommand sqlCommand, OutputStream out) throws BatchException { |
37 public int encode(SQLCommand sqlCommand, OutputStream out) throws BatchException { |
38 try { |
38 try { |
39 ByteArrayOutputStream bufferAOS = new ByteArrayOutputStream(); |
39 ByteArrayOutputStream bufferAOS = new ByteArrayOutputStream(); |
40 DataOutputStream buffer = new DataOutputStream(bufferAOS); |
40 DataOutputStream buffer = new DataOutputStream(bufferAOS); |
41 |
41 |
42 buffer.write(BATCH_START); |
42 buffer.write(BATCH_HEADER); |
43 |
43 |
44 if (sqlCommand instanceof SQLCommandNamed) { |
44 if (sqlCommand instanceof SQLCommandNamed) { |
45 sqlCommand = ((SQLCommandNamed) sqlCommand).getSQLCommandNumbered(); |
45 sqlCommand = ((SQLCommandNamed) sqlCommand).getSQLCommandNumbered(); |
46 } |
46 } |
47 |
47 |