java.lang.Object
cn.afternode.commons.database.DatabaseUtils
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static voidfillSQLInsert(Object obj, PreparedStatement stmt) Fill SQL insert prepared statement with objectstatic StringGet a MySQL JDBC URL You must load class (e.g. com.mysql.cj.jdbc.Driver) by yourselfstatic StringConvert field to SQL create tablestatic StringtoSQLInsert(Object obj) Convert object to SQL insert
-
构造器详细资料
-
DatabaseUtils
public DatabaseUtils()
-
-
方法详细资料
-
getMySql
Get a MySQL JDBC URL You must load class (e.g. com.mysql.cj.jdbc.Driver) by yourself -
toSQLCreateTable
Convert field to SQL create table- 另请参阅:
-
toSQLInsert
Convert object to SQL insert -
fillSQLInsert
Fill SQL insert prepared statement with object- 抛出:
cn.afternode.commons.serialization.FieldAccessException- Field access errorSQLException
-