public class ReferenceSetImpl extends AbstractEntityImpl implements ReferenceSet, HibernateMappedEntity
ReferenceSetService
, implementations of
that interface will handle the construction of ReferenceSet implementations
(including this one).Constructor and Description |
---|
ReferenceSetImpl()
Default constructor, used by Hibernate when reconstructing this bean from
the database.
|
ReferenceSetImpl(Set<ExternalReferenceSPI> references,
T2ReferenceImpl id)
Construct a new ReferenceSetImpl with the given set of external
references and identifier.
|
Modifier and Type | Method and Description |
---|---|
Long |
getApproximateSizeInBytes()
Get approximate size of the data pointed to by this ReferenceSet.
|
Set<ExternalReferenceSPI> |
getExternalReferences()
The reference set contains a set of ExternalReferenceSPI instances, all
of which point to byte equivalent data.
|
void |
setApproximateSizeInBytes(Long sizeInBytes) |
void |
setExternalReferences(Set<ExternalReferenceSPI> newReferences)
This method is only ever called from within Hibernate, and is used to
initialize the set of external references.
|
String |
toString()
For debugging purposes, prints a summary of the contents and identifier
of this reference set.
|
getId, getInternalId, getTypedId, setInternalId, setTypedId
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getId
public ReferenceSetImpl(Set<ExternalReferenceSPI> references, T2ReferenceImpl id)
references
- the set of ExternalReferenceSPI which this reference set
should contain initiallyid
- the T2Reference to use, must be an instance of
ReferenceSetT2ReferenceImpl so hibernate can make use of it as
a compound primary key componentpublic ReferenceSetImpl()
setExternalReferences(Set)
and
#setId(T2ReferenceImpl)
before any use of the reference set. If
you're not writing the reference manager implementation you shouldn't be
using this class anyway.public String toString()
public Set<ExternalReferenceSPI> getExternalReferences()
ReferenceSet
getExternalReferences
in interface ReferenceSet
public void setExternalReferences(Set<ExternalReferenceSPI> newReferences)
public void setApproximateSizeInBytes(Long sizeInBytes)
public Long getApproximateSizeInBytes()
ReferenceSet
getApproximateSizeInBytes
in interface ReferenceSet
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.