Package net.jextra.fauxjo.bean
Class Fauxjo
- java.lang.Object
-
- net.jextra.fauxjo.bean.Fauxjo
-
public abstract class Fauxjo extends Object
Base class for a fauxjo (database bean).Note: This implementation overrides the
hashCodeandequalsmethods in order to properly compare Fauxjo's properly (e.g. same primary key) when placed in Collections, etc.
-
-
Constructor Summary
Constructors Constructor Description Fauxjo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringbuildKeyValueString()booleanequals(Object otherObj)protected List<Object>getPrimaryKeyValues()inthashCode()StringtoString()
-
-
-
Method Detail
-
buildKeyValueString
protected String buildKeyValueString()
-
getPrimaryKeyValues
protected List<Object> getPrimaryKeyValues() throws FauxjoException
- Returns:
- Values of primary keys in a consistent order so that it can be compared to other Fauxjo beans.
- Throws:
FauxjoException
-
-