|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.amazon.carbonado.synthetic.SyntheticStorableReferenceAccess<S>
public class SyntheticStorableReferenceAccess<S extends Storable>
Provides access to the generated storable reference class and utility methods.
SyntheticStorableReferenceBuilder| Method Summary | |
|---|---|
void |
copyFromMaster(Storable reference,
S master)
Sets all the properties of the given reference, using the applicable properties of the given master. |
void |
copyToMasterPrimaryKey(Storable reference,
S master)
Sets all the primary key properties of the given master, using the applicable properties of the given reference. |
Comparator<? extends Storable> |
getComparator()
Returns a comparator for ordering storable reference instances. |
Class<S> |
getMasterClass()
Returns the storable class which is referenced. |
Class<? extends Storable> |
getReferenceClass()
Returns the generated storable reference class. |
boolean |
isConsistent(Storable reference,
S master)
Returns true if the properties of the given reference match those contained in the master, excluding any version property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public Class<S> getMasterClass()
public Class<? extends Storable> getReferenceClass()
public Comparator<? extends Storable> getComparator()
public void copyToMasterPrimaryKey(Storable reference,
S master)
throws FetchException
reference - source of property valuesmaster - master whose primary key properties will be set
FetchException
public void copyFromMaster(Storable reference,
S master)
throws FetchException
reference - reference whose properties will be setmaster - source of property values
FetchException
public boolean isConsistent(Storable reference,
S master)
throws FetchException
reference - reference whose properties will be testedmaster - source of property values
FetchException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||