/*================================================================================
  code generated by: java2cpp
  author: Zoran Angelov, mailto://baldzar@gmail.com
  class: javax.sql.StatementEventListener
================================================================================*/


#ifndef J2CPP_INCLUDE_IMPLEMENTATION

#ifndef J2CPP_JAVAX_SQL_STATEMENTEVENTLISTENER_HPP_DECL
#define J2CPP_JAVAX_SQL_STATEMENTEVENTLISTENER_HPP_DECL


namespace j2cpp { namespace javax { namespace sql { class StatementEvent; } } }
namespace j2cpp { namespace java { namespace lang { class Object; } } }
namespace j2cpp { namespace java { namespace util { class EventListener; } } }


#include <java/lang/Object.hpp>
#include <java/util/EventListener.hpp>
#include <javax/sql/StatementEvent.hpp>


namespace j2cpp {

namespace javax { namespace sql {

	class StatementEventListener;
	class StatementEventListener
		: public object<StatementEventListener>
	{
	public:

		J2CPP_DECLARE_CLASS

		J2CPP_DECLARE_METHOD(0)
		J2CPP_DECLARE_METHOD(1)

		explicit StatementEventListener(jobject jobj)
		: object<StatementEventListener>(jobj)
		{
		}

		operator local_ref<java::lang::Object>() const;
		operator local_ref<java::util::EventListener>() const;


		void statementClosed(local_ref< javax::sql::StatementEvent >  const&);
		void statementErrorOccurred(local_ref< javax::sql::StatementEvent >  const&);
	}; //class StatementEventListener

} //namespace sql
} //namespace javax

} //namespace j2cpp

#endif //J2CPP_JAVAX_SQL_STATEMENTEVENTLISTENER_HPP_DECL

#else //J2CPP_INCLUDE_IMPLEMENTATION

#ifndef J2CPP_JAVAX_SQL_STATEMENTEVENTLISTENER_HPP_IMPL
#define J2CPP_JAVAX_SQL_STATEMENTEVENTLISTENER_HPP_IMPL

namespace j2cpp {



javax::sql::StatementEventListener::operator local_ref<java::lang::Object>() const
{
	return local_ref<java::lang::Object>(get_jobject());
}

javax::sql::StatementEventListener::operator local_ref<java::util::EventListener>() const
{
	return local_ref<java::util::EventListener>(get_jobject());
}

void javax::sql::StatementEventListener::statementClosed(local_ref< javax::sql::StatementEvent > const &a0)
{
	return call_method<
		javax::sql::StatementEventListener::J2CPP_CLASS_NAME,
		javax::sql::StatementEventListener::J2CPP_METHOD_NAME(0),
		javax::sql::StatementEventListener::J2CPP_METHOD_SIGNATURE(0), 
		void
	>(get_jobject(), a0);
}

void javax::sql::StatementEventListener::statementErrorOccurred(local_ref< javax::sql::StatementEvent > const &a0)
{
	return call_method<
		javax::sql::StatementEventListener::J2CPP_CLASS_NAME,
		javax::sql::StatementEventListener::J2CPP_METHOD_NAME(1),
		javax::sql::StatementEventListener::J2CPP_METHOD_SIGNATURE(1), 
		void
	>(get_jobject(), a0);
}


J2CPP_DEFINE_CLASS(javax::sql::StatementEventListener,"javax/sql/StatementEventListener")
J2CPP_DEFINE_METHOD(javax::sql::StatementEventListener,0,"statementClosed","(Ljavax/sql/StatementEvent;)V")
J2CPP_DEFINE_METHOD(javax::sql::StatementEventListener,1,"statementErrorOccurred","(Ljavax/sql/StatementEvent;)V")

} //namespace j2cpp

#endif //J2CPP_JAVAX_SQL_STATEMENTEVENTLISTENER_HPP_IMPL

#endif //J2CPP_INCLUDE_IMPLEMENTATION
