use of org.dbflute.twowaysql.style.BoundDateDisplayStyle in project dbflute-core by dbflute.
the class TnAbstractBasicSqlHandler method createDisplaySqlBuilder.
protected DisplaySqlBuilder createDisplaySqlBuilder() {
final BoundDateDisplayStyle realStyle;
final BoundDateDisplayStyle specifiedStyle = getSpecifiedLogDateDisplayStyle();
if (specifiedStyle != null) {
realStyle = specifiedStyle;
} else {
realStyle = createResourcedLogDateDisplayStyle();
}
return newDisplaySqlBuilder(realStyle);
}
use of org.dbflute.twowaysql.style.BoundDateDisplayStyle in project dbflute-core by dbflute.
the class AbstractConditionBean method createConfiguredBoundDateDisplayStyle.
protected BoundDateDisplayStyle createConfiguredBoundDateDisplayStyle() {
final String datePattern = getConfiguredLogDatePattern();
final String timestampPattern = getConfiguredLogTimestampPattern();
final String timePattern = getConfiguredLogTimePattern();
final BoundDateDisplayTimeZoneProvider timeZoneProvider = getConfiguredLogTimeZoneProvider();
return new BoundDateDisplayStyle(datePattern, timestampPattern, timePattern, timeZoneProvider);
}
use of org.dbflute.twowaysql.style.BoundDateDisplayStyle in project dbflute-core by dbflute.
the class AbstractConditionBean method toDisplaySql.
// ===================================================================================
// DisplaySQL
// ==========
/**
* {@inheritDoc}
*/
public String toDisplaySql() {
final SqlAnalyzerFactory factory = getSqlAnalyzerFactory();
final BoundDateDisplayStyle realStyle;
final BoundDateDisplayStyle specifiedStyle = getLogDateDisplayStyle();
if (specifiedStyle != null) {
realStyle = specifiedStyle;
} else {
realStyle = createConfiguredBoundDateDisplayStyle();
}
return convertConditionBean2DisplaySql(factory, this, realStyle);
}
use of org.dbflute.twowaysql.style.BoundDateDisplayStyle in project dbflute-core by dbflute.
the class TnAbstractBasicSqlHandler method createResourcedLogDateDisplayStyle.
protected BoundDateDisplayStyle createResourcedLogDateDisplayStyle() {
final String datePattern = ResourceContext.getLogDatePattern();
final String iimestampPattern = ResourceContext.getLogTimestampPattern();
final String timePattern = ResourceContext.getLogTimePattern();
final BoundDateDisplayTimeZoneProvider timeZoneProvider = ResourceContext.getLogTimeZoneProvider();
return new BoundDateDisplayStyle(datePattern, iimestampPattern, timePattern, timeZoneProvider);
}
use of org.dbflute.twowaysql.style.BoundDateDisplayStyle in project dbflute-core by dbflute.
the class TnAbstractBasicSqlHandler method getSpecifiedLogDateDisplayStyle.
protected BoundDateDisplayStyle getSpecifiedLogDateDisplayStyle() {
if (ConditionBeanContext.isExistConditionBeanOnThread()) {
final ConditionBean cb = ConditionBeanContext.getConditionBeanOnThread();
final BoundDateDisplayStyle specifiedStyle = cb.getLogDateDisplayStyle();
if (specifiedStyle != null) {
return specifiedStyle;
}
}
return null;
}
Aggregations