public String typeAsString(){
  String typeStr="?";
  String subtypeStr="?";
switch (this.type) {
case ETYPE_CONTROL:
    typeStr=" control/";
switch (this.subtype) {
case ESTYPE_HEADER:
    subtypeStr="header";
  break;
case ESTYPE_FOOTER:
subtypeStr="footer";
break;
}
break;
case ETYPE_TRANSACTIONS:
typeStr=" transaction/";
switch (this.subtype) {
case ESTYPE_TRAN_START:
subtypeStr="start";
break;
case ESTYPE_TRAN_COMMIT:
subtypeStr="commit";
break;
case ESTYPE_TRAN_ROLLBACK:
subtypeStr="rollback";
break;
case ESTYPE_TRAN_ROLLBACK_TO_SAVEPOINT:
subtypeStr="rollback_to_savepoint";
break;
case ESTYPE_TRAN_AUDIT:
subtypeStr="audit";
break;
}
break;
case ETYPE_LCR_DATA:
typeStr=" LCR data/";
switch (this.subtype) {
case ESTYPE_LCR_INSERT:
subtypeStr="insert";
break;
case ESTYPE_LCR_DELETE:
subtypeStr="delete";
break;
case ESTYPE_LCR_UPDATE:
subtypeStr="update";
break;
case ESTYPE_LCR_LOB_WRITE:
subtypeStr="LOB write";
break;
case ESTYPE_LCR_LOB_TRIM:
subtypeStr="LOB trim";
break;
case ESTYPE_LCR_LOB_ERASE:
subtypeStr="LOB erase";
break;
case ESTYPE_LCR_DDL:
subtypeStr="DDL";
break;
}
break;
case ETYPE_LCR_PLOG:
typeStr=" LCR plog/";
switch (this.subtype) {
case ESTYPE_LCR_PLOG_IFILE:
subtypeStr="include plog file";
break;
case ESTYPE_LCR_PLOG_IFILE_STATS:
subtypeStr="include plog file - rowcount";
break;
}
break;
default :
typeStr=" ?" + this.type + "/";
subtypeStr="?" + this.subtype;
}
return typeStr + subtypeStr;
}

public String typeAsString ( ) { String typeStr = "?" ; String subtypeStr = "?" ; switch ( this . type ) { case ETYPE_CONTROL : typeStr = " control/" ; switch ( this . subtype ) { case ESTYPE_HEADER : subtypeStr = "header" ; break ; case ESTYPE_FOOTER : subtypeStr = "footer" ; break ; } break ; case ETYPE_TRANSACTIONS : typeStr = " transaction/" ; switch ( this . subtype ) { case ESTYPE_TRAN_START : subtypeStr = "start" ; break ; case ESTYPE_TRAN_COMMIT : subtypeStr = "commit" ; break ; case ESTYPE_TRAN_ROLLBACK : subtypeStr = "rollback" ; break ; case ESTYPE_TRAN_ROLLBACK_TO_SAVEPOINT : subtypeStr = "rollback_to_savepoint" ; break ; case ESTYPE_TRAN_AUDIT : subtypeStr = "audit" ; break ; } break ; case ETYPE_LCR_DATA : typeStr = " LCR data/" ; switch ( this . subtype ) { case ESTYPE_LCR_INSERT : subtypeStr = "insert" ; break ; case ESTYPE_LCR_DELETE : subtypeStr = "delete" ; break ; case ESTYPE_LCR_UPDATE : subtypeStr = "update" ; break ; case ESTYPE_LCR_LOB_WRITE : subtypeStr = "LOB write" ; break ; case ESTYPE_LCR_LOB_TRIM : subtypeStr = "LOB trim" ; break ; case ESTYPE_LCR_LOB_ERASE : subtypeStr = "LOB erase" ; break ; case ESTYPE_LCR_DDL : subtypeStr = "DDL" ; break ; } break ; case ETYPE_LCR_PLOG : typeStr = " LCR plog/" ; switch ( this . subtype ) { case ESTYPE_LCR_PLOG_IFILE : subtypeStr = "include plog file" ; break ; case ESTYPE_LCR_PLOG_IFILE_STATS : subtypeStr = "include plog file - rowcount" ; break ; } break ; default : typeStr = " ?" + this . type + "/" ; subtypeStr = "?" + this . subtype ; } return typeStr + subtypeStr ; }
human readable text description of type and subtype
