????------------------------------ ????????(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);
}