public abstract class OurTable extends Object
edu.rutgers.md.sql
(corresponding to table
rows) can extend this class, so that their fields can be
accessed using certain convenience methods.Constructor and Description |
---|
OurTable() |
Modifier and Type | Method and Description |
---|---|
void |
fetchVecs()
This is meant to cause JPA load vectors that are not
automatically loaded.
|
long |
getLongId()
A very cludgy way to call getId() regardless of whether it's
returning int or long
|
boolean |
ignores(String fieldName)
In some classes, certain fields should not be displayed or
modified unless certain conditions apply.
|
String |
reflectToString()
Prints out all fields of the object that, according to the appropriate annotations, we want printed
|
boolean |
validate(javax.persistence.EntityManager em,
StringBuffer errmsg)
Validates a recently created entry, before it has been put into the
database.
|
public boolean validate(javax.persistence.EntityManager em, StringBuffer errmsg)
public void fetchVecs()
public long getLongId()
public boolean ignores(String fieldName)
public String reflectToString()