Class EmbeddedMetaStore
- java.lang.Object
-
- org.pentaho.metastore.api.BaseMetaStore
-
- org.pentaho.di.core.attributes.metastore.EmbeddedMetaStore
-
- All Implemented Interfaces:
ReadWriteLock
,org.pentaho.metastore.api.IMetaStore
public class EmbeddedMetaStore extends org.pentaho.metastore.api.BaseMetaStore implements ReadWriteLock
- Author:
- nhudak
-
-
Constructor Summary
Constructors Constructor Description EmbeddedMetaStore(org.pentaho.di.core.AttributesInterface attributesInterface)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createElement(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, org.pentaho.metastore.api.IMetaStoreElement element)
void
createElementType(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType)
void
createNamespace(String namespace)
void
deleteElement(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String elementId)
void
deleteElementType(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType)
void
deleteNamespace(String namespace)
JsonElement
getElement(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String elementId)
org.pentaho.metastore.api.IMetaStoreElement
getElementByName(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String name)
List<String>
getElementIds(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType)
List<org.pentaho.metastore.api.IMetaStoreElement>
getElements(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType)
JsonElementType
getElementType(String namespace, String elementTypeId)
org.pentaho.metastore.api.IMetaStoreElementType
getElementTypeByName(String namespace, String elementTypeName)
List<String>
getElementTypeIds(String namespace)
List<org.pentaho.metastore.api.IMetaStoreElementType>
getElementTypes(String namespace)
List<String>
getNamespaces()
boolean
namespaceExists(String namespace)
org.pentaho.metastore.api.IMetaStoreAttribute
newAttribute(String id, Object value)
JsonElement
newElement()
JsonElement
newElement(org.pentaho.metastore.api.IMetaStoreElementType elementType, String id, Object value)
org.pentaho.metastore.api.security.IMetaStoreElementOwner
newElementOwner(String name, org.pentaho.metastore.api.security.MetaStoreElementOwnerType ownerType)
JsonElementType
newElementType(String namespace)
Lock
readLock()
void
updateElement(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String elementId, org.pentaho.metastore.api.IMetaStoreElement element)
void
updateElementType(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType)
Lock
writeLock()
-
Methods inherited from class org.pentaho.metastore.api.BaseMetaStore
getDescription, getName, getTwoWayPasswordEncoder, setDescription, setName, setTwoWayPasswordEncoder
-
-
-
-
Method Detail
-
createNamespace
public void createNamespace(String namespace) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
createNamespace
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getNamespaces
public List<String> getNamespaces() throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getNamespaces
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
namespaceExists
public boolean namespaceExists(String namespace) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
namespaceExists
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
deleteNamespace
public void deleteNamespace(String namespace) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
deleteNamespace
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
newElementType
public JsonElementType newElementType(String namespace)
- Specified by:
newElementType
in interfaceorg.pentaho.metastore.api.IMetaStore
-
createElementType
public void createElementType(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
createElementType
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getElementType
public JsonElementType getElementType(String namespace, String elementTypeId) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getElementType
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getElementTypeIds
public List<String> getElementTypeIds(String namespace) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getElementTypeIds
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getElementTypes
public List<org.pentaho.metastore.api.IMetaStoreElementType> getElementTypes(String namespace) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getElementTypes
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getElementTypeByName
public org.pentaho.metastore.api.IMetaStoreElementType getElementTypeByName(String namespace, String elementTypeName) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getElementTypeByName
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
updateElementType
public void updateElementType(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
updateElementType
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
deleteElementType
public void deleteElementType(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
deleteElementType
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
newElement
public JsonElement newElement()
- Specified by:
newElement
in interfaceorg.pentaho.metastore.api.IMetaStore
-
newElement
public JsonElement newElement(org.pentaho.metastore.api.IMetaStoreElementType elementType, String id, Object value)
- Specified by:
newElement
in interfaceorg.pentaho.metastore.api.IMetaStore
-
newAttribute
public org.pentaho.metastore.api.IMetaStoreAttribute newAttribute(String id, Object value)
- Specified by:
newAttribute
in interfaceorg.pentaho.metastore.api.IMetaStore
-
newElementOwner
public org.pentaho.metastore.api.security.IMetaStoreElementOwner newElementOwner(String name, org.pentaho.metastore.api.security.MetaStoreElementOwnerType ownerType)
- Specified by:
newElementOwner
in interfaceorg.pentaho.metastore.api.IMetaStore
-
createElement
public void createElement(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, org.pentaho.metastore.api.IMetaStoreElement element) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
createElement
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getElements
public List<org.pentaho.metastore.api.IMetaStoreElement> getElements(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getElements
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getElementIds
public List<String> getElementIds(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getElementIds
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getElement
public JsonElement getElement(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String elementId) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getElement
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
getElementByName
public org.pentaho.metastore.api.IMetaStoreElement getElementByName(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String name) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
getElementByName
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
updateElement
public void updateElement(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String elementId, org.pentaho.metastore.api.IMetaStoreElement element) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
updateElement
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
deleteElement
public void deleteElement(String namespace, org.pentaho.metastore.api.IMetaStoreElementType elementType, String elementId) throws org.pentaho.metastore.api.exceptions.MetaStoreException
- Specified by:
deleteElement
in interfaceorg.pentaho.metastore.api.IMetaStore
- Throws:
org.pentaho.metastore.api.exceptions.MetaStoreException
-
readLock
public Lock readLock()
- Specified by:
readLock
in interfaceReadWriteLock
-
writeLock
public Lock writeLock()
- Specified by:
writeLock
in interfaceReadWriteLock
-
-