private byte[] fetchGuid(){
  PreparedStatement stmt=null;
  ResultSet rows=null;
  String sqltext=SELECT_GUID;
  byte[] data=null;
  try {
    metrics.startTiming();
    stmt=conn.prepareStatement(sqltext);
    rows=stmt.executeQuery();
    if (rows.next()) {
      data=rows.getBytes(1);
    }
    rows.close();
    rows=null;
    stmt.close();
    stmt=null;
    metrics.recordGUIDS();
  }
 catch (  SQLException e) {
    if (OracleLog.isLoggingEnabled())     log.severe(e.toString());
  }
 finally {
    for (    String message : SODAUtils.closeCursor(stmt,rows)) {
      if (OracleLog.isLoggingEnabled())       log.severe(message);
    }
  }
  return (data);
}

private byte [ ] fetchGuid ( ) { PreparedStatement stmt = null ; ResultSet rows = null ; String sqltext = SELECT_GUID ; byte [ ] data = null ; try { metrics . startTiming ( ) ; stmt = conn . prepareStatement ( sqltext ) ; rows = stmt . executeQuery ( ) ; if ( rows . next ( ) ) { data = rows . getBytes ( 1 ) ; } rows . close ( ) ; rows = null ; stmt . close ( ) ; stmt = null ; metrics . recordGUIDS ( ) ; } catch ( SQLException e ) { if ( OracleLog . isLoggingEnabled ( ) ) log . severe ( e . toString ( ) ) ; } finally { for ( String message : SODAUtils . closeCursor ( stmt , rows ) ) { if ( OracleLog . isLoggingEnabled ( ) ) log . severe ( message ) ; } } return ( data ) ; }
fetch a single guid from the database this is used as a back - up for uuid generation .
