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.1 Column

Annotation for a column in the database.

4.3.2.1.1 Synopsis
 @Target(value={java.lang.annotation.ElementType.FIELD, java.lang.annotation.ElementType.METHOD}) @Retention(value=java.lang.annotation.RetentionPolicy.RUNTIME) public @interface Column {
  public String name ;
  public String allowsNull ;
  public String defaultValue ;
}

Figure 4.23 Column Class

Column Class

4.3.2.1.2 allowsNull

Whether the column allows null values to be inserted. This overrides the database definition and requires that the application provide non-null values for the database column.

Parameters

return

whether the column allows null values to be inserted

4.3.2.1.3 defaultValue

Default value for this column.

Parameters

return

the default value for this column

4.3.2.1.4 name

Name of the column.

Parameters

return

the name of the column


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