public abstract class AbstractDialect extends Object implements Dialect
Modifier and Type | Field and Description |
---|---|
protected DialectFunctionProcessor |
functionProcessor |
protected int |
paddingLength |
Constructor and Description |
---|
AbstractDialect() |
Modifier and Type | Method and Description |
---|---|
DataSource |
getDataSource()
Return the data source to retrieve the value from.
|
DialectFunctionProcessor |
getFunctionProcessor() |
String |
getIncrementerName()
Return the name of the sequence/table.
|
int |
getPaddingLength()
Return the padding length for String values.
|
int |
nextIntValue() |
long |
nextLongValue() |
String |
nextStringValue() |
void |
setDataSource(DataSource dataSource)
Set the data source to retrieve the value from.
|
void |
setFunctionProcessor(DialectFunctionProcessor functionProcessor) |
void |
setIncrementerName(String incrementerName)
Set the name of the sequence/table.
|
void |
setPaddingLength(int paddingLength)
Set the padding length, i.e.
|
boolean |
supportsLimit()
是否支持分页
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
buildSqlFuction, buildSqlFunction, getCurrentDate, getLimitString, getNextKey
protected DialectFunctionProcessor functionProcessor
protected int paddingLength
public boolean supportsLimit()
Dialect
supportsLimit
in interface Dialect
public DataSource getDataSource()
public void setDataSource(DataSource dataSource)
public String getIncrementerName()
public void setIncrementerName(String incrementerName)
public int getPaddingLength()
public void setPaddingLength(int paddingLength)
public int nextIntValue() throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException
public long nextLongValue() throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException
public String nextStringValue() throws org.springframework.dao.DataAccessException
org.springframework.dao.DataAccessException
public DialectFunctionProcessor getFunctionProcessor()
public void setFunctionProcessor(DialectFunctionProcessor functionProcessor)
Copyright © 2006–2018 TinyGroup. All rights reserved.