Class ReTypeInstance

    • Constructor Detail

      • ReTypeInstance

        public ReTypeInstance()
    • 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 update
        existing - metadata instance
        newTypeDef - 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 repository
        IOException - 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.PropertyErrorException
        Validate the type change.
        Parameters:
        existing - metadata instance
        instanceGUID - unique identifier of the metadata instance
        newTypeDef - new type for the instance
        metadataCollectionId - of the metadata instance
        className - calling class
        methodName - calling method
        Throws:
        org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException - on any null or invalid parameters
        IOException - on any error deserializing values
        org.odpi.openmetadata.repositoryservices.ffdc.exception.PropertyErrorException - the properties in the instance are incompatible with the requested type
        org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - on any other error