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


4.3.2.13 Persistent

Annotation for defining the persistence of a member.

4.3.2.13.1 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 ;
}
4.3.2.13.2 column

Column name where the values are stored for this member.

Table 4.91 column

Parameter Description
return the name of the column

4.3.2.13.3 extensions

Non-standard extensions for this member.

Table 4.92 extensions

Parameter Description
return the non-standard extensions

4.3.2.13.4 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

4.3.2.13.5 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