Home > Contents > Index >
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index
object:install
Installs an object.
Syntax
<object:install classname="some classname" [dir="some directory"] [acl="some acl"] track="revision tracking true or false" [arg1="argument 1"] [arg2="argument 2"]/>Parameters
classname (required)
- Classname of the object.
dir (optional)
- Directory of the object.
acl (optional)
- ACL of the object.
track (optional)
- This 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 catalogs 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
Home > Contents > Index > ![]()
Oracle JSP Tag Reference
Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.