MCPcopy Index your code
hub / github.com/ddf-project/DDF / beforePersisting

Method beforePersisting

core/src/main/java/io/ddf/DDF.java:1144–1147  ·  view source on GitHub ↗

The base implementation checks if the schema is null, and if so, generate a generic one. This is useful/necessary before persistence, to avoid the situtation of null schemas being persisted.

()

Source from the content-addressed store, hash-verified

1142 * before persistence, to avoid the situtation of null schemas being persisted.
1143 */
1144 @Override
1145 public void beforePersisting() throws DDFException {
1146 if (this.getSchema() == null) this.getSchemaHandler().setSchema(this.getSchemaHandler().generateSchema());
1147 }
1148
1149 @Override
1150 public void afterPersisting() {

Callers

nothing calls this directly

Calls 4

getSchemaMethod · 0.95
getSchemaHandlerMethod · 0.95
setSchemaMethod · 0.65
generateSchemaMethod · 0.65

Tested by

no test coverage detected