// ********************************************************************** // // Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. // // ********************************************************************** // Ice version 3.4.1 package Glacier2; // <auto-generated> // // Generated from file `Session.ice' // // Warning: do not edit this file. // // </auto-generated> /** * An object for managing the set of object identity constraints on a * {@link Session}. * * @see Session * @see SessionControl * **/ public abstract class _IdentitySetDisp extends Ice.ObjectImpl implements IdentitySet { protected void ice_copyStateFrom(Ice.Object __obj) throws java.lang.CloneNotSupportedException { throw new java.lang.CloneNotSupportedException(); } public static final String[] __ids = { "::Glacier2::IdentitySet", "::Ice::Object" }; public boolean ice_isA(String s) { return java.util.Arrays.binarySearch(__ids, s) >= 0; } public boolean ice_isA(String s, Ice.Current __current) { return java.util.Arrays.binarySearch(__ids, s) >= 0; } public String[] ice_ids() { return __ids; } public String[] ice_ids(Ice.Current __current) { return __ids; } public String ice_id() { return __ids[0]; } public String ice_id(Ice.Current __current) { return __ids[0]; } public static String ice_staticId() { return __ids[0]; } /** * Add a sequence of Ice identities to this set of constraints. Order is * not preserved and duplicates are implicitly removed. * * @param additions The sequence of Ice identities to be added. * **/ public final void add(Ice.Identity[] additions) { add(additions, null); } /** * Returns a sequence of identities describing the constraints in this * set. * * @return The sequence of Ice identities for this set. * **/ public final Ice.Identity[] get() { return get(null); } /** * Remove a sequence of identities from this set of constraints. No * errors are returned if an entry is not found. * * @param deletions The sequence of Ice identities to be removed. * **/ public final void remove(Ice.Identity[] deletions) { remove(deletions, null); } public static Ice.DispatchStatus ___add(IdentitySet __obj, IceInternal.Incoming __inS, Ice.Current __current) { __checkMode(Ice.OperationMode.Idempotent, __current.mode); IceInternal.BasicStream __is = __inS.is(); __is.startReadEncaps(); Ice.Identity[] additions; additions = Ice.IdentitySeqHelper.read(__is); __is.endReadEncaps(); __obj.add(additions, __current); return Ice.DispatchStatus.DispatchOK; } public static Ice.DispatchStatus ___remove(IdentitySet __obj, IceInternal.Incoming __inS, Ice.Current __current) { __checkMode(Ice.OperationMode.Idempotent, __current.mode); IceInternal.BasicStream __is = __inS.is(); __is.startReadEncaps(); Ice.Identity[] deletions; deletions = Ice.IdentitySeqHelper.read(__is); __is.endReadEncaps(); __obj.remove(deletions, __current); return Ice.DispatchStatus.DispatchOK; } public static Ice.DispatchStatus ___get(IdentitySet __obj, IceInternal.Incoming __inS, Ice.Current __current) { __checkMode(Ice.OperationMode.Idempotent, __current.mode); __inS.is().skipEmptyEncaps(); IceInternal.BasicStream __os = __inS.os(); Ice.Identity[] __ret = __obj.get(__current); Ice.IdentitySeqHelper.write(__os, __ret); return Ice.DispatchStatus.DispatchOK; } private final static String[] __all = { "add", "get", "ice_id", "ice_ids", "ice_isA", "ice_ping", "remove" }; public Ice.DispatchStatus __dispatch(IceInternal.Incoming in, Ice.Current __current) { int pos = java.util.Arrays.binarySearch(__all, __current.operation); if(pos < 0) { throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation); } switch(pos) { case 0: { return ___add(this, in, __current); } case 1: { return ___get(this, in, __current); } case 2: { return ___ice_id(this, in, __current); } case 3: { return ___ice_ids(this, in, __current); } case 4: { return ___ice_isA(this, in, __current); } case 5: { return ___ice_ping(this, in, __current); } case 6: { return ___remove(this, in, __current); } } assert(false); throw new Ice.OperationNotExistException(__current.id, __current.facet, __current.operation); } public void __write(IceInternal.BasicStream __os) { __os.writeTypeId(ice_staticId()); __os.startWriteSlice(); __os.endWriteSlice(); super.__write(__os); } public void __read(IceInternal.BasicStream __is, boolean __rid) { if(__rid) { __is.readTypeId(); } __is.startReadSlice(); __is.endReadSlice(); super.__read(__is, true); } public void __write(Ice.OutputStream __outS) { Ice.MarshalException ex = new Ice.MarshalException(); ex.reason = "type Glacier2::IdentitySet was not generated with stream support"; throw ex; } public void __read(Ice.InputStream __inS, boolean __rid) { Ice.MarshalException ex = new Ice.MarshalException(); ex.reason = "type Glacier2::IdentitySet was not generated with stream support"; throw ex; } }