Documentation Home
MySQL NDB Cluster API Developer Guide
Related Documentation Download this Manual
PDF (US Ltr) - 3.6Mb
PDF (A4) - 3.6Mb Persistent

Annotation for defining the persistence of a member. Synopsis
 @Target(value={java.lang.annotation.ElementType.FIELD, java.lang.annotation.ElementType.METHOD}) @Retention(value=java.lang.annotation.RetentionPolicy.RUNTIME) public @interface Persistent {
  public NullValue nullValue ;
  public String primaryKey ;
  public String column ;
  public Extension[] extensions ;
} column

Column name where the values are stored for this member.

Table 4.91 column

Parameter Description
return the name of the column extensions

Non-standard extensions for this member.

Table 4.92 extensions

Parameter Description
return the non-standard extensions nullValue

Behavior when this member contains a null value.

Table 4.93 nullValue

Parameter Description
return the behavior when this member contains a null value primaryKey

Whether this member is part of the primary key for the table. This is equivalent to specifying @PrimaryKey as a separate annotation on the member.

Table 4.94 primaryKey

Parameter Description
return whether this member is part of the primary key