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.
		
		
		
		
		
			
		
			
				
					
					
						
							37 lines
						
					
					
						
							807 B
						
					
					
				
			
		
		
	
	
							37 lines
						
					
					
						
							807 B
						
					
					
				| package siprp;
 | |
| 
 | |
| import siprp.ficha.*;
 | |
| 
 | |
| 
 | |
| import com.evolute.utils.*;
 | |
| import com.evolute.utils.db.*;
 | |
| import com.evolute.utils.db.keyretrievers.*;
 | |
| import com.evolute.utils.jdbc.*;
 | |
| import com.evolute.utils.sql.*;
 | |
| 
 | |
| public class Main
 | |
| {
 | |
| 	
 | |
| 	public static void main( String args[] )
 | |
| 		throws Exception
 | |
| 	{
 | |
| 		Insert.setDefaultKeyRetriever( JDBCAutoKeyRetriever.DEFAULT );
 | |
| 		String server = "localhost";
 | |
| 		String dbase = "siprp";
 | |
| 		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();
 | |
| 	}
 | |
| } |