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(); } } }
CvObject to = (CvObject) ois.readObject(); addMapping( aMap, from, to );
String mapping = getPsiReference( from ) + " --> " + getPsiReference( to ); String fromCls = getSimpleName( from.getClass() ); String toCls = getSimpleName( to.getClass() ); String msg = fromCls + "->" + toCls; String existing = getPsiReference( from ) + " --> " + getPsiReference( (CvObject) map.get( from ) ); System.err.println( "WARNING: mapping " + mapping + " is conflicting with " + existing ); System.err.println( "Skip it." );
Map loadedMap = loadSerializedMap( serializedFile ); CvObject _fromCvObject = (CvObject) iterator.next(); addMapping( map, _fromCvObject, toCvObject ); CvObject _toCvObject = (CvObject) iterator.next(); addMapping( map, fromCvObject, _toCvObject ); addMapping( map, fromCvObject, toCvObject ); serializeMapping( map, serializedFile );
cvMapping = new CvMapping();
CvObject toCvObject = session.getReverseCvMapping().getPSI2toPSI1( cv ); if ( toCvObject != null && ! toCvObject.equals( cv ) ) { String msg = "NOTE: '" + cv.getShortLabel() + "' remapped to '" + toCvObject.getShortLabel() + "'.";
Map loadedMap = loadSerializedMap( serializedFile ); CvObject _fromCvObject = (CvObject) iterator.next(); addMapping( map, _fromCvObject, toCvObject ); CvObject _toCvObject = (CvObject) iterator.next(); addMapping( map, fromCvObject, _toCvObject ); addMapping( map, fromCvObject, toCvObject ); serializeMapping( map, serializedFile );
cvMapping = new CvMapping();
CvObject toCvObject = session.getReverseCvMapping().getPSI2toPSI1( cv ); if ( toCvObject != null && ! toCvObject.equals( cv ) ) { String msg = "NOTE: '" + cv.getShortLabel() + "' remapped to '" + toCvObject.getShortLabel() + "'.";
Map loadedMap = loadSerializedMap( serializedFile ); CvObject _fromCvObject = (CvObject) iterator.next(); addMapping( map, _fromCvObject, toCvObject ); CvObject _toCvObject = (CvObject) iterator.next(); addMapping( map, fromCvObject, _toCvObject ); addMapping( map, fromCvObject, toCvObject ); serializeMapping( map, serializedFile );
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(); } } }
String mapping = getPsiReference( from ) + " --> " + getPsiReference( to ); String fromCls = getSimpleName( from.getClass() ); String toCls = getSimpleName( to.getClass() ); String msg = fromCls + "->" + toCls; String existing = getPsiReference( from ) + " --> " + getPsiReference( (CvObject) map.get( from ) ); System.err.println( "WARNING: mapping " + mapping + " is conflicting with " + existing ); System.err.println( "Skip it." );
CvObject to = (CvObject) ois.readObject(); addMapping( aMap, from, to );
cvMapping = new CvMapping();
CvObject toCvObject = session.getReverseCvMapping().getPSI2toPSI1( cv ); if ( toCvObject != null && ! toCvObject.equals( cv ) ) { String msg = "NOTE: '" + cv.getShortLabel() + "' remapped to '" + toCvObject.getShortLabel() + "'.";
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(); } } }
String mapping = getPsiReference( from ) + " --> " + getPsiReference( to ); String fromCls = getSimpleName( from.getClass() ); String toCls = getSimpleName( to.getClass() ); String msg = fromCls + "->" + toCls; String existing = getPsiReference( from ) + " --> " + getPsiReference( (CvObject) map.get( from ) ); System.err.println( "WARNING: mapping " + mapping + " is conflicting with " + existing ); System.err.println( "Skip it." );
CvObject to = (CvObject) ois.readObject(); addMapping( aMap, from, to );