public static class Property.PropertyBuilder
extends java.lang.Object
| Constructor and Description |
|---|
PropertyBuilder(Schema schema,
Entity entity,
PropertyType propertyType,
java.lang.String propertyName) |
public PropertyBuilder(Schema schema, Entity entity, PropertyType propertyType, java.lang.String propertyName)
public Property.PropertyBuilder dbName(java.lang.String dbName)
public Property.PropertyBuilder dbType(java.lang.String dbType)
public Property.PropertyBuilder modelId(io.objectbox.generator.IdUid modelId)
public Property.PropertyBuilder modelIndexId(io.objectbox.generator.IdUid indexId)
public Property.PropertyBuilder primaryKey()
public Property.PropertyBuilder idCompanion()
public Property.PropertyBuilder typeNotNull()
Property.isTypeNotNull()public Property.PropertyBuilder notNullFlag()
Property.isNotNullFlag()public Property.PropertyBuilder idAssignable()
public Property.PropertyBuilder fieldAccessible()
public Property.PropertyBuilder nonPrimitiveFlag()
public Property.PropertyBuilder isList()
Property.isList().public Property.PropertyBuilder unsigned()
public Property.PropertyBuilder index()
public Property.PropertyBuilder index(int indexFlags, int maxValueLength)
indexFlags - One or more of the INDEX or UNIQUE PropertyFlags.public Property.PropertyBuilder hnswParams(io.objectbox.annotation.HnswIndex annotation) throws ModelException
index().annotation - to extract parameters from.ModelException - if invalid parameters are set.public Property.PropertyBuilder customType(java.lang.String customType, java.lang.String converter)
public Property.PropertyBuilder virtualTargetName(java.lang.String virtualTargetName)
public Property.PropertyBuilder virtualTargetValueExpression(java.lang.String virtualTargetValueExpression)
public Property.PropertyBuilder getterMethodName(java.lang.String getterMethodName)
public Property getProperty()