com.datastax.driver.mapping.annotations

## Annotation Type Table

• @Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Table
Defines to which table a class must be mapped to.
• ### Required Element Summary

Required Elements
Modifier and Type Required Element and Description
String name
The name of the table.
• ### Optional Element Summary

Optional Elements
Modifier and Type Optional Element and Description
boolean caseSensitiveKeyspace
Whether the keyspace name is a case sensitive one.
boolean caseSensitiveTable
Whether the table name is a case sensitive one.
String keyspace
The name of the keyspace the table is part of.
String readConsistency
The consistency level to use for the read operations provded by the Mapper class.
String writeConsistency
The consistency level to use for the write operations provded by the Mapper class.
• ### Element Detail

• #### name

public abstract String name
The name of the table.
Returns:
the name of the table.
• #### keyspace

public abstract String keyspace
The name of the keyspace the table is part of.
Returns:
the name of the keyspace.
Default:
""
• #### caseSensitiveKeyspace

public abstract boolean caseSensitiveKeyspace
Whether the keyspace name is a case sensitive one.
Returns:
whether the keyspace name is a case sensitive one.
Default:
false
• #### caseSensitiveTable

public abstract boolean caseSensitiveTable
Whether the table name is a case sensitive one.
Returns:
whether the table name is a case sensitive one.
Default:
false
• #### writeConsistency

public abstract String writeConsistency
The consistency level to use for the write operations provded by the Mapper class.
Returns:
the consistency level to use for the write operations provded by the Mapper class.
Default:
""
public abstract String readConsistency
The consistency level to use for the read operations provded by the Mapper class.
the consistency level to use for the read operations provded by the Mapper class.