Documentation Home
MySQL NDB Cluster API Developer Guide
Download this Manual Column

Annotation for a column in the database. 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 ;
} 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.

Table 4.77 allowsNull

Parameter Description
return whether the column allows null values to be inserted defaultValue

Default value for this column.

Table 4.78 defaultValue

Parameter Description
return the default value for this column name

Name of the column.

Table 4.79 name

Parameter Description
return the name of the column

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.