com.github.aidensuen.mongo.common.base.insert.SaveDao Maven / Gradle / Ivy
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);
}