Adds createConnectionIdAttribute() in AttributeFactory class. Patch by Aakash Garg.
This commit is contained in:
parent
5d10a21a96
commit
eac04a777d
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user