|
EclipseLink 1.1.1_ 1.1.1.v20090430-r4097 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DataFactory
A Factory for creating DataObjects. The created DataObjects are not connected to any other DataObjects.
Field Summary | |
---|---|
static DataFactory |
INSTANCE
The default DataFactory. |
Method Summary | |
---|---|
DataObject |
create(java.lang.Class interfaceClass)
Create a DataObject supporting the given interface. |
DataObject |
create(java.lang.String uri,
java.lang.String typeName)
Create a DataObject of the Type specified by typeName with the given package uri. |
DataObject |
create(Type type)
Create a DataObject of the Type specified. |
Field Detail |
---|
static final DataFactory INSTANCE
Method Detail |
---|
DataObject create(java.lang.String uri, java.lang.String typeName)
uri
is null
or ""
, then a type with null
uri will be looked up.
uri
- The uri of the Type.typeName
- The name of the Type.
java.lang.IllegalArgumentException
- if the uri and typeName does
not correspond to a Type this factory can instantiate.DataObject create(java.lang.Class interfaceClass)
interfaceClass
- is the interface for the DataObject's Type.
java.lang.IllegalArgumentException
- if the instanceClass does
not correspond to a Type this factory can instantiate.DataObject create(Type type)
type
- The Type.
java.lang.IllegalArgumentException
- if the Type
cannot be instantiaed by this factory.
|
EclipseLink 1.1.1_ 1.1.1.v20090430-r4097 API Reference | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |