public class SyntheticStorableReferenceAccess<S extends Storable>
extends java.lang.Object
SyntheticStorableReferenceBuilder| Modifier and Type | Method and Description |
|---|---|
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.
|
java.util.Comparator<? extends Storable> |
getComparator()
Returns a comparator for ordering storable reference instances.
|
java.lang.Class<S> |
getMasterClass()
Returns the storable class which is referenced.
|
java.lang.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.
|
public java.lang.Class<S> getMasterClass()
public java.lang.Class<? extends Storable> getReferenceClass()
public java.util.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 setFetchExceptionpublic void copyFromMaster(Storable reference, S master) throws FetchException
reference - reference whose properties will be setmaster - source of property valuesFetchExceptionpublic boolean isConsistent(Storable reference, S master) throws FetchException
reference - reference whose properties will be testedmaster - source of property valuesFetchExceptionCopyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.