public class RecordFactoryManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getAllRecordTypes()
Returns all record types registered by their factories
|
static RecordFactoryManager |
getInstance()
Create an instance of the manager.
|
java.lang.String |
getNextId(java.lang.String type)
Generate an unique ID for a specific record type.
|
Record |
parse(com.ibm.json.java.JSONObject jsonObj)
Create the record from JSON.
|
static void |
staticReset() |
public static RecordFactoryManager getInstance()
public static void staticReset()
public Record parse(com.ibm.json.java.JSONObject jsonObj)
jsonObj
- The object in JSON to be parsed.public java.lang.String getNextId(java.lang.String type)
type
- the type of the record.public java.util.Set<java.lang.String> getAllRecordTypes()
<IBM Copyright © 2018 IBM Corp. All Rights Reserved.