MySQL NDB Cluster API Developer Guide
public interface ColumnMetadata {
// Public Methodspublic abstract String charsetName();public abstract ColumnType columnType();public abstract boolean isPartitionKey();public abstract boolean isPrimaryKey();public abstract Class<?> javaType();public abstract int maximumLength();public abstract String name();public abstract boolean nullable();public abstract int number();public abstract int precision();public abstract int scale();
}
public abstract String charsetName();Return the charset name.
public abstract ColumnType columnType();Return the type of the column.
public abstract boolean isPartitionKey();Return whether this column is a partition key column.
Table 4.19 isPartitionKey()
| Parameter | Description |
|---|---|
| return | true if this column is a partition key column |
public abstract boolean isPrimaryKey();Return whether this column is a primary key column.
public abstract Class<?> javaType();Return the java type of the column.
public abstract int maximumLength();Return the maximum number of bytes that can be stored in the column after translating the characters using the character set.
Table 4.22 maximumLength()
| Parameter | Description |
|---|---|
| return | the maximum number of bytes that can be stored in the column |
public abstract String name();Return the name of the column.
public abstract boolean nullable();Return whether this column is nullable.
public abstract int number();Return the column number. This number is used as the first parameter in the get and set methods of DynamicColumn.
public abstract int precision();Return the precision of the column.