Package org.teiid.adminapi.impl
Class VDBMetaData
- java.lang.Object
-
- org.teiid.adminapi.impl.AdminObjectImpl
-
- org.teiid.adminapi.impl.VDBMetaData
-
- All Implemented Interfaces:
Serializable
,Cloneable
,AdminObject
,DomainAware
,VDB
public class VDBMetaData extends AdminObjectImpl implements VDB, Cloneable
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.teiid.adminapi.VDB
VDB.ConnectionType, VDB.Status
-
-
Field Summary
Fields Modifier and Type Field Description static String
PREPARSER_CLASS
static String
TEIID_DDL
static String
TEIID_DOMAINS
static String
VERSION_DELIM
-
Fields inherited from class org.teiid.adminapi.impl.AdminObjectImpl
attachments
-
Fields inherited from interface org.teiid.adminapi.AdminObject
DELIMITER, DELIMITER_CHAR, ESCAPED_DELIMITER, ESCAPED_WILDCARD, WILDCARD
-
-
Constructor Summary
Constructors Constructor Description VDBMetaData()
VDBMetaData(String name)
-
Method Summary
-
Methods inherited from class org.teiid.adminapi.impl.AdminObjectImpl
addAttachment, addAttchment, addProperty, getAttachment, getHostName, getName, getProperties, getPropertiesMap, getPropertyValue, getServerGroup, getServerName, removeAttachment, removeProperty, setHostName, setName, setProperties, setServerGroup, setServerName
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.teiid.adminapi.AdminObject
getProperties, getPropertyValue
-
Methods inherited from interface org.teiid.adminapi.DomainAware
getHostName, getServerGroup, getServerName
-
-
-
-
Field Detail
-
VERSION_DELIM
public static final String VERSION_DELIM
- See Also:
- Constant Field Values
-
TEIID_DOMAINS
public static final String TEIID_DOMAINS
- See Also:
- Constant Field Values
-
TEIID_DDL
public static final String TEIID_DDL
- See Also:
- Constant Field Values
-
PREPARSER_CLASS
public static final String PREPARSER_CLASS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
VDBMetaData
public VDBMetaData()
-
VDBMetaData
public VDBMetaData(String name)
-
-
Method Detail
-
getFullName
public String getFullName()
-
getConnectionType
public VDB.ConnectionType getConnectionType()
- Specified by:
getConnectionType
in interfaceVDB
- Returns:
- the connection status
-
setConnectionType
public void setConnectionType(VDB.ConnectionType allowConnections)
-
setConnectionType
public void setConnectionType(String allowConnections)
-
getStatus
public VDB.Status getStatus()
-
setStatus
public void setStatus(VDB.Status s)
-
setStatus
public void setStatus(String s)
-
getVersion
public String getVersion()
- Specified by:
getVersion
in interfaceVDB
- Returns:
- the VDB version.
-
setVersion
public void setVersion(int version)
-
setVersion
public void setVersion(String version)
-
getModelMetaDatas
public LinkedHashMap<String,ModelMetaData> getModelMetaDatas()
-
setModels
public void setModels(Collection<ModelMetaData> models)
- Parameters:
models
-
-
addModel
public ModelMetaData addModel(String name)
-
addModel
public ModelMetaData addModel(ModelMetaData m)
-
getOverrideTranslators
public List<Translator> getOverrideTranslators()
Description copied from interface:VDB
Get the list of translators defined in the VDB- Specified by:
getOverrideTranslators
in interfaceVDB
- Returns:
-
getOverrideTranslatorsMap
public LinkedHashMap<String,VDBTranslatorMetaData> getOverrideTranslatorsMap()
-
setOverrideTranslators
public void setOverrideTranslators(List<Translator> translators)
-
addOverideTranslator
public void addOverideTranslator(VDBTranslatorMetaData t)
-
isOverideTranslator
public boolean isOverideTranslator(String name)
-
getDescription
public String getDescription()
Description copied from interface:VDB
Get the description of the VDB- Specified by:
getDescription
in interfaceVDB
- Returns:
-
setDescription
public void setDescription(String desc)
-
getValidityErrors
public List<String> getValidityErrors()
Description copied from interface:VDB
Shows any validity errors present in the VDB- Specified by:
getValidityErrors
in interfaceVDB
- Returns:
-
isValid
public boolean isValid()
Description copied from interface:VDB
Shows if VDB is a valid entity
-
hasErrors
public boolean hasErrors()
-
isVisible
public boolean isVisible(String modelName)
Description copied from interface:VDB
Whether the model is visible
-
getModel
public ModelMetaData getModel(String modelName)
-
isXmlDeployment
public boolean isXmlDeployment()
If this is a *-vdb.xml deployment- Returns:
-
setXmlDeployment
public void setXmlDeployment(boolean dynamic)
-
getDataPolicies
public List<DataPolicy> getDataPolicies()
Description copied from interface:VDB
Get the data roles defined on this VDB- Specified by:
getDataPolicies
in interfaceVDB
- Returns:
-
setDataPolicies
public void setDataPolicies(List<DataPolicy> policies)
This method is required by the Management framework to write the mappings to the persistent form. The actual assignment is done in the VDBMetaDataClassInstancefactory- Parameters:
policies
-
-
addDataPolicy
public DataPolicyMetadata addDataPolicy(DataPolicyMetadata policy)
-
getDataPolicyMap
public LinkedHashMap<String,DataPolicyMetadata> getDataPolicyMap()
-
getTranslator
public VDBTranslatorMetaData getTranslator(String name)
-
isPreview
public boolean isPreview()
-
getQueryTimeout
public long getQueryTimeout()
-
getVDBImports
public List<VDBImportMetadata> getVDBImports()
Description copied from interface:VDB
Get the list of vdb imports- Specified by:
getVDBImports
in interfaceVDB
- Returns:
-
addVDBImportMetadata
public VDBImportMetadata addVDBImportMetadata(String name, String version)
-
getEntries
public List<EntryMetaData> getEntries()
Description copied from interface:VDB
Get the list of other resources included in the VDB- Specified by:
getEntries
in interfaceVDB
- Returns:
-
setEntries
public void setEntries(List<EntryMetaData> entries)
-
clone
public VDBMetaData clone()
-
setVisibilityOverride
public void setVisibilityOverride(String name, boolean visible)
-
getStatusTimestamp
public Timestamp getStatusTimestamp(VDB.Status s)
-
-