remove obsolete commented out code and modifiers

This commit is contained in:
Mark Struberg 2021-04-04 16:22:26 +02:00
parent 7a75ccd80a
commit 9458d1720b
7 changed files with 1 additions and 98 deletions

View File

@ -39,9 +39,6 @@ import javax.persistence.Temporal;
import javax.persistence.TemporalType; import javax.persistence.TemporalType;
import javax.persistence.Transient; import javax.persistence.Transient;
//import org.apache.geronimo.samples.daytrader.util.Log;
//import org.apache.geronimo.samples.daytrader.util.TradeConfig;
@Entity(name = "accountejb") @Entity(name = "accountejb")
@Table(name = "accountejb") @Table(name = "accountejb")
@NamedQueries( { @NamedQueries( {

View File

@ -25,9 +25,6 @@ import javax.persistence.NamedQuery;
import javax.persistence.OneToOne; import javax.persistence.OneToOne;
import javax.persistence.Table; import javax.persistence.Table;
// import org.apache.geronimo.samples.daytrader.util.Log;
// import org.apache.geronimo.samples.daytrader.util.TradeConfig;
@Entity(name = "accountprofileejb") @Entity(name = "accountprofileejb")
@Table(name = "accountprofileejb") @Table(name = "accountprofileejb")
@NamedQueries( { @NamedQueries( {

View File

@ -274,24 +274,6 @@ public abstract class MapTableFieldStrategy
return; return;
} }
/*
// this is necessary to support openjpa 3 mappings, which didn't
// differentiate between secondary table joins and relations built
// around an inverse key: check to see if we're mapped as a secondary
// table join but we're in the table of the related type, and if so
// switch our join mapping info to our value mapping info
String tableName = field.getMappingInfo().getTableName();
Table table = field.getTypeMapping().getTable();
ValueMappingInfo vinfo = field.getValueInfo();
if (tableName != null && table != null
&& (tableName.equalsIgnoreCase(table.getName())
|| tableName.equalsIgnoreCase(table.getFullName()))) {
vinfo.setJoinDirection(MappingInfo.JOIN_INVERSE);
vinfo.setColumns(field.getMappingInfo().getColumns());
field.getMappingInfo().setTableName(null);
field.getMappingInfo().setColumns(null);
}
*/
} }
protected boolean isTypeUnjoinedSubclass(ValueMapping mapped) { protected boolean isTypeUnjoinedSubclass(ValueMapping mapped) {

View File

@ -167,10 +167,6 @@ public class AnnoTest1 {
this.pk = new Long(pk); this.pk = new Long(pk);
} }
// public AnnoTest1(Long pk) {
// this.pk = pk;
// }
public void setPk(Long val) { public void setPk(Long val) {
pk = val; pk = val;
} }

View File

@ -275,7 +275,7 @@ public class TestStatistics extends SingleEMFTestCase {
/** /**
* Assert that the passed in hit/eviction/read/write match those values collected by stats. * Assert that the passed in hit/eviction/read/write match those values collected by stats.
*/ */
private static final void assertion(String cls, int hit, int read, int write, CacheStatistics stats) { private static void assertion(String cls, int hit, int read, int write, CacheStatistics stats) {
if (cls == null) { if (cls == null) {
throw new RuntimeException("invalid assertion. Null class"); throw new RuntimeException("invalid assertion. Null class");
} else { } else {

View File

@ -58,56 +58,4 @@ public class AppIdSubC
return this.stringFieldC; return this.stringFieldC;
} }
/*
public static class ID
extends AppIdSubB.ID
{
private long pk1c;
private String pk2c;
public ID ()
{
super ();
}
public ID (String str)
{
super ();
fromString (str);
}
public int hashCode ()
{
return (int)((super.hashCode () + pk1c
+ (pk2c == null ? 0 : pk2c.hashCode ())) % Integer.MAX_VALUE);
}
public boolean equals (Object other)
{
return super.equals (other)
&& ((ID)other).pk1c == pk1c
&& ((ID)other).pk2c == null ? pk2c == null
: ((ID)other).pk2c.equals (pk2c);
}
public String toString ()
{
return super.toString () + DELIMITER + pk1c + DELIMITER + pk2c;
}
StringTokenizer fromString (String idString)
{
StringTokenizer tok = super.fromString (idString);
pk1c = new Long (tok.nextToken ()).longValue ();
pk2c = tok.nextToken ();
return tok; // return the tokenizer for subclasses to use
}
}
*/
} }

View File

@ -40,21 +40,4 @@ public class AppIdSubE
return this.stringFieldE; return this.stringFieldE;
} }
/*
public static class ID
extends AppIdSubD.ID
{
public ID ()
{
super ();
}
public ID (String str)
{
super ();
fromString (str);
}
}
*/
} }