Creating replication definitions for Java columns

You can create replication definitions for Java columns using create replication definition and the rawobject and rawobject in row datatypes.

When creating a replication definition:

rawobject and rawobject in row values:

This example creates a sample replication definition p1 for a table t that contains Java columns.

create replication definition p1
    with primary at ds.db
    with all tables name t
      (c1 int,
      c2 rawobject null,
      c3 rawobject not null,
      c4 rawobject in row)
    primary key (c1)
    replicate_if_changed (c2)
    always_replicate (c3)

Columns c2 and c3 are rawobject columns; they have replication and null status. Column c4 is a rawobject in row column; it does not have replication or null status. Columns c2, c3, and c4 are neither part of the primary key nor are they searchable.