Public interface Daointer {
/** number of data bars displayed on a page */
Public final Integer numforonepage=5;
/**
* Query operations on the database
*
* @param sql
* A SQL statement used by PreparedStatement
* @param objects
* Array of conditions matching preparedstatement in SQL statements
* @param items
* A collection of column names to find objects in the database
* @return A list collection of map<string,string> types after padding values
*/
Public list<map<string,string>> selectentity (String sql, object[] objects, string[] items);
/**
* Add and revise the database
*
* @param sql
* A SQL statement used by PreparedStatement
* @param objects
* Array of conditions matching preparedstatement in SQL statements
* @return The number of rows affected, not successful returns-1
*/
public int changeentity (String sql, object[] objects);
}
/**
* Override to convert object type to String type
*
* @param Object
* Object type Data
* @return String type data
*/
public static String Stringtoobject (Object object) {
String s = "";
if (Object! = null) {
s = object.tostring ();
}
return s;
}
Interacting with the database using MySQL (i)