common/src/main/java/com/genexus/GXBCCollection.java
//-- Add de una collection de BC
Add de una collection de BC
Add de una collection de BC
@SuppressWarnings("unchecked")
	public boolean addElementTrn(Object item)
	{
		try
		{
			elementsType.getMethod(getMethodName(false, "Mode"), new Class[]{String.class}).invoke(item, new Object[]{"INS"});
			elementsType.getMethod(getMethodName(false, "Modified"), new Class[]{short.class}).invoke(item, new Object[]{new Short((short)1)});
		}catch(Exception e)
		{
			System.err.println("[addElementTrn]:" + e.toString());
			e.printStackTrace();
		}
		return super.add((T)item); 
	}
@ SuppressWarnings ( "unchecked" ) public boolean addElementTrn ( Object item ) { try { elementsType . getMethod ( getMethodName ( false , "Mode" ) , new Class [ ] { String . class } ) . invoke ( item , new Object [ ] { "INS" } ) ; elementsType . getMethod ( getMethodName ( false , "Modified" ) , new Class [ ] { short . class } ) . invoke ( item , new Object [ ] { new Short ( ( short ) 1 ) } ) ; } catch ( Exception e ) { System . err . println ( "[addElementTrn]:" + e . toString ( ) ) ; e . printStackTrace ( ) ; } return super . add ( ( T ) item ) ; }
Add de una collection de BC
Add de una collection de BC
//Vector add element