public abstract class AbstractExternalReference extends Object implements ExternalReferenceSPI
Constructor and Description |
---|
AbstractExternalReference() |
Modifier and Type | Method and Description |
---|---|
abstract ExternalReferenceSPI |
clone() |
String |
getCharset()
Default to returning null for charset
|
ReferencedDataNature |
getDataNature()
Default to returning DataReferenceNature.UNKNOWN
|
int |
getPrimaryKey()
Used by Hibernate internally to establish a foreign key relationship
between this abstract superclass and tables corresponding to
implementations of the ExternalReference interface.
|
float |
getResolutionCost()
Default to a value of 0.0f for the resolution cost, but implementations
should at least attempt to set this to a more sensible level!
|
void |
setPrimaryKey(int newKey)
Used by Hibernate internally to establish a foreign key relationship
between this abstract superclass and tables corresponding to
implementations of the ExternalReference interface.
|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getApproximateSizeInBytes, openStream
public final void setPrimaryKey(int newKey)
public final int getPrimaryKey()
public ReferencedDataNature getDataNature()
getDataNature
in interface ExternalReferenceSPI
public String getCharset()
getCharset
in interface ExternalReferenceSPI
null
if binary or unknown type.public float getResolutionCost()
getResolutionCost
in interface ExternalReferenceSPI
public abstract ExternalReferenceSPI clone() throws CloneNotSupportedException
clone
in interface ExternalReferenceSPI
clone
in class Object
CloneNotSupportedException
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.