Package org.pentaho.di.repository.kdr
Class KettleDatabaseRepositoryMeta
- java.lang.Object
-
- org.pentaho.di.repository.BaseRepositoryMeta
-
- org.pentaho.di.repository.kdr.KettleDatabaseRepositoryMeta
-
- All Implemented Interfaces:
RepositoryMeta
public class KettleDatabaseRepositoryMeta extends BaseRepositoryMeta implements RepositoryMeta
-
-
Field Summary
Fields Modifier and Type Field Description static String
DATABASE_CONNECTION
static String
ID
static String
REPOSITORY_TYPE_ID
The id as specified in the repository plugin meta, used for backward compatibility only-
Fields inherited from class org.pentaho.di.repository.BaseRepositoryMeta
description, DESCRIPTION, DISPLAY_NAME, id, IS_DEFAULT, isDefault, name
-
Fields inherited from interface org.pentaho.di.repository.RepositoryMeta
XML_TAG
-
-
Constructor Summary
Constructors Constructor Description KettleDatabaseRepositoryMeta()
KettleDatabaseRepositoryMeta(String id)
KettleDatabaseRepositoryMeta(String id, String name, String description, org.pentaho.di.core.database.DatabaseMeta connection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RepositoryMeta
clone()
org.pentaho.di.core.database.DatabaseMeta
getConnection()
String
getDescription()
String
getName()
RepositoryCapabilities
getRepositoryCapabilities()
Describes the capabilities of the repositoryString
getXML()
Boolean
isDefault()
void
loadXML(Node repnode, List<org.pentaho.di.core.database.DatabaseMeta> databases)
void
populate(Map<String,Object> properties, RepositoriesMeta repositoriesMeta)
void
setConnection(org.pentaho.di.core.database.DatabaseMeta connection)
void
setDefault(Boolean isDefault)
void
setDescription(String description)
void
setName(String name)
org.json.simple.JSONObject
toJSONObject()
-
Methods inherited from class org.pentaho.di.repository.BaseRepositoryMeta
getDialogClassName, getId, getRevisionBrowserDialogClassName, setId
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pentaho.di.repository.RepositoryMeta
getDialogClassName, getId, getRevisionBrowserDialogClassName, setId
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
DATABASE_CONNECTION
public static final String DATABASE_CONNECTION
- See Also:
- Constant Field Values
-
REPOSITORY_TYPE_ID
public static String REPOSITORY_TYPE_ID
The id as specified in the repository plugin meta, used for backward compatibility only
-
-
Constructor Detail
-
KettleDatabaseRepositoryMeta
public KettleDatabaseRepositoryMeta()
-
KettleDatabaseRepositoryMeta
public KettleDatabaseRepositoryMeta(String id, String name, String description, org.pentaho.di.core.database.DatabaseMeta connection)
-
KettleDatabaseRepositoryMeta
public KettleDatabaseRepositoryMeta(String id)
-
-
Method Detail
-
getRepositoryCapabilities
public RepositoryCapabilities getRepositoryCapabilities()
Description copied from interface:RepositoryMeta
Describes the capabilities of the repository- Specified by:
getRepositoryCapabilities
in interfaceRepositoryMeta
- Returns:
- The repository capabilities object
-
setName
public void setName(String name)
- Specified by:
setName
in interfaceRepositoryMeta
- Overrides:
setName
in classBaseRepositoryMeta
- Parameters:
name
- the name to set
-
getName
public String getName()
- Specified by:
getName
in interfaceRepositoryMeta
- Overrides:
getName
in classBaseRepositoryMeta
- Returns:
- the name
-
setDescription
public void setDescription(String description)
- Specified by:
setDescription
in interfaceRepositoryMeta
- Overrides:
setDescription
in classBaseRepositoryMeta
- Parameters:
description
- the description to set
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceRepositoryMeta
- Overrides:
getDescription
in classBaseRepositoryMeta
- Returns:
- the description
-
isDefault
public Boolean isDefault()
- Specified by:
isDefault
in interfaceRepositoryMeta
- Overrides:
isDefault
in classBaseRepositoryMeta
- Returns:
- the isDefault
-
setDefault
public void setDefault(Boolean isDefault)
- Specified by:
setDefault
in interfaceRepositoryMeta
- Overrides:
setDefault
in classBaseRepositoryMeta
- Parameters:
isDefault
- the isDefault to set
-
setConnection
public void setConnection(org.pentaho.di.core.database.DatabaseMeta connection)
-
getConnection
public org.pentaho.di.core.database.DatabaseMeta getConnection()
-
getXML
public String getXML()
- Specified by:
getXML
in interfaceRepositoryMeta
- Overrides:
getXML
in classBaseRepositoryMeta
-
loadXML
public void loadXML(Node repnode, List<org.pentaho.di.core.database.DatabaseMeta> databases) throws org.pentaho.di.core.exception.KettleException
- Specified by:
loadXML
in interfaceRepositoryMeta
- Overrides:
loadXML
in classBaseRepositoryMeta
- Throws:
org.pentaho.di.core.exception.KettleException
-
clone
public RepositoryMeta clone()
- Specified by:
clone
in interfaceRepositoryMeta
- Overrides:
clone
in classObject
-
populate
public void populate(Map<String,Object> properties, RepositoriesMeta repositoriesMeta)
- Specified by:
populate
in interfaceRepositoryMeta
- Overrides:
populate
in classBaseRepositoryMeta
-
toJSONObject
public org.json.simple.JSONObject toJSONObject()
- Specified by:
toJSONObject
in interfaceRepositoryMeta
- Overrides:
toJSONObject
in classBaseRepositoryMeta
-
-