Skip to content

Commit 05dca84

Browse files
author
Sergei Egorov
committed
Mapper should allow access to TableMetadata (JAVA-554).
1 parent 190fba6 commit 05dca84

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

  • driver-mapping/src/main/java/com/datastax/driver/mapping

driver-mapping/src/main/java/com/datastax/driver/mapping/Mapper.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,15 @@ PreparedStatement getPreparedQuery(QueryType type) {
9696
return stmt;
9797
}
9898

99+
/**
100+
* The {@code TableMetadata} for this mapper.
101+
*
102+
* @return the {@code TableMetadata} for this mapper or {@code null} if keyspace is not set.
103+
*/
104+
public TableMetadata getTableMetadata() {
105+
return tableMetadata;
106+
}
107+
99108
/**
100109
* The {@code MappingManager} managing this mapper.
101110
*

0 commit comments

Comments
 (0)