Real Time Information Director User Documentation

RTID Metadata Language
Hewlett-Packard Company 11 529618-002
package com.hp.rtsc.documents;
import com.hp.rtsc.metadata.*;
import java.sql.SQLException;
public class NativeOrders extends NativeDocumentDefinition {
private static DocumentRecord documentRecord =
new DocumentRecord("SALES_ORDER", new RelatedRecords[] {
new RelatedRecords("ROLE_SPEC_SLS_ORD_EVENT"),
new RelatedRecords("SALES_ORDER_DETAIL", new RelatedRecords[]{
new SplitRecord("SLS_ORD_SPEC_BUSINESS"),
new RelatedRecords("RL_SPEC_SO_DT_EV_OVRRD"),
new RelatedRecords("SLS_ORD_SCHEDULE_DT")
})
});
public NativeOrders()
throws MetadataInconsistency, SQLException {
super(documentRecord, "NATIVEORDERS");
}
}
Two tables, ROLE_SPEC_SLS_ORD_EVENT and SALES_ORDER_DETAIL, provide
records directly related to the SALES_ORDER record. Multiple records from each of
these two tables may be associated with a single SALES_ORDER.
package com.hp.rtsc.documents;
import com.hp.rtsc.metadata.*;
import java.sql.SQLException;
public class NativeOrders extends NativeDocumentDefinition {
private static DocumentRecord documentRecord =
new DocumentRecord("SALES_ORDER", new RelatedRecords[] {
new RelatedRecords("ROLE_SPEC_SLS_ORD_EVENT"),
new RelatedRecords("SALES_ORDER_DETAIL", new RelatedRecords[]{
new SplitRecord("SLS_ORD_SPEC_BUSINESS"),
new RelatedRecords("RL_SPEC_SO_DT_EV_OVRRD"),
new RelatedRecords("SLS_ORD_SCHEDULE_DT")
})
});
public NativeOrders()
throws MetadataInconsistency, SQLException {
super(documentRecord, "NATIVEORDERS");
}
}
Three other tables, SLS_ORD_SPEC_BUSINESS, RL_SPEC_SO_DT_EV_OVRRD,
and SLS_ORD_SCHEDULE_DT, provide records related to each
SALES_ORDER_DETAIL.
Notice that SLS_ORD_SPEC_BUSINESS is declared as a Split Record, meaning that
exactly one SLS_ORD_SPEC_BUSINESS record is associated with each
SALES_ORDER_DETAIL record. The other two tables,
RL_SPEC_SO_DT_EV_OVRRD and SLS_ORD_SCHEDULE_DT, can contain
multiple records for each SALES_ORDER_DETAIL.