?? accountpoatie.java
字號:
package Bank;
/**
* <ul>
* <li> <b>IDL Source</b> "Bank.idl"
* <li> <b>IDL Name</b> ::Bank::Account
* <li> <b>Repository Id</b> IDL:Bank/Account:1.0
* </ul>
* <b>IDL definition:</b>
* <pre>
* interface Account {
...
};
* </pre>
*/
public class AccountPOATie extends AccountPOA {
private Bank.AccountOperations _delegate;
private org.omg.PortableServer.POA _poa;
public AccountPOATie (final Bank.AccountOperations _delegate) {
this._delegate = _delegate;
}
public AccountPOATie (final Bank.AccountOperations _delegate,
final org.omg.PortableServer.POA _poa) {
this._delegate = _delegate;
this._poa = _poa;
}
public Bank.AccountOperations _delegate () {
return this._delegate;
}
public void _delegate (final Bank.AccountOperations delegate) {
this._delegate = delegate;
}
public org.omg.PortableServer.POA _default_POA () {
if (_poa != null) {
return _poa;
}
else {
return super._default_POA();
}
}
/**
* <pre>
* void deposit (in double amount);
* </pre>
*/
public void deposit (double amount) {
this._delegate.deposit(amount);
}
/**
* <pre>
* void withdraw (in double amount)
raises (Bank.NotEnoughMoneyException);
* </pre>
*/
public void withdraw (double amount) throws Bank.NotEnoughMoneyException {
this._delegate.withdraw(amount);
}
/**
* <pre>
* double getBalance ();
* </pre>
*/
public double getBalance () {
return this._delegate.getBalance();
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -