public class DDRegistry extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
DDRegistry.ChangeTracer |
static class |
DDRegistry.DDChangeMarker
The goal of this class is to provide a simple way to know if a graph
or a set of graphs had their content changed.
|
| Constructor and Description |
|---|
DDRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
addType(BaseBean bean,
String type)
Add a type to the entry (the type doesn't have to be unique)
|
void |
clearCache()
Reset the change timestamp of all the registered graphs.
|
void |
clearCache(BaseBean bean)
Reset the change timestamp of the specified graph.
|
DDRegistry.DDChangeMarker |
createChangeMarker()
This return a new change marker instance, that can be used to know
if any graph of the registry has changed.
|
void |
createEntry(BaseBean bean,
String ID,
String name)
Create a new entry in the DD graph registry.
|
static String |
createGraphName(String s) |
String |
dump()
Trace/debug method.
|
String |
dumpAll()
Trace/debug method.
|
static String |
getGraphName(String s) |
String |
getID(BaseBean bean)
Having a schema2beans graph, this method return its unique ID.
|
String |
getID(DDRegistryParser.DDCursor c)
Return the unique ID of the graph where the cursor points to.
|
String |
getName(DDRegistryParser.DDCursor c)
Same as getID but return the non unique name.
|
String |
getName(String ID)
Return the name of the unique graph ID
|
BaseBean |
getRoot(String s)
Return the bean root for this name (either unique name or scope)
|
BaseBean[] |
getRoots(String s)
Return all the bean roots for this name (either unique name or scope)
|
long |
getTimestamp(BaseBean bean) |
boolean |
hasGraph(String str) |
boolean |
hasGraph(String str,
DDRegistryParser.DDCursor c) |
boolean |
hasType(BaseBean bean,
String type)
Return true of the specified schema2beans graph is registered with the
specified type.
|
DDRegistryParser.DDCursor |
newCursor(BaseBean bean)
Create a cursor location
|
DDRegistryParser.DDCursor |
newCursor(DDRegistryParser.DDCursor c,
String path)
Create a cursor location
|
DDRegistryParser.DDCursor |
newCursor(String path)
Create a cursor location
|
DDRegistryParser |
newParser(DDRegistryParser.DDCursor cursor,
String path)
Create a new DDRegistryParser based on a current position in a graph
and a schema2beans path.
|
DDRegistryParser |
newParser(DDRegistryParser parser,
String path)
Create a new DDRegistryParser (parser on a set of graph), based
on another parser current location and schema2beans path.
|
DDRegistryParser |
newParser(String scope)
Create a DDRegistryParser based on a scope value.
|
void |
removeEntry(BaseBean bean)
Remove an entry in the registry.
|
void |
removeEntry(String ID)
Remove a registry entry.
|
void |
renameEntry(String oldID,
String newID)
Rename a graph unique ID to a new unique ID.
|
void |
renameEntry(String oldID,
String newID,
String newName)
Rename a graph entry unique ID to a new unique ID entry and new
non unique name.
|
void |
setTimestamp(BaseBean bean) |
void |
updateEntry(String ID,
BaseBean bean)
Change the schema2beans graph for the unique entry ID.
|
public void createEntry(BaseBean bean, String ID, String name)
public void updateEntry(String ID, BaseBean bean)
public void removeEntry(BaseBean bean)
public void renameEntry(String oldID, String newID, String newName)
public void renameEntry(String oldID, String newID)
public void removeEntry(String ID)
public DDRegistry.DDChangeMarker createChangeMarker()
public boolean hasType(BaseBean bean, String type)
public void clearCache()
public void clearCache(BaseBean bean)
public void setTimestamp(BaseBean bean)
public long getTimestamp(BaseBean bean)
public String getID(BaseBean bean)
public String getID(DDRegistryParser.DDCursor c)
public String getName(DDRegistryParser.DDCursor c)
public DDRegistryParser newParser(DDRegistryParser parser, String path)
public DDRegistryParser newParser(DDRegistryParser.DDCursor cursor, String path)
public DDRegistryParser newParser(String scope)
public DDRegistryParser.DDCursor newCursor(DDRegistryParser.DDCursor c, String path)
public DDRegistryParser.DDCursor newCursor(String path)
public DDRegistryParser.DDCursor newCursor(BaseBean bean)
public void addType(BaseBean bean, String type)
public String dump()
public String dumpAll()
public boolean hasGraph(String str)
public boolean hasGraph(String str, DDRegistryParser.DDCursor c)
public BaseBean getRoot(String s)
Copyright © 2017. All Rights Reserved.