CloneSet145


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
37230.991statement_sequence[13]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1381163
E:/TSE/Projects-CloneDR/sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/util/DBUtil.java
2371209
E:/TSE/Projects-CloneDR/sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/util/DBUtil.java
Next
Last
Clone Instance
1
Line Count
38
Source Line
1163
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/util/DBUtil.java

if (rs.wasNull()) {
  ps.setNull(index, type);
  return;
}
// Open file output stream
long millis = System.currentTimeMillis();
File f = File.createTempFile("clob", "" + millis);
f.deleteOnExit();
FileOutputStream fos = new FileOutputStream(f);
if (log.isDebugEnabled()) {
  // i18n[DBUtil.info.bindclobfile=bindClobVarInFile: Opening temp file '{0}']
  String msg = s_stringMgr.getString("DBUtil.info.bindclobfile", f.getAbsolutePath());
  log.debug(msg);
}
// read rs input stream write to file output stream
byte[] buf = new byte[_prefs.getFileCacheBufferSize()];
int length = 0;
int total = 0;
while ((length = is.read(buf)) >= 0) {
  if (log.isDebugEnabled()) {
    // i18n[DBUtil.info.bindcloblength=bindClobVarInFile: writing '{0}' bytes.]
    String msg = s_stringMgr.getString("DBUtil.info.bindcloblength", Integer.valueOf(length));
    log.debug(msg);
  }
  fos.write(buf, 0, length);
  total += length;
}
fos.close();
// set the ps to read from the file we just created.
FileInputStream fis = new FileInputStream(f);
BufferedInputStream bis = new BufferedInputStream(fis);


First
Previous
Clone Instance
2
Line Count
37
Source Line
1209
Source File
E:/TSE/Projects-CloneDR/sql12/plugins/dbcopy/src/net/sourceforge/squirrel_sql/plugins/dbcopy/util/DBUtil.java

if (rs.wasNull()) {
  ps.setNull(index, type);
  return;
}
// Open file output stream
long millis = System.currentTimeMillis();
File f = File.createTempFile("blob", "" + millis);
f.deleteOnExit();
FileOutputStream fos = new FileOutputStream(f);
if (log.isDebugEnabled()) {
  // i18n[DBUtil.info.bindblobfile=bindBlobVarInFile: Opening temp file '{0}']
  String msg = s_stringMgr.getString("DBUtil.info.bindblobfile", f.getAbsolutePath());
  log.debug(msg);
}
// read rs input stream write to file output stream
byte[] buf = new byte[_prefs.getFileCacheBufferSize()];
int length = 0;
int total = 0;
while ((length = is.read(buf)) >= 0) {
  if (log.isDebugEnabled()) {
    // i18n[DBUtil.info.bindbloblength=bindBlobVarInFile: writing '{0}' bytes.]
    String msg = s_stringMgr.getString("DBUtil.info.bindbloblength", Integer.valueOf(length));
    log.debug(msg);
  }
  fos.write(buf, 0, length);
  total += length;
}
fos.close();
// set the ps to read from the file we just created.
FileInputStream fis = new FileInputStream(f);
BufferedInputStream bis = new BufferedInputStream(fis);


Clone AbstractionParameter Count: 3Parameter Bindings

if (rs.wasNull()) {
  ps.setNull(index, type);
  return;
}
// Open file output stream
long millis = System.currentTimeMillis();
File f = File.createTempFile( [[#variable18c9c3e0]], "" + millis);
f.deleteOnExit();
FileOutputStream fos = new FileOutputStream(f);
if (log.isDebugEnabled()) {
  // i18n[DBUtil.info.bindblobfile=bindBlobVarInFile: Opening temp file '{0}']
  // i18n[DBUtil.info.bindclobfile=bindClobVarInFile: Opening temp file '{0}']
  String msg = s_stringMgr.getString( [[#variable18cbdda0]], f.getAbsolutePath());
  log.debug(msg);
}
// read rs input stream write to file output stream
byte[] buf = new byte[_prefs.getFileCacheBufferSize()];
int length = 0;
int total = 0;
while ((length = is.read(buf)) >= 0) {
  if (log.isDebugEnabled()) {
    // i18n[DBUtil.info.bindbloblength=bindBlobVarInFile: writing '{0}' bytes.]
    // i18n[DBUtil.info.bindcloblength=bindClobVarInFile: writing '{0}' bytes.]
    String msg = s_stringMgr.getString( [[#variable18c990c0]], Integer.valueOf(length));
    log.debug(msg);
  }
  fos.write(buf, 0, length);
  total += length;
}
fos.close();
// set the ps to read from the file we just created.
FileInputStream fis = new FileInputStream(f);
BufferedInputStream bis = new BufferedInputStream(fis);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#18c9c3e0]]
"clob" 
12[[#18c9c3e0]]
"blob" 
21[[#18cbdda0]]
"DBUtil.info.bindclobfile" 
22[[#18cbdda0]]
"DBUtil.info.bindblobfile" 
31[[#18c990c0]]
"DBUtil.info.bindcloblength" 
32[[#18c990c0]]
"DBUtil.info.bindbloblength"