public abstract class GenericDriver extends Object implements Driver
| Constructor and Description |
|---|
GenericDriver() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAutoKeyStrategypublic void setTimeZoneId(String tzId)
public Calendar getCalendar()
public String getAutoNumberQuery(Column<? extends Number> column)
getAutoNumberQuery in interface Driverpublic String getCurrentAutoNumberQuery(Column<? extends Number> column)
getCurrentAutoNumberQuery in interface Driverpublic String getAutoNumberQuery(Column<? extends Number> column, boolean current)
public Object toIdentity(ResultSetWrapper rsw, int columnIndex) throws SQLException
toIdentity in interface DriverSQLExceptionpublic Boolean toBoolean(ResultSetWrapper rsw, int columnIndex) throws SQLException
toBoolean in interface DriverSQLExceptionpublic String toString(ResultSetWrapper rsw, int columnIndex) throws SQLException
toString in interface DriverSQLExceptionpublic Byte toTiny(ResultSetWrapper rsw, int columnIndex) throws SQLException
toTiny in interface DriverSQLExceptionpublic Short toShort(ResultSetWrapper rsw, int columnIndex) throws SQLException
toShort in interface DriverSQLExceptionpublic Integer toInteger(ResultSetWrapper rsw, int columnIndex) throws SQLException
toInteger in interface DriverSQLExceptionpublic Long toLong(ResultSetWrapper rsw, int columnIndex) throws SQLException
toLong in interface DriverSQLExceptionpublic Double toDecimal(ResultSetWrapper rsw, int columnIndex) throws SQLException
toDecimal in interface DriverSQLExceptionpublic BigDecimal toBigDecimal(ResultSetWrapper rsw, int columnIndex) throws SQLException
toBigDecimal in interface DriverSQLExceptionpublic MyTime toTime(ResultSetWrapper rsw, int columnIndex) throws SQLException
toTime in interface DriverSQLExceptionpublic MyDate toDate(ResultSetWrapper rsw, int columnIndex) throws SQLException
toDate in interface DriverSQLExceptionpublic MyDateTime toDateTime(ResultSetWrapper rsw, int columnIndex) throws SQLException
toDateTime in interface DriverSQLExceptionpublic Date toTimestamp(ResultSetWrapper rsw, int columnIndex) throws SQLException
toTimestamp in interface DriverSQLExceptionpublic InputStream toText(ResultSetWrapper rsw, int columnIndex) throws SQLException
toText in interface DriverSQLExceptionpublic InputStream toBin(ResultSetWrapper rsw, int columnIndex) throws SQLException
toBin in interface DriverSQLExceptionpublic Object fromNull(NullSql type)
Driverpublic Object fromIdentity(Object o)
fromIdentity in interface Driverpublic Object fromBoolean(Boolean o)
fromBoolean in interface Driverpublic Object fromString(String o)
fromString in interface Driverpublic Object fromInteger(Integer o)
fromInteger in interface Driverpublic Object fromDecimal(Double o)
fromDecimal in interface Driverpublic Object fromBigDecimal(BigDecimal o)
fromBigDecimal in interface Driverpublic Object fromTime(Date o)
Driverpublic Object fromDate(Date o)
Driverpublic Object fromDateTime(Date o)
DriverfromDateTime in interface Driverpublic Object fromTimestamp(Date o)
fromTimestamp in interface Driverpublic Object fromText(InputStream is, int length)
public Object fromBin(InputStream is, int length)
public Object fromUnknown(Object o)
fromUnknown in interface Driverpublic boolean ignoreNullKeys()
ignoreNullKeys in interface Driverpublic String getSql(SqlProcedure procedure)
public InsertBuilder createInsertBuilder(Insert insert)
protected String getDefault()
public UpdateBuilder createUpdateBuilder(Update update)
protected DeleteBuilder createDeleteBuilder(Delete delete)
public QueryBuilder createQueryBuilder(Query query)
public String translate(EDml dmlType, Function function)
public boolean useSQLPagination()
useSQLPagination in interface Driverpublic String tableAlias(String alias)
tableAlias in interface Driverpublic String columnName(Column<?> column)
columnName in interface Driverpublic String columnAlias(Function function, int position)
columnAlias in interface Driverpublic int paginationColumnOffset(Query query)
paginationColumnOffset in interface Driverpublic void prepareConnection(Connection connection)
prepareConnection in interface Driverprotected Object toDefault(ResultSetWrapper rsw, int position) throws SQLException
SQLExceptionpublic <T> T fromDb(ResultSetWrapper rsw, int position, Class<T> klass) throws SQLException
fromDb in interface DriverSQLExceptionCopyright © 2019. All rights reserved.