text: // File generated by hadoop record compiler. Do not edit.
  
  #ifndef ErrorTxn_HH_
  #define ErrorTxn_HH_
  
  #include "Efc.hh"
  #include "../../jute/inc/ERecord.hh"
  #include "../../jute/inc/EBinaryInputArchive.hh"
  #include "../../jute/inc/EBinaryOutputArchive.hh"
  #include "../../jute/inc/ECsvOutputArchive.hh"
  
  namespace efc {
  namespace ezk {
  
  class ErrorTxn: public ERecord {
  public:
  	int err;
  
  	ErrorTxn() : err(0) {
  	}
  	ErrorTxn(int err) {
  		this->err = err;
  	}
  	int getErr() {
  		return err;
  	}
  	void setErr(int m_) {
  		err = m_;
  	}
  	virtual void serialize(EOutputArchive* a_, const char* tag)
  			THROWS(EIOException) {
  		a_->startRecord(this, tag);
  		a_->writeInt(err, "err");
  		a_->endRecord(this, tag);
  	}
  	virtual void deserialize(EInputArchive* a_, const char* tag)
  			THROWS(EIOException) {
  		a_->startRecord(tag);
  		err = a_->readInt("err");
  		a_->endRecord(tag);
  	}
  	virtual EString toString() {
  		try {
  			EByteArrayOutputStream s;
  			ECsvOutputArchive a_(&s);
  			a_.startRecord(this, "");
  			a_.writeInt(err, "err");
  			a_.endRecord(this, "");
  			s.write('\0');
  			return (char*) s.data();
  		} catch (EThrowable& ex) {
  			ex.printStackTrace();
  		}
  		return "ERROR";
  	}
  	void write(EDataOutput* out) THROWS(EIOException) {
  		EBinaryOutputArchive archive(out);
  		serialize(&archive, "");
  	}
  	void readFields(EDataInput* in) THROWS(EIOException) {
  		EBinaryInputArchive archive(in);
  		deserialize(&archive, "");
  	}
  	virtual int compareTo(EObject* peer_) THROWS(EClassCastException) {
  		ErrorTxn* peer = dynamic_cast<ErrorTxn*>(peer_);
  		if (!peer) {
  			throw EClassCastException(__FILE__, __LINE__,
  					"Comparing different types of records.");
  		}
  		int ret = 0;
  		ret = (err == peer->err) ? 0 : ((err < peer->err) ? -1 : 1);
  		if (ret != 0)
  			return ret;
  		return ret;
  	}
  	virtual boolean equals(EObject* peer_) {
  		ErrorTxn* peer = dynamic_cast<ErrorTxn*>(peer_);
  		if (!peer) {
  			return false;
  		}
  		if (peer_ == this) {
  			return true;
  		}
  		boolean ret = false;
  		ret = (err == peer->err);
  		if (!ret)
  			return ret;
  		return ret;
  	}
  	virtual int hashCode() {
  		int result = 17;
  		int ret;
  		ret = (int) err;
  		result = 37 * result + ret;
  		return result;
  	}
  	static EString signature() {
  		return "LErrorTxn(i)";
  	}
  };
  
  } /* namespace ezk */
  } /* namespace efc */
  #endif /* ErrorTxn_HH_ */
  