All Downloads are FREE. Search and download functionalities are using the official Maven repository.

no.ssb.lds.api.persistence.PersistenceDeletePolicy Maven / Gradle / Ivy

There is a newer version: 0.13
Show newest version
package no.ssb.lds.api.persistence;


/*
    - Always remove outgoing links
    - Cascade ALL incomings links and nodes (recursive)
    - All outgoings links must be deleted (the links are defined in the entity's json data)
    - All incoming links requires edge entity's json data references' to be deleted
 */

public enum PersistenceDeletePolicy {

    FAIL_IF_INCOMING_LINKS, // only delete if no incoming links exist, else throw error (default)
    DELETE_INCOMING_LINKS, // alter adjacent json-data
    CASCADE_DELETE_ALL_INCOMING_LINKS_AND_NODES // delete entire graph depending on delete-target

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy