
com.couchbase.client.java.repository.mapping.EntityMetadata Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-client Show documentation
Show all versions of java-client Show documentation
The official Couchbase Java SDK
package com.couchbase.client.java.repository.mapping;
import java.util.List;
/**
* Represents the metadata for a document entity.
*
* @author Michael Nitschinger
* @since 2.2.0
*/
public interface EntityMetadata {
/**
* Returns the metadata for all properties in this entity.
*
* @return the property information.
*/
List properties();
/**
* True if it contains an id property, false otherwise.
*
* @return true if there is one, false otherwise.
*/
boolean hasIdProperty();
/**
* Returns the metadata for the id property if set, or null otherwise.
*
* @return the metadata or null.
*/
PropertyMetadata idProperty();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy