4.3.1.9 ColumnMetadata

4.3.1.9.1 charsetName()
4.3.1.9.2 columnType()
4.3.1.9.3 isPartitionKey()
4.3.1.9.4 isPrimaryKey()
4.3.1.9.5 javaType()
4.3.1.9.6 maximumLength()
4.3.1.9.7 name()
4.3.1.9.8 nullable()
4.3.1.9.9 number()
4.3.1.9.10 precision()
4.3.1.9.11 scale()
 public interface ColumnMetadata {
// Public Methods  public 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();
}

Figure 4.8 ColumnMetadata Class

ColumnMetadata Class

4.3.1.9.1 charsetName()
public abstract String charsetName();

Return the charset name.

Parameters

return

the charset name

4.3.1.9.2 columnType()
public abstract ColumnType columnType();

Return the type of the column.

Parameters

return

the type of the column

4.3.1.9.3 isPartitionKey()
public abstract boolean isPartitionKey();

Return whether this column is a partition key column.

Parameters

return

true if this column is a partition key column

4.3.1.9.4 isPrimaryKey()
public abstract boolean isPrimaryKey();

Return whether this column is a primary key column.

Parameters

return

true if this column is a primary key column

4.3.1.9.5 javaType()
public abstract Class<?> javaType();

Return the java type of the column.

Parameters

return

the java type of the column

4.3.1.9.6 maximumLength()
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.

Parameters

return

the maximum number of bytes that can be stored in the column

4.3.1.9.7 name()
public abstract String name();

Return the name of the column.

Parameters

return

the name of the column

4.3.1.9.8 nullable()
public abstract boolean nullable();

Return whether this column is nullable.

Parameters

return

whether this column is nullable

4.3.1.9.9 number()
public abstract int number();

Return the column number. This number is used as the first parameter in the get and set methods of DynamicColumn.

Parameters

return

the column number.

4.3.1.9.10 precision()
public abstract int precision();

Return the precision of the column.

Parameters

return

the precision of the column

4.3.1.9.11 scale()
public abstract int scale();

Return the scale of the column.

Parameters

return

the scale of the column