Beispiel #1
0
def exists(entity):
    """
    check if the given entity exist
    :param entity:
    :return: true if the given entity exist
    """
    query = buidld_query(entity)
    return dao_commons.do_exists(query)
Beispiel #2
0
def exists(entity):
    """
    check if the given entity exist
    :param entity:
    :return: true if the given entity exist
    """
    query = buidld_query(entity)
    return dao_commons.do_exists(query)
Beispiel #3
0
def exists_by_id(_id):
    """
    check if an entity exists with the given Id / Primary Key
    :param _id:
    :return: true if an entity exists with the given Id / Primary Key
    """
    entity = new_instance_with_primary_key(_id)
    query = buidld_query(entity)
    return dao_commons.do_exists(query)
Beispiel #4
0
def exists_by_id(_id):
    """
    check if an entity exists with the given Id / Primary Key
    :param _id:
    :return: true if an entity exists with the given Id / Primary Key
    """
    entity = new_instance_with_primary_key(_id)
    query = buidld_query(entity)
    return dao_commons.do_exists(query)