Resource with the provided id. The type of Resource returned is determined by the type parameter. The XML:DB API currently defines "XMLResource" and "BinaryResource" as valid resource types. The id provided must be unique within the scope of the collection. If id is null or its value is empty then an id is generated by calling createId(). The Resource created is not stored to the database until storeResource() is called.
@param id the unique id to associate with the created Resource.
@param type the Resource type to create.
@return an empty Resource instance.
@exception XMLDBException with expected error codes.ErrorCodes.VENDOR_ERROR for any vendor specific errors that occur.ErrorCodes.UNKNOWN_RESOURCE_TYPE if the type parameter is not a known Resource type.
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |