1
0
mirror of https://github.com/gnosygnu/xowa.git synced 2024-10-27 20:34:16 +00:00
gnosygnu_xowa/140_dbs/src/gplx/dbs/engines/Db_engine.java

38 lines
1.5 KiB
Java
Raw Normal View History

2014-06-30 04:04:32 +00:00
/*
XOWA: the XOWA Offline Wiki Application
Copyright (C) 2012 gnosygnu@gmail.com
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2015-02-23 02:03:49 +00:00
package gplx.dbs.engines; import gplx.*; import gplx.dbs.*;
2014-09-08 02:38:50 +00:00
public interface Db_engine {
2015-01-26 01:56:50 +00:00
String Tid();
2015-02-23 02:03:49 +00:00
Db_url Url();
2015-01-26 01:56:50 +00:00
Db_engine New_clone(Db_url url);
Db_rdr New_rdr_by_obj(Object o, String sql); // Object o:ResultSet if desktop; Cursor if android
Db_stmt New_stmt_prep(Db_qry qry);
Object New_stmt_prep_as_obj(String sql);
DataRdr New_rdr(java.sql.ResultSet rdr, String sql);
2014-09-08 02:38:50 +00:00
void Txn_bgn();
void Txn_end();
2015-01-26 01:56:50 +00:00
void Conn_open();
void Conn_term();
Object Exec_as_obj(Db_qry qry);
2015-03-02 02:59:12 +00:00
void Exec_ddl_create_tbl(Db_meta_tbl meta);
void Exec_ddl_create_idx(Gfo_usr_dlg usr_dlg, Db_meta_idx... ary);
void Exec_ddl_append_fld(String tbl, Db_meta_fld fld);
2015-03-09 01:27:59 +00:00
void Exec_env_db_attach(String alias, Io_url db_url);
void Exec_env_db_detach(String alias);
2014-06-30 04:04:32 +00:00
}