Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual
PDF (US Ltr) - 4.4Mb
PDF (A4) - 4.4Mb
EPUB - 1.9Mb
HTML Download (TGZ) - 1.9Mb
HTML Download (Zip) - 1.9Mb


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 ;
}

Figure 4.35 Persistent Class

Persistent Class

4.3.2.13.2 column

Column name where the values are stored for this member.

Parameters

return

the name of the column

4.3.2.13.3 extensions

Non-standard extensions for this member.

Parameters

return

the non-standard extensions

4.3.2.13.4 nullValue

Behavior when this member contains a null value.

Parameters

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.

Parameters

return

whether this member is part of the primary key


User Comments
Sign Up Login You must be logged in to post a comment.