Package io.objectbox.generator.model
Class Property.PropertyBuilder
- java.lang.Object
-
- io.objectbox.generator.model.Property.PropertyBuilder
-
- Enclosing class:
- Property
public static class Property.PropertyBuilder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PropertyBuilder(Schema schema, Entity entity, PropertyType propertyType, java.lang.String propertyName)
-
Method Summary
-
-
-
Constructor Detail
-
PropertyBuilder
public PropertyBuilder(Schema schema, Entity entity, PropertyType propertyType, java.lang.String propertyName)
-
-
Method Detail
-
dbName
public Property.PropertyBuilder dbName(java.lang.String dbName)
-
dbType
public Property.PropertyBuilder dbType(java.lang.String dbType)
-
modelId
public Property.PropertyBuilder modelId(io.objectbox.generator.IdUid modelId)
-
modelIndexId
public Property.PropertyBuilder modelIndexId(io.objectbox.generator.IdUid indexId)
-
primaryKey
public Property.PropertyBuilder primaryKey()
-
idCompanion
public Property.PropertyBuilder idCompanion()
-
typeNotNull
public Property.PropertyBuilder typeNotNull()
- See Also:
Property.isTypeNotNull()
-
notNullFlag
public Property.PropertyBuilder notNullFlag()
- See Also:
Property.isNotNullFlag()
-
idAssignable
public Property.PropertyBuilder idAssignable()
-
fieldAccessible
public Property.PropertyBuilder fieldAccessible()
-
nonPrimitiveFlag
public Property.PropertyBuilder nonPrimitiveFlag()
Use to explicitly flag property as non-primitive. Currently, only to indicate wrapper types are used for scalar properties, when using custom types or String list is used instead of String array.
-
unsigned
public Property.PropertyBuilder unsigned()
-
index
public Property.PropertyBuilder index()
-
index
public Property.PropertyBuilder index(int indexFlags, int maxValueLength)
- Parameters:
indexFlags- One or more of the INDEX or UNIQUEPropertyFlags.
-
customType
public Property.PropertyBuilder customType(java.lang.String customType, java.lang.String converter)
-
virtualTargetName
public Property.PropertyBuilder virtualTargetName(java.lang.String virtualTargetName)
-
virtualTargetValueExpression
public Property.PropertyBuilder virtualTargetValueExpression(java.lang.String virtualTargetValueExpression)
-
getterMethodName
public Property.PropertyBuilder getterMethodName(java.lang.String getterMethodName)
-
getProperty
public Property getProperty()
-
-