Make the MongoDB docs better! We value your opinion. Share your feedback for a chance to win $100.
Click here >
Docs Menu
Docs Home
/ /
io.realm

Enum FieldAttribute

java.lang.Object
io.realm.FieldAttribute

Esta clase contiene todos los atributos de dominio para un campo de dominio. Estos suelen coincidir con las anotaciones que se encuentran en el io.realm.annotation paquete. Consulte la anotación correspondiente para obtener más información sobre cada modificador.

Enum Constant and Description

INDEXED

Marks a field as indexed.

PRIMARY_KEY

Marks a field as a primary key.

REQUIRED

Marks a field as explicitly not allowing null values.

Modificador y Tipo
Método y descripción

public static FieldAttribute

public static FieldAttribute

  • Methods inherited from class java.lang.Object : getClass , hashCode , equals , clone , toString , notify , notifyAll , wait , wait , wait , finalize

  • Métodos heredados de la clase java.lang.Enum : name , ordinal , toString , equals , hashCode , clone , compareTo , getDeclaringClass , valueOf , finalize

public static final FieldAttribute

Marks a field as indexed.

public static final FieldAttribute

Marca un campo como clave principal. Esto también lo marca implícitamente como INDEXADO.

public static final FieldAttribute

Marks a field as explicitly not allowing null values. The default behavior for allowing null depends on the type of the field.

public static FieldAttribute valueOf (
String name
)
public static FieldAttribute values ()

Volver

DynamicRealmObject

En esta página