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

com.github.aidensuen.mongo.common.base.insert.SaveDao Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
package com.github.aidensuen.mongo.common.base.insert;

import com.github.aidensuen.mongo.annotation.InsertProvider;
import com.github.aidensuen.mongo.annotation.RegisterMongoDao;
import com.github.aidensuen.mongo.command.OperationType;
import com.github.aidensuen.mongo.provider.base.BaseInsertProvider;

/**
 * Generic Dao insert interface
 *
 * @param  Can not be null
 * @author aidensuen
 */
@RegisterMongoDao
public interface SaveDao {


    /**
     * save a record
     *
     * @param record
     * @return
     */
    @InsertProvider(type = BaseInsertProvider.class, operationType = OperationType.SAVE)
    T save(T record);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy