The auto naming feature of RM API enables custom applications to customize the name that is generated for a record. This makes it possible for you to define a record-naming pattern that is consistent with your business processes.
public String getName(String name, int liRMEntityType);
//registers auto-naming for the object store
public void registerAutoName()
{
RMDriverManager loDriverManager = new RMDriverManager();
RMAutoName loAutoName = new CustomAutoNameImpl();
loDriverManager.registerAutoName(loAutoName);
}
After the class is registered, records can be declared passing the abAutoName parameter (as true) in the declare method. To retrieve the auto name of the record from the implementation class, the RM Java API will instantiate the registered implementation, passing the record name and the RMEntityType of the record. The name that is obtained will be the name of the record.