org.apache.derby.impl.sql.depend
Class BasicProviderInfo

java.lang.Object
  extended by org.apache.derby.impl.sql.depend.BasicProviderInfo
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, Formatable, TypedFormat, ProviderInfo

public class BasicProviderInfo
extends java.lang.Object
implements ProviderInfo

This is the implementation of ProviderInfo in the DependencyManager.

See Also:
Serialized Form

Field Summary
 DependableFinder dFinder
           
 java.lang.String providerName
           
 UUID uuid
          This class implements Formatable.
 
Constructor Summary
BasicProviderInfo()
          Public niladic constructor.
BasicProviderInfo(UUID uuid, DependableFinder dFinder, java.lang.String providerName)
          Make one of these puppies.
 
Method Summary
 DependableFinder getDependableFinder()
          Get the DependableFinder.
 UUID getObjectId()
          Get the object id
 java.lang.String getProviderName()
          Get the provider's name.
 int getTypeFormatId()
          Get the formatID which corresponds to this class.
 void readExternal(java.io.ObjectInput in)
          Read this object from a stream of stored objects.
 java.lang.String toString()
           
 void writeExternal(java.io.ObjectOutput out)
          Write this object to a stream of stored objects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

uuid

public UUID 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

public DependableFinder dFinder

providerName

public java.lang.String providerName
Constructor Detail

BasicProviderInfo

public BasicProviderInfo()
Public niladic constructor. Needed for Formatable interface to work.


BasicProviderInfo

public BasicProviderInfo(UUID uuid,
                         DependableFinder dFinder,
                         java.lang.String providerName)
Make one of these puppies.

Parameters:
uuid - UUID of Provider.
dFinder - DependableFinder for Provider.
providerName - Name of the Provider.
Method Detail

getDependableFinder

public DependableFinder getDependableFinder()
Description copied from interface: ProviderInfo
Get the DependableFinder.

Specified by:
getDependableFinder in interface ProviderInfo
See Also:
ProviderInfo.getDependableFinder()

getObjectId

public UUID getObjectId()
Description copied from interface: ProviderInfo
Get the object id

Specified by:
getObjectId in interface ProviderInfo
See Also:
ProviderInfo.getObjectId()

getProviderName

public java.lang.String getProviderName()
Description copied from interface: ProviderInfo
Get the provider's name.

Specified by:
getProviderName in interface ProviderInfo
See Also:
ProviderInfo.getProviderName()

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Read this object from a stream of stored objects.

Specified by:
readExternal in interface java.io.Externalizable
Parameters:
in - read this.
Throws:
java.io.IOException - thrown on error
java.lang.ClassNotFoundException - thrown on error

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Write this object to a stream of stored objects.

Specified by:
writeExternal in interface java.io.Externalizable
Parameters:
out - write bytes here.
Throws:
java.io.IOException - thrown on error

getTypeFormatId

public int getTypeFormatId()
Get the formatID which corresponds to this class.

Specified by:
getTypeFormatId in interface TypedFormat
Returns:
the formatID of this class

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Built on Thu 2011-03-10 11:54:14+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.