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

com.github.aidensuen.mongo.pagehelper.autoconfigure.PageHelperProperties Maven / Gradle / Ivy

There is a newer version: 1.1.2
Show newest version
package com.github.aidensuen.mongo.pagehelper.autoconfigure;

import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.Properties;

/**
 *
 * pagehelper properties config
 *
 * @author aidensuen
 */
@ConfigurationProperties(prefix = PageHelperProperties.PAGEHELPER_PREFIX)
public class PageHelperProperties {

    public static final String PAGEHELPER_PREFIX = "pagehelper";

    private Properties properties = new Properties();

    public Properties getProperties() {
        return properties;
    }

    public void setPageableWithCount(String pageableWithCount) {
        properties.setProperty("pageableWithCount", pageableWithCount);
    }

    public void setDirection(String direction) {
        properties.setProperty("direction", direction);
    }

    public void setProcessor(String processor) {
        properties.setProperty("processor", processor);
    }

    public void setDefaultCount(String defaultCount) {
        properties.setProperty("defaultCount", defaultCount);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy