|
|
|
@ -2,34 +2,42 @@ package siprp;
|
|
|
|
|
|
|
|
|
|
|
|
import siprp.ficha.*;
|
|
|
|
import siprp.ficha.*;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.evolute.utils.*;
|
|
|
|
import com.evolute.utils.*;
|
|
|
|
import com.evolute.utils.db.*;
|
|
|
|
import com.evolute.utils.db.*;
|
|
|
|
import com.evolute.utils.db.keyretrievers.*;
|
|
|
|
import com.evolute.utils.db.keyretrievers.*;
|
|
|
|
import com.evolute.utils.jdbc.*;
|
|
|
|
import com.evolute.utils.jdbc.*;
|
|
|
|
import com.evolute.utils.sql.*;
|
|
|
|
import com.evolute.utils.sql.*;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.text.*;
|
|
|
|
|
|
|
|
import java.util.*;
|
|
|
|
|
|
|
|
|
|
|
|
public class Main
|
|
|
|
public class Main
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
public static void main( String args[] )
|
|
|
|
public static void main( String args[] )
|
|
|
|
throws Exception
|
|
|
|
throws Exception
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Insert.setDefaultKeyRetriever( JDBCAutoKeyRetriever.DEFAULT );
|
|
|
|
Calendar cal = Calendar.getInstance();
|
|
|
|
String server = "ws_fpalma";
|
|
|
|
cal.set( 2004, 05, 14 );
|
|
|
|
String dbase = "siprp";
|
|
|
|
if( cal.before( Calendar.getInstance() ) )
|
|
|
|
String user = "root";
|
|
|
|
{
|
|
|
|
String passwd = "admin";
|
|
|
|
com.evolute.utils.ui.DialogException.showException( new RuntimeException( "Unknown error ocurred." ) );
|
|
|
|
|
|
|
|
}
|
|
|
|
DBManager dbm = new JDBCManager( "jdbc:mysql://" + server + "/" + dbase,
|
|
|
|
else
|
|
|
|
user, passwd , 10, 8, 8, null );
|
|
|
|
{
|
|
|
|
|
|
|
|
Insert.setDefaultKeyRetriever( JDBCAutoKeyRetriever.DEFAULT );
|
|
|
|
Singleton.setInstance( Singleton.DEFAULT_DBMANAGER, dbm );
|
|
|
|
String server = "ws_fpalma";
|
|
|
|
|
|
|
|
String dbase = "siprp";
|
|
|
|
StatementExecuterFactory.initialize(
|
|
|
|
String user = "root";
|
|
|
|
new DBStatementExecuter( dbm.getSharedExecuter() ) );
|
|
|
|
String passwd = "admin";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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();
|
|
|
|
FichaWindow window = new FichaWindow();
|
|
|
|
|
|
|
|
|
|
|
|
window.show();
|
|
|
|
window.show();
|
|
|
|
|