|
Franz Inc, AllegroGraph | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.franz.agraph.repository.AGCatalog
public class AGCatalog
Implements the notion of a catalog in an AllegroGraph server. A catalog is a grouping of repositories. The root catalog is the default, unnamed catalog that is available with every server. It is also possible to create any number of named catalogs.
Field Summary | |
---|---|
static int |
NAMED_CATALOG
|
static int |
ROOT_CATALOG
|
Constructor Summary | |
---|---|
AGCatalog(AGServer server,
int catalogType)
Creates an AGCatalog instance for a special catalog in the given server, such as the root catalog. |
|
AGCatalog(AGServer server,
String catalogName)
Creates an AGCatalog instance for a named catalog having catalogName in the given server. |
Method Summary | |
---|---|
AGRepository |
createRepository(String repositoryID)
Returns an uninitialized AGRepository instance for the given repository id. |
AGRepository |
createRepository(String repositoryID,
boolean strict)
Returns an uninitialized AGRepository instance for the given repository id. |
void |
deleteRepository(String repositoryID)
Deletes the repository with the given repository id. |
String |
getCatalogName()
Returns the name of this catalog. |
int |
getCatalogType()
Returns the type of this catalog. |
String |
getCatalogURL()
Returns the URL of this catalog. |
com.franz.agraph.http.AGHTTPClient |
getHTTPClient()
|
String |
getRepositoriesURL()
Returns the URL for accessing the repositories of this catalog. |
String |
getRepositoryURL(String repositoryID)
|
AGServer |
getServer()
Returns the AGServer instance for this catalog. |
boolean |
hasRepository(String repoId)
Returns true if the repository id is contained in this catalog. |
static boolean |
isRootID(String catalogID)
Returns true iff the id identifies the root catalog. |
List<String> |
listRepositories()
Returns a List of repository ids contained in this catalog. |
AGRepository |
openRepository(String repositoryID)
Returns an uninitialized AGRepository instance for the given repository id. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ROOT_CATALOG
public static final int NAMED_CATALOG
Constructor Detail |
---|
public AGCatalog(AGServer server, String catalogName)
server
- the server housing this named catalog.catalogName
- the name for this named catalog.public AGCatalog(AGServer server, int catalogType)
server
- the server housing the catalog.catalogType
- the type of the special catalog.Method Detail |
---|
public AGServer getServer()
public String getCatalogName()
public int getCatalogType()
public String getCatalogURL()
public String getRepositoriesURL()
public String getRepositoryURL(String repositoryID)
public com.franz.agraph.http.AGHTTPClient getHTTPClient()
public List<String> listRepositories() throws OpenRDFException
OpenRDFException
public boolean hasRepository(String repoId) throws OpenRDFException
OpenRDFException
public AGRepository createRepository(String repositoryID) throws RepositoryException
repositoryID
- the id (the name) of the repository.
RepositoryException
public AGRepository createRepository(String repositoryID, boolean strict) throws RepositoryException
repositoryID
- the id (the name) of the repositorystrict
- if true and the repository already exists, throw an exception
RepositoryException
public AGRepository openRepository(String repositoryID) throws RepositoryException
repositoryID
- the id (the name) of the repository.
RepositoryException
- if the repositoryID does not existpublic void deleteRepository(String repositoryID) throws RepositoryException
repositoryID
- the name of the repository to delete.
RepositoryException
public static boolean isRootID(String catalogID)
catalogID
-
|
Copyright © 2008-2010 Franz Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |