forked from Coded/SIPRP
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
699 B
35 lines
699 B
package siprp;
|
|
|
|
import siprp.ficha.*;
|
|
|
|
|
|
import com.evolute.utils.*;
|
|
import com.evolute.utils.db.*;
|
|
import com.evolute.utils.jdbc.*;
|
|
import com.evolute.utils.sql.*;
|
|
|
|
public class Main
|
|
{
|
|
|
|
public static void main( String args[] )
|
|
throws Exception
|
|
{
|
|
String server = "192.168.0.12";
|
|
String dbase = "test";
|
|
String user = "admin";
|
|
String passwd = "";
|
|
|
|
DBManager dbm = new JDBCManager( "jdbc:mysql://" + server + "/" + dbase,
|
|
user, passwd , 10, 8, 8, null );
|
|
|
|
Singleton.setInstance( Singleton.DEFAULT_DBMANAGER, dbm );
|
|
|
|
StatementExecuterFactory.initialize(
|
|
new DBStatementExecuter( dbm.getSharedExecuter() ) );
|
|
|
|
|
|
FichaWindow window = new FichaWindow();
|
|
|
|
window.show();
|
|
}
|
|
} |