2424
2525package com .github .pagehelper .autoconfigure ;
2626
27- import org .springframework .boot .context .properties .ConfigurationProperties ;
28-
2927import java .util .Properties ;
3028
29+ import org .springframework .boot .context .properties .ConfigurationProperties ;
30+
3131/**
3232 * Configuration properties for PageHelper.
3333 *
@@ -44,44 +44,44 @@ public Properties getProperties() {
4444 return properties ;
4545 }
4646
47- public String getOffsetAsPageNum () {
48- return properties .getProperty ("offsetAsPageNum" );
47+ public Boolean getOffsetAsPageNum () {
48+ return Boolean . valueOf ( properties .getProperty ("offsetAsPageNum" ) );
4949 }
5050
51- public void setOffsetAsPageNum (String offsetAsPageNum ) {
52- properties .setProperty ("offsetAsPageNum" , offsetAsPageNum );
51+ public void setOffsetAsPageNum (Boolean offsetAsPageNum ) {
52+ properties .setProperty ("offsetAsPageNum" , offsetAsPageNum . toString () );
5353 }
5454
55- public String getRowBoundsWithCount () {
56- return properties .getProperty ("rowBoundsWithCount" );
55+ public Boolean getRowBoundsWithCount () {
56+ return Boolean . valueOf ( properties .getProperty ("rowBoundsWithCount" ) );
5757 }
5858
59- public void setRowBoundsWithCount (String rowBoundsWithCount ) {
60- properties .setProperty ("rowBoundsWithCount" , rowBoundsWithCount );
59+ public void setRowBoundsWithCount (Boolean rowBoundsWithCount ) {
60+ properties .setProperty ("rowBoundsWithCount" , rowBoundsWithCount . toString () );
6161 }
6262
63- public String getPageSizeZero () {
64- return properties .getProperty ("pageSizeZero" );
63+ public Boolean getPageSizeZero () {
64+ return Boolean . valueOf ( properties .getProperty ("pageSizeZero" ) );
6565 }
6666
67- public void setPageSizeZero (String pageSizeZero ) {
68- properties .setProperty ("pageSizeZero" , pageSizeZero );
67+ public void setPageSizeZero (Boolean pageSizeZero ) {
68+ properties .setProperty ("pageSizeZero" , pageSizeZero . toString () );
6969 }
7070
71- public String getReasonable () {
72- return properties .getProperty ("reasonable" );
71+ public Boolean getReasonable () {
72+ return Boolean . valueOf ( properties .getProperty ("reasonable" ) );
7373 }
7474
75- public void setReasonable (String reasonable ) {
76- properties .setProperty ("reasonable" , reasonable );
75+ public void setReasonable (Boolean reasonable ) {
76+ properties .setProperty ("reasonable" , reasonable . toString () );
7777 }
7878
79- public String getSupportMethodsArguments () {
80- return properties .getProperty ("supportMethodsArguments" );
79+ public Boolean getSupportMethodsArguments () {
80+ return Boolean . valueOf ( properties .getProperty ("supportMethodsArguments" ) );
8181 }
8282
83- public void setSupportMethodsArguments (String supportMethodsArguments ) {
84- properties .setProperty ("supportMethodsArguments" , supportMethodsArguments );
83+ public void setSupportMethodsArguments (Boolean supportMethodsArguments ) {
84+ properties .setProperty ("supportMethodsArguments" , supportMethodsArguments . toString () );
8585 }
8686
8787 public String getDialect () {
@@ -100,28 +100,28 @@ public void setHelperDialect(String helperDialect) {
100100 properties .setProperty ("helperDialect" , helperDialect );
101101 }
102102
103- public String getAutoRuntimeDialect () {
104- return properties .getProperty ("autoRuntimeDialect" );
103+ public Boolean getAutoRuntimeDialect () {
104+ return Boolean . valueOf ( properties .getProperty ("autoRuntimeDialect" ) );
105105 }
106106
107- public void setAutoRuntimeDialect (String autoRuntimeDialect ) {
108- properties .setProperty ("autoRuntimeDialect" , autoRuntimeDialect );
107+ public void setAutoRuntimeDialect (Boolean autoRuntimeDialect ) {
108+ properties .setProperty ("autoRuntimeDialect" , autoRuntimeDialect . toString () );
109109 }
110110
111- public String getAutoDialect () {
112- return properties .getProperty ("autoDialect" );
111+ public Boolean getAutoDialect () {
112+ return Boolean . valueOf ( properties .getProperty ("autoDialect" ) );
113113 }
114114
115- public void setAutoDialect (String autoDialect ) {
116- properties .setProperty ("autoDialect" , autoDialect );
115+ public void setAutoDialect (Boolean autoDialect ) {
116+ properties .setProperty ("autoDialect" , autoDialect . toString () );
117117 }
118118
119- public String getCloseConn () {
120- return properties .getProperty ("closeConn" );
119+ public Boolean getCloseConn () {
120+ return Boolean . valueOf ( properties .getProperty ("closeConn" ) );
121121 }
122122
123- public void setCloseConn (String closeConn ) {
124- properties .setProperty ("closeConn" , closeConn );
123+ public void setCloseConn (Boolean closeConn ) {
124+ properties .setProperty ("closeConn" , closeConn . toString () );
125125 }
126126
127127 public String getParams () {
@@ -132,12 +132,12 @@ public void setParams(String params) {
132132 properties .setProperty ("params" , params );
133133 }
134134
135- public String getDefaultCount () {
136- return properties .getProperty ("defaultCount" );
135+ public Boolean getDefaultCount () {
136+ return Boolean . valueOf ( properties .getProperty ("defaultCount" ) );
137137 }
138138
139- public void setDefaultCount (String defaultCount ) {
140- properties .setProperty ("defaultCount" , defaultCount );
139+ public void setDefaultCount (Boolean defaultCount ) {
140+ properties .setProperty ("defaultCount" , defaultCount . toString () );
141141 }
142142
143143 public String getDialectAlias () {
0 commit comments