001 package org.omg.CosTransactions; 002 003 import org.omg.PortableServer.POA; 004 005 /** 006 * Generated from IDL interface "OTSPolicy". 007 * 008 * @author JacORB IDL compiler V 2.3.0 (JBoss patch 6), 06-Jun-2007 009 * @version generated at Sep 22, 2012 10:57:18 AM 010 */ 011 012 public class OTSPolicyPOATie 013 extends OTSPolicyPOA 014 { 015 private OTSPolicyOperations _delegate; 016 017 private POA _poa; 018 public OTSPolicyPOATie(OTSPolicyOperations delegate) 019 { 020 _delegate = delegate; 021 } 022 public OTSPolicyPOATie(OTSPolicyOperations delegate, POA poa) 023 { 024 _delegate = delegate; 025 _poa = poa; 026 } 027 public org.omg.CosTransactions.OTSPolicy _this() 028 { 029 return org.omg.CosTransactions.OTSPolicyHelper.narrow(_this_object()); 030 } 031 public org.omg.CosTransactions.OTSPolicy _this(org.omg.CORBA.ORB orb) 032 { 033 return org.omg.CosTransactions.OTSPolicyHelper.narrow(_this_object(orb)); 034 } 035 public OTSPolicyOperations _delegate() 036 { 037 return _delegate; 038 } 039 public void _delegate(OTSPolicyOperations delegate) 040 { 041 _delegate = delegate; 042 } 043 public POA _default_POA() 044 { 045 if (_poa != null) 046 { 047 return _poa; 048 } 049 return super._default_POA(); 050 } 051 public short tpv() 052 { 053 return _delegate.tpv(); 054 } 055 056 public int policy_type() 057 { 058 return _delegate.policy_type(); 059 } 060 061 public org.omg.CORBA.Policy copy() 062 { 063 return _delegate.copy(); 064 } 065 066 public void destroy() 067 { 068 _delegate.destroy(); 069 } 070 071 }