Package org.apache.derby.impl.sql.depend
Class BasicProviderInfo
java.lang.Object
org.apache.derby.impl.sql.depend.BasicProviderInfo
- All Implemented Interfaces:
Externalizable
,Serializable
,Formatable
,TypedFormat
,ProviderInfo
This is the implementation of ProviderInfo in the DependencyManager.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate DependableFinder
private String
private UUID
This class implements Formatable. -
Constructor Summary
ConstructorsConstructorDescriptionPublic niladic constructor.BasicProviderInfo
(UUID uuid, DependableFinder dFinder, String providerName) Make one of these puppies. -
Method Summary
Modifier and TypeMethodDescriptionGet the DependableFinder.Get the object idGet the provider's name.int
Get the formatID which corresponds to this class.void
Read this object from a stream of stored objects.toString()
void
Write this object to a stream of stored objects.
-
Field Details
-
uuid
This class implements Formatable. That means that it can write itself to and from a formatted stream. If you add more fields to this class, make sure that you also write/read them with the writeExternal()/readExternal() methods. If, inbetween releases, you add more fields to this class, then you should bump the version number emitted by the getTypeFormatId() method. -
dFinder
-
providerName
-
-
Constructor Details
-
BasicProviderInfo
public BasicProviderInfo()Public niladic constructor. Needed for Formatable interface to work. -
BasicProviderInfo
BasicProviderInfo(UUID uuid, DependableFinder dFinder, String providerName) Make one of these puppies.- Parameters:
uuid
- UUID of Provider.dFinder
- DependableFinder for Provider.providerName
- Name of the Provider.
-
-
Method Details
-
getDependableFinder
Description copied from interface:ProviderInfo
Get the DependableFinder.- Specified by:
getDependableFinder
in interfaceProviderInfo
- See Also:
-
getObjectId
Description copied from interface:ProviderInfo
Get the object id- Specified by:
getObjectId
in interfaceProviderInfo
- See Also:
-
getProviderName
Description copied from interface:ProviderInfo
Get the provider's name.- Specified by:
getProviderName
in interfaceProviderInfo
- See Also:
-
readExternal
Read this object from a stream of stored objects.- Specified by:
readExternal
in interfaceExternalizable
- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Specified by:
writeExternal
in interfaceExternalizable
- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
getTypeFormatId
public int getTypeFormatId()Get the formatID which corresponds to this class.- Specified by:
getTypeFormatId
in interfaceTypedFormat
- Returns:
- the formatID of this class
-
toString
-