public class CollectionNameRegistry
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
CollectionNameRegistry.ProjectStableCollectionNameInfo |
Modifier and Type | Method and Description |
---|---|
static void |
forceRefresh()
Force refresh the collection name registry.
|
static java.util.Set<java.lang.String> |
getAllInventoriedCollectionIds() |
static java.lang.String |
getCollectionDisplayName(java.lang.String nativeCollectionId) |
static java.util.Map<java.lang.String,DatabaseCollectionInfo> |
getCollectionInfoMap(long projectId) |
static java.util.Set<java.lang.String> |
getNativeCollectionIds(long projectId) |
static java.util.Set<java.lang.String> |
getParentCollectionIds(long projectId) |
static java.util.Set<CollectionNameRegistry.ProjectStableCollectionNameInfo> |
getProjectStableCollectionNames(java.lang.String nativeCollectionId) |
static java.lang.String |
getStableCollectionName(long projectId,
java.lang.String nativeCollectionId) |
static java.util.Set<java.lang.String> |
getStableCollectionNames(long projectId) |
static void |
invalidateCache()
Increase the cache version counter to invalidate the cache
|
static java.lang.String |
lookupInventoriedCollectionId(long projectId,
java.lang.String stableCollectionName)
Looks up the inventoried collection name corresponding to the specified collection name using the cached map.
|
static void |
refreshIfNecessary()
Refreshes the cache if its data version if out of date
|
public static void refreshIfNecessary()
public static void invalidateCache()
public static void forceRefresh()
public static java.lang.String lookupInventoriedCollectionId(long projectId, java.lang.String stableCollectionName) throws KeyNotFoundException
projectId
- stableCollectionName
- KeyNotFoundException
- if no inventoried collection Id was found that matches the specified namepublic static java.util.Set<java.lang.String> getAllInventoriedCollectionIds()
public static java.util.Set<java.lang.String> getStableCollectionNames(long projectId)
public static java.lang.String getStableCollectionName(long projectId, java.lang.String nativeCollectionId) throws KeyNotFoundException
KeyNotFoundException
public static java.util.Set<java.lang.String> getParentCollectionIds(long projectId)
public static java.util.Set<java.lang.String> getNativeCollectionIds(long projectId)
public static java.util.Map<java.lang.String,DatabaseCollectionInfo> getCollectionInfoMap(long projectId)
public static java.lang.String getCollectionDisplayName(java.lang.String nativeCollectionId) throws KeyNotFoundException
KeyNotFoundException
public static java.util.Set<CollectionNameRegistry.ProjectStableCollectionNameInfo> getProjectStableCollectionNames(java.lang.String nativeCollectionId)
Copyright 2003, 2014, Oracle and/or its affiliates. All rights reserved.