java ???????????1??
???????????? ???????[ 2013/8/5 10:46:21 ] ????????
????------------------------------ ????????(adapter) -------------------------------
????(1)???????????????????????????/?????и???????????/???廯???????????????????/????
????(2)???????????
??????????и?????????????????????У???????????????????????????????У????е???????????????е?????????????????????????????????????????????
??????????????
public class Adaptee{
public long getPower(long base??long exp){
long result=1;
for(int i=0;i<exp;i++)
result*=base;
return result;
}
}
?????????--?????????????y???
public interface Target{
public long get2Power(long exp);
}
public class Adapter implements Target{
private Adaptee pt;
public Adapter(){
pt = new Adaptee();
}
public long get2Power(long exp){
return pt.getPower(2??exp); ---???????????е??????
}
}
????(3)???磺??SCM?????????:
???????н??:
????public boolean updateRecordStates(Double recordId??Double tableNameMapping??int state??boolean
????subRecordUpdate) throws RemoteException;
?????????????:
public boolean updateRecordStates(Double recordId??Double tableNameMapping??int state??boolean
subRecordUpdate) throws RemoteException
{
return moveTable.updateRecordStates(recordId??tableNameMapping??state??subRecordUpdate);
}
?????????????????:
???????:
????public boolean updateStatesAdapterForSelfPanel(Double recordId??Double tableNameMapping??int state)
????throws RemoteException;
?????????:
public boolean updateStatesAdapterForSelfPanel(Double recordId??Double tableNameMapping??int state)
throws RemoteException
{
return this.updateRecordStates(recordId??tableNameMapping??state??false);
}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11