IBM BPM, V8.0.1, All platforms > Authoring services in Integration Designer > Services and service-related functions > Access external services with adapters > Configure and using adapters > IBM WebSphere Adapters > Adapter Toolkit > Implementing code from the IBM WebSphere Adapter Toolkit > Structured record implementation

Clone method

Use this method to copy property values from the record instance to a newly created instance. public Object clone ()


Sample

Here is a coding sample on how to implement the Clone method:

public Object clone() {
//Build a new record <AdapterPrefixName>StructuredRecord record = new <AdapterPrefixName>StructuredRecord();
try{
//Copying property values record.<AdapterPrefixName>BallConnection = <AdapterPrefixName>BallConnection;
record.objectNaming = objectNaming;
record.objectSerializer = objectSerializer;
record.setEISRepresentation(this.getEISRepresentation());}catch(Exception e){
throw new RuntimeException(e);} return record;}

Structured record implementation