/**
interface DBServerInterface {
boolean isUserExisting(
in string arg0
);
::MDMSupport::BuddyTableModel getBuddyTableModel(
in string arg0
);
void setStatus(
in string arg0,
in string arg1
);
void addBuddy(
in string arg0,
in string arg1
);
void addBuddies(
in string arg0,
in ::java::util::Vector arg1
);
void deleteBuddy(
in string arg0,
in string arg1
);
::java::util::Vector search(
in string arg0,
in string arg1,
in string arg2,
in string arg3,
in string arg4
);
::MDMSupport::BuddyTableModel getInfoAboutUsers(
in ::java::util::Vector arg0
);
::MDMSupport::BuddyTableModel getInfoAboutUsersAndAdd(
in string arg0,
in ::java::util::Vector arg1
);
::java::util::Vector getUsersForBuddy(
in string arg0
);
::java::util::Vector getCodeValues(
in string arg0
);
boolean isUserOnline(
in string arg0
);
string getStatus(
in string arg0
);
};
*/
abstract public class DBServerInterfaceHelper {
public static DBServerInterface narrow(org.omg.CORBA.Object object) {
return narrow(object, false);
}
private static DBServerInterface narrow(org.omg.CORBA.Object object, boolean is_a) {
if(object == null) {
return null;
}
if(object instanceof DBServerInterface) {
return (DBServerInterface) object;
}
if(is_a || object._is_a(id())) {
_st_DBServerInterface result = (_st_DBServerInterface)new _st_DBServerInterface();
((org.omg.CORBA.portable.ObjectImpl) result)._set_delegate
(((org.omg.CORBA.portable.ObjectImpl) object)._get_delegate());
((org.omg.CORBA.portable.ObjectImpl) result._this())._set_delegate
(((org.omg.CORBA.portable.ObjectImpl) object)._get_delegate());
return (DBServerInterface) result._this();
}
return null;
}
public static DBServerInterface bind(org.omg.CORBA.ORB orb) {
return bind(orb, null, null, null);
}
public static DBServerInterface bind(org.omg.CORBA.ORB orb, java.lang.String name) {
return bind(orb, name, null, null);
}
public static DBServerInterface bind(org.omg.CORBA.ORB orb, java.lang.String name, java.lang.String host, org.omg.CORBA.BindOptions options) {
return narrow(orb.bind(id(), name, host, options), true);
}
private static org.omg.CORBA.ORB _orb() {
return org.omg.CORBA.ORB.init();
}
public static DBServerInterface read(org.omg.CORBA.portable.InputStream _input) {
return DBServerInterfaceHelper.narrow(_input.read_Object(), true);
}
public static void write(org.omg.CORBA.portable.OutputStream _output, DBServerInterface value) {
_output.write_Object(value);
}
public static void insert(org.omg.CORBA.Any any, DBServerInterface value) {
org.omg.CORBA.portable.OutputStream output = any.create_output_stream();
write(output, value);
any.read_value(output.create_input_stream(), type());
}
public static DBServerInterface extract(org.omg.CORBA.Any any) {
if(!any.type().equal(type())) {
throw new org.omg.CORBA.BAD_TYPECODE();
}
return read(any.create_input_stream());
}
private static org.omg.CORBA.TypeCode _type;
public static org.omg.CORBA.TypeCode type() {
if(_type == null) {
_type = _orb().create_interface_tc(id(), "DBServerInterface");
}
return _type;
}
public static java.lang.String id() {
return "IDL:DBServerInterface:1.0";
}
}