com.ibm.websphere.sca.sdo

Interface DataFactory


  1. public interface DataFactory
A Factory for creating SDO DataObjects.

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
COPYRIGHT
  1. static
  2. DataFactory
INSTANCE
The default DataFactory.

Method Summary

Modifier and Type Method and Description
  1. commonj.sdo.DataObject
create(java.lang.Class interfaceClass)
Creates a DataObject supporting the given interface.
  1. commonj.sdo.DataObject
create(java.lang.String uri,java.lang.String typeName)
Creates a DataObject of the Type specified by typeName with the given package uri.
  1. commonj.sdo.DataObject
create(commonj.sdo.Type type)
Creates a DataObject of the Type specified.

Field Detail

  1. static final java.lang.String COPYRIGHT
See Also:

INSTANCE

  1. static final DataFactory INSTANCE
The default DataFactory.

Method Detail

create

  1. commonj.sdo.DataObject create(java.lang.Class interfaceClass)
Creates a DataObject supporting the given interface. InterfaceClass is the interface for the DataObject's Type.
Parameters:
interfaceClass - is the interface for the DataObject's Type.
Returns:
the created DataObject.
Throws:
java.lang.IllegalArgumentException - if the instanceClass does not correspond to a Type this factory can instantiate.

create

  1. commonj.sdo.DataObject create(java.lang.String uri,
  2. java.lang.String typeName)
Creates a DataObject of the Type specified by typeName with the given package uri.
Parameters:
uri - The uri of the Package.
typeName - The name of the Type.
Returns:
the created DataObject.
Throws:
java.lang.IllegalArgumentException - if the uri and typeName does not correspond to a Type this factory can instantiate.

create

  1. commonj.sdo.DataObject create(commonj.sdo.Type type)
Creates a DataObject of the Type specified.
Parameters:
type - The Type.
Returns:
the created DataObject.
Throws:
java.lang.IllegalArgumentException - if the Type cannot be instantiaed by this factory.