Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual 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

User Comments
User comments in this section are, as the name implies, provided by MySQL users. The MySQL documentation team is not responsible for, nor do they endorse, any of the information provided here.
Sign Up Login You must be logged in to post a comment.