Class DDdependableFinder
java.lang.Object
org.apache.derby.impl.sql.catalog.DDdependableFinder
- All Implemented Interfaces:
Externalizable, Serializable, DependableFinder, Formatable, TypedFormat
- Direct Known Subclasses:
DDColumnDependableFinder
Class for most DependableFinders in the core DataDictionary.
This class is stored in SYSDEPENDS for the finders for
the provider and dependent. It stores no state, its functionality
is driven off its format identifier.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int///////////////////////////////////////////////////////////////////// -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) DependablefindDependable(DataDictionary dd, UUID dependableObjectID) Find the dependable for getDependable.final DependablegetDependable(DataDictionary dd, UUID dependableObjectID) Get the dependable for the given UUIDThe name of the class of Dependables as a "SQL Object" which this Finder can find.final intGet the formatID which corresponds to this class.voidRead this object from a stream of stored objects.toString()///////////////////////////////////////////////////////////////voidWrite this object to a stream of stored objects.
-
Field Details
-
formatId
private final int formatId/////////////////////////////////////////////////////////////////////
-
-
Constructor Details
-
DDdependableFinder
public DDdependableFinder(int formatId) Public constructor for Formatable hoo-hah.
-
-
Method Details
-
toString
-
readExternal
Read this object from a stream of stored objects. Nothing to do. Our persistent representation is just a 2-byte format id.- Specified by:
readExternalin interfaceExternalizable- Parameters:
in- read this.- Throws:
IOExceptionClassNotFoundException
-
writeExternal
Write this object to a stream of stored objects. Again, nothing to do. We just stamp the output stream with our Format id.- Specified by:
writeExternalin interfaceExternalizable- Parameters:
out- write bytes here.- Throws:
IOException
-
getTypeFormatId
public final int getTypeFormatId()Get the formatID which corresponds to this class.- Specified by:
getTypeFormatIdin interfaceTypedFormat- Returns:
- the formatID of this class
-
getSQLObjectType
Description copied from interface:DependableFinderThe name of the class of Dependables as a "SQL Object" which this Finder can find. This is a value like "Table" or "View". Every DependableFinder can find some class of Dependables.- Specified by:
getSQLObjectTypein interfaceDependableFinder- Returns:
- String type of the "SQL Object" which this Finder can find.
- See Also:
-
getDependable
public final Dependable getDependable(DataDictionary dd, UUID dependableObjectID) throws StandardException Get the dependable for the given UUID- Specified by:
getDependablein interfaceDependableFinder- Parameters:
dd- DataDictionary to use for lookup.dependableObjectID- the ID of a Dependable. Used to locate that Dependable.- Returns:
- the associated Dependable
- Throws:
StandardException- thrown on error
-
findDependable
Find the dependable for getDependable. Can return a null references, in which case getDependable() will thrown an exception.- Throws:
StandardException
-