Home > Contents > Index >
OBJECT.INSTALL
Installs an object.
Syntax
<OBJECT.INSTALL CLASSNAME="some class name" [DIR="some directory"] [ACL="some acl"] [TRACK="revision tracking true or false"] [ARG1="argument 1"] [ARG2="argument 2"]> <OBJECT.ARGUMENT NAME="name" VALUE="value" /> </OBJECT.INSTALL>Parameters
CLASSNAME (required)
- Class name of the object.
DIR (optional)
- Directory of the object.
ACL (optional)
- ACL of the object.
TRACK (optional)
- Indicates if the table associated with the implementing class should be revision tracked.
ARG1 (optional)
- Argument 1.
ARG2 (optional)
- Argument 2.
Description
This tag creates an installation of the implementing class. This typically involves creating the tables to allow for storage of instances of the class. The installation method should use one of the following prototypes:
public static int Install (ICS ics, Vector vector, String sUpLoadDir, String sAcList, boolean bTrack)
public static int Install (ICS ics, Vector vector, String sUpLoadDir, String sAcList, boolean bTrack, String sArg1)
public static int Install (ICS ics, Vector vector, String sUpLoadDir, String sAcList, boolean bTrack, String sArg1, String Arg2)
The argument in the second prototype is a vector of a column elements, represented by the ColumnElement class. These typically represent column definitions using the ColumnDefinition class.
Error Numbers
The possible values of
errno
include:
Value Description -10001 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 value.Example
The following example creates an object table with the additional columns
name
anddescription
.<OBJECT.INSTALL CLASSNAME="com.openmarket.framework.objects.AbstractObject" ARG1 ="sample"> <OBJECT.ARGUMENT NAME="name" value="VARCHAR(32) NOT NULL"/> <OBJECT.ARGUMENT NAME="description" value="VARCHAR (128) NOT NULL"/> </OBJECT.INSTALL>See Also
OBJECT.CREATE
OBJECT.DEINSTALL
Home > Contents > Index > ![]()
Oracle XML Tag Reference
Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.