com.objectwave.utility
Interface ScalarTypeGeneratorIF


public interface ScalarTypeGeneratorIF

Application-specific types implementing ScalarType should also register an appropriate implementation of this interface with the ScalarTypeFactory, so that the given ScalarType class can be created by the persistence layer.


Method Summary
 ScalarType createInstance(java.lang.String dbString)
          This method will create an instance of a specific implementation of ScalarType,
 java.lang.Class typeGenerated()
          Inform the ScalarTypeFactory what type can be created by this generator.
 

Method Detail

createInstance

public ScalarType createInstance(java.lang.String dbString)
                          throws java.text.ParseException
This method will create an instance of a specific implementation of ScalarType,

Parameters:
dbString - java.lang.String the string from which the instance is to be created.
Returns:
com.objectwave.persist.ScalarType the generated instance
java.text.ParseException

typeGenerated

public java.lang.Class typeGenerated()
Inform the ScalarTypeFactory what type can be created by this generator.

Returns:
java.lang.Class, the imlementation of ScalarType that can be created by this generator.