Home > Contents > Index >
OBJECT.CREATE
Creates an object.
Syntax
<OBJECT.CREATE CLASSNAME=class name of object NAME="name of object" [ALLOCATE="true|false"] [ARG1="argument 1"] [ARG2="argument 2">] <[OBJECT.ARGUMENT NAME ="some name" VALUE="some value"]/> </OBJECT.CREATE>Parameters
CLASSNAME (required)
- Classname of the object to be created.
NAME (required)
- Name of the object to be created.
ALLOCATE (optional)
- When set to true, the tag allocates the object, and makes the object id available before the object is saved to the database.
ARG1 (optional)
- Argument 1.
ARG2 (optional)
- Argument 2.
ARGUMENT (optional)
- Name/value pairs to be set in the object.
Description
This tag creates a new object instance of the implementing class, and saves it in the object pool using the specified name. The implementing class must implement a create method in order for an instance of the implementing class to be constructed. The create method should have one of the following prototypes:
public static IAbstractBase Create(ICS ics)
public static IAbstractBase Create(ICS ics, String sArg1)
public static IAbstractBase Create(ICS ics, String sArg1, String sArg2)
Error Numbers
The possible values of
errno
include:
Value Description -10001 The implementing class is invalid. -10002 There is a missing method for the implementing class. -10003 The method could not be invoked successfully. -10004 A required parameter is missing. -10010 Invalid attribute valueExample
<OBJECT.CREATE CLASSNAME="com.openmarket.framework.objects.AbstractObject" NAME="object1" ARG1="sample"> <OBJECT.ARGUMENT Name="name" Value="John Doe"/> <OBJECT.CREATE/>See Also
OBJECT.GATHER
OBJECT.SAVE
OBJECT.SET
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.