Adds createConnectionIdAttribute() in AttributeFactory class. Patch by Aakash Garg.

This commit is contained in:
paweldomas 2014-08-21 16:27:12 +00:00
parent 5d10a21a96
commit eac04a777d

View File

@ -639,4 +639,20 @@ public class AttributeFactory
return attribute;
}
/**
* Creates a new ConnectionIdAttribute. The connectionId value is set as the
* hashcode value of the object.
*
* @return the newly created ConnectionId attribute.
*/
public static ConnectionIdAttribute createConnectionIdAttribute()
{
ConnectionIdAttribute attribute = new ConnectionIdAttribute();
int connectionIdValue = attribute.hashCode();
attribute.setConnectionIdValue(connectionIdValue);
return attribute;
}
}