public static void main( String[] args ) throws IntactException { CvMapping mapping = new CvMapping(); try { log.debug( "Database: " + IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getBaseDao().getDbName() ); long start = System.currentTimeMillis(); mapping.loadFile( new File( args[ 0 ] )); long stop = System.currentTimeMillis(); log.debug( "Loading time: " + ( stop - start ) + "ms" ); } catch (SQLException e) { e.printStackTrace(); } } }
public static void main( String[] args ) throws IntactException { CvMapping mapping = new CvMapping(); try { log.debug( "Database: " + IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getBaseDao().getDbName() ); long start = System.currentTimeMillis(); mapping.loadFile( new File( args[ 0 ] )); long stop = System.currentTimeMillis(); log.debug( "Loading time: " + ( stop - start ) + "ms" ); } catch (SQLException e) { e.printStackTrace(); } } }
public static void main( String[] args ) throws IntactException { CvMapping mapping = new CvMapping(); try { log.debug( "Database: " + IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getBaseDao().getDbName() ); long start = System.currentTimeMillis(); mapping.loadFile( new File( args[ 0 ] )); long stop = System.currentTimeMillis(); log.debug( "Loading time: " + ( stop - start ) + "ms" ); } catch (SQLException e) { e.printStackTrace(); } } }
System.out.println("Database instance: " + IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getBaseDao().getDbName()); System.out.println("User: " + IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getBaseDao().getDbUserName());
System.out.println("Database instance: " + IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getBaseDao().getDbName()); System.out.println("User: " + IntactContext.getCurrentInstance().getDataContext().getDaoFactory().getBaseDao().getDbUserName()); } catch (SQLException e) {
System.out.println( "Database: " + dao.getDbName() ); System.out.println( "Username: " + IntactContext.getCurrentInstance().getUserContext().getUserId() );
System.out.println( "Database: " + daoFactory.getBaseDao().getDbName() ); System.out.println( "User: " + daoFactory.getBaseDao().getDbUserName() ); CvTopic topic = daoFactory.getCvObjectDao( CvTopic.class ).getByShortLabel( "author-confidence" );
System.out.println( "Database: " + dao.getDbName() ); System.out.println( "Username: " + IntactContext.getCurrentInstance().getUserContext().getUserId() );
System.out.println( "Database: " + dao.getDbName() ); System.out.println( "Username: " + IntactContext.getCurrentInstance().getUserContext().getUserId() );
String db = dao.getDbName(); System.out.println( "Database: " + db ); System.out.println( "User: " + IntactContext.getCurrentInstance().getUserContext().getUserId());
String db = dao.getDbName(); System.out.println( "Database: " + db ); System.out.println( "User: " + IntactContext.getCurrentInstance().getUserContext().getUserId());
String db = dao.getDbName(); System.out.println( "Database: " + db ); System.out.println( "User: " + IntactContext.getCurrentInstance().getUserContext().getUserId());
log.debug( "Database: " + getDaoFactory().getBaseDao().getDbName() );
ps.println( "Database: " + dao.getDbName() ); ps.println( "User: " + dao.getDbUserName() );