sample custom code

Hi
Can anybody give me a sample custom code to create any adaptor. Pleae
thanks in advance
Shajee