You can pass arguments between classes of the same name in different databases.When passing inter-class arguments:
A Java-SQL column is associated with the version of the specified Java class in the database that contains the column.
A Java-SQL variable (in Transact-SQL) is associated with the version of the specified Java class in the current database.
A Java-SQL intermediate result of class C is associated with the version of class C in the same database as the Java method that returned the result.
When a Java instance value JI is assigned to a target variable or column, or passed to a Java method, JI is converted from its associated class to the class associated with the receiving target or method.