nextAK() Method

Usage

public java.lang.Boolean nextAK()

Description

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

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

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

This method can be used only in SKMs.

Examples

In the example below, we iterate of all the AKs of the datastore. In each iteration of the while loop, the getAK and getAKColList methods return information on the various AKs of the datastore.

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

    <%=odiRef.getAK("KEY_NAME")%>

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

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

<% } %>