Package org.pentaho.di.repository
Interface RepositoryElementInterface
-
- All Superinterfaces:
RepositoryObjectInterface
- All Known Implementing Classes:
DatabaseMeta
public interface RepositoryElementInterface extends RepositoryObjectInterface
A repository element is an object that can be saved or loaded from the repository. As such, we need to be able to identify it. It needs a RepositoryDirectory, a name and an ID. We also need to identify the type of the element. Finally, we need to be able to optionally identify the revision of the element.- Author:
- matt
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getDescription()
Gets the description of the repository object.String
getName()
Gets the name of the repository object.ObjectId
getObjectId()
Gets the database ID in the repository for this object.ObjectRevision
getObjectRevision()
Gets the object revision.RepositoryDirectoryInterface
getRepositoryDirectory()
RepositoryObjectType
getRepositoryElementType()
Gets the repository element type for this object.void
setDescription(String description)
Sets the description of the repository object.void
setName(String name)
Sets the name of the repository object.void
setObjectId(ObjectId id)
Sets the database ID in the repository for this object.void
setObjectRevision(ObjectRevision objectRevision)
Sets the object revision.void
setRepositoryDirectory(RepositoryDirectoryInterface repositoryDirectory)
-
-
-
Method Detail
-
getRepositoryDirectory
RepositoryDirectoryInterface getRepositoryDirectory()
-
setRepositoryDirectory
void setRepositoryDirectory(RepositoryDirectoryInterface repositoryDirectory)
-
getName
String getName()
Gets the name of the repository object.- Specified by:
getName
in interfaceRepositoryObjectInterface
- Returns:
- the name of the object
-
setName
void setName(String name)
Sets the name of the repository object.- Parameters:
name
-
-
getDescription
String getDescription()
Gets the description of the repository object.- Returns:
-
setDescription
void setDescription(String description)
Sets the description of the repository object.- Parameters:
description
-
-
getObjectId
ObjectId getObjectId()
Gets the database ID in the repository for this object.- Specified by:
getObjectId
in interfaceRepositoryObjectInterface
- Returns:
- the database ID in the repository for this object
-
setObjectId
void setObjectId(ObjectId id)
Sets the database ID in the repository for this object.
-
getRepositoryElementType
RepositoryObjectType getRepositoryElementType()
Gets the repository element type for this object.- Returns:
- the repository element type for this object
-
getObjectRevision
ObjectRevision getObjectRevision()
Gets the object revision.- Returns:
- the object revision
-
setObjectRevision
void setObjectRevision(ObjectRevision objectRevision)
Sets the object revision.- Parameters:
objectRevision
-
-
-