nextFK() Method

Usage

public java.lang.Boolean nextFK()

Description

This method moves to the next foreign key (FK) of the datastore for which a Web service is being generated.

When first called, this method returns true and positions the current FK to the first FK of the datastore. If there is no FK for the datastore, it returns false.

Subsequent calls position the current FK to the next FKs of the datastore, and return true. If the is no next FK, the method returns false.

This method can be used only in SKMs.

Examples

In the example below, we iterate of all the FKs of the datastore. In each iteration of the while loop, the getFK and getFKColList methods return information on the various FKs of the datastore.

<% while (odiRef.nextFK()) { %>

    FK : <%=odiRef.getFK("FK_NAME")%>

        Referenced Table : <%=odiRef.getFK("PK_TABLE_NAME")%>

        Columns <%=odiRef.getFKColList("{", "\u0022[COL_NAME]\u0022", ", ", "}")%>

        Message : <%=odiRef.getFK("MESS")%>

<% } %>