Top Description Fields Constructors Methods
org.apache.derby.iapi.services.io

public abstract Class FormatableInstanceGetter

extends Object
implements InstanceGetter
Class Inheritance
All Implemented Interfaces
org.apache.derby.iapi.services.loader.InstanceGetter
Known Direct Subclasses
org.apache.derby.iapi.types.DTSClassInfo, org.apache.derby.catalog.types.TypesImplInstanceGetter, org.apache.derby.impl.sql.catalog.CoreDDFinderClassInfo, org.apache.derby.impl.store.access.heap.HeapClassInfo, org.apache.derby.impl.services.uuid.BasicUUIDGetter, org.apache.derby.impl.sql.depend.DepClassInfo
Imports
org.apache.derby.iapi.services.loader.InstanceGetter

Class that loads Formattables (typically from disk)through one level of indirection. A concrete implementation of this class is registered as the class to handle a number of format identifiers in RegisteredFormatIds. When the in-memory representation of RegisteredFormatIds is set up an instance of the concrete class will be created for each format identifier the class is registered for, and each instances will have its setFormatId() called once with the appropriate format identifier.
When a Formattable object is read from disk and its registered class is an instance of FormatableInstanceGetter the getNewInstance() method will be called to create the object. The implementation can use the fmtId field to determine the class of the instance to be returned.
Instances of FormatableInstanceGetter are system wide, that is there is a single set of RegisteredFormatIds per system.
See Also
RegisteredFormatIds

Field Summary

Modifier and TypeField and Description
protected int
fmtId

Format identifier of the object

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public final void
setFormatId(int
A format identifier
fmtId
)

Set the format identifier that this instance will be loading from disk.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fmtIdback to summary
protected int fmtId

Format identifier of the object

Constructor Detail

FormatableInstanceGetterback to summary
public FormatableInstanceGetter()

Method Detail

setFormatIdback to summary
public final void setFormatId(int fmtId)

Set the format identifier that this instance will be loading from disk.

Parameters
fmtId:int

A format identifier