Class ReTypeInstance
- java.lang.Object
-
- org.odpi.egeria.connectors.juxt.xtdb.txnfn.AbstractTransactionFunction
-
- org.odpi.egeria.connectors.juxt.xtdb.txnfn.ReTypeInstance
-
- Direct Known Subclasses:
ReTypeEntity,ReTypeRelationship
public abstract class ReTypeInstance extends AbstractTransactionFunction
Base transaction function for changing an instance's type.
-
-
Constructor Summary
Constructors Constructor Description ReTypeInstance()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static clojure.lang.IPersistentMapreTypeInstance(String userId, clojure.lang.IPersistentMap existing, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef newTypeDef)Makes the necessary changes to an instance's type.protected static voidvalidate(clojure.lang.IPersistentMap existing, String instanceGUID, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef newTypeDef, String metadataCollectionId, String className, String methodName)Validate the type change.-
Methods inherited from class org.odpi.egeria.connectors.juxt.xtdb.txnfn.AbstractTransactionFunction
createTransactionFunction, getGUID, getInstanceProvenanceType, getMetadataCollectionId, getTxnTimeCalculation, getTypeDefForInstance, getTypeDefGUID, incrementVersion, incrementVersion
-
-
-
-
Method Detail
-
reTypeInstance
protected static clojure.lang.IPersistentMap reTypeInstance(String userId, clojure.lang.IPersistentMap existing, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef newTypeDef) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException, IOException
Makes the necessary changes to an instance's type.- Parameters:
userId- doing the updateexisting- metadata instancenewTypeDef- new type for the instance- Returns:
- IPersistentMap giving the updated instance representation
- Throws:
org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException- the requested type is not known or supported by the repositoryIOException- on any error serializing values
-
validate
protected static void validate(clojure.lang.IPersistentMap existing, String instanceGUID, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef newTypeDef, String metadataCollectionId, String className, String methodName) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException, IOException, org.odpi.openmetadata.repositoryservices.ffdc.exception.PropertyErrorExceptionValidate the type change.- Parameters:
existing- metadata instanceinstanceGUID- unique identifier of the metadata instancenewTypeDef- new type for the instancemetadataCollectionId- of the metadata instanceclassName- calling classmethodName- calling method- Throws:
org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException- on any null or invalid parametersIOException- on any error deserializing valuesorg.odpi.openmetadata.repositoryservices.ffdc.exception.PropertyErrorException- the properties in the instance are incompatible with the requested typeorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException- on any other error
-
-