public class SQLProperty extends ManagedModelProperty
isPropertyModelProperty.TypeAdapter| Modifier and Type | Field and Description |
|---|---|
String |
columnName
typeName of the column
|
ColumnType |
columnType
type of column
|
String |
foreignClassName
class name of referred table
|
protected boolean |
nullable |
ForeignKeyAction |
onDeleteAction |
ForeignKeyAction |
onUpdateAction |
protected com.squareup.javapoet.TypeName |
parentTypeName |
protected boolean |
primaryKey |
bindPropertyannotations, fieldWithGetter, fieldWithIs, fieldWithSetter, parent, propertyType, publicField, typeAdapterelement, name| Constructor and Description |
|---|
SQLProperty(SQLEntity entity,
Element element,
List<ModelAnnotation> modelAnnotations) |
SQLProperty(String name,
com.squareup.javapoet.TypeName parentTypeName)
Construtor used for generated fields.
|
| Modifier and Type | Method and Description |
|---|---|
com.squareup.javapoet.TypeName |
getParentTypeName() |
boolean |
hasForeignKeyClassName() |
boolean |
isNullable() |
boolean |
isPrimaryKey() |
void |
setNullable(boolean nullable) |
void |
setPrimaryKey(boolean primaryKey) |
accept, addAnnotation, detectRealtType, equals, getAnnotation, getParent, getPropertyType, hasAnnotation, hashCode, hasTypeAdapter, isFieldWithGetter, isFieldWithIs, isFieldWithSetter, isProperty, isPublicField, isType, isType, setFieldWithGetter, setFieldWithIs, setFieldWithSettergetElement, getNameclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetElementpublic String columnName
protected boolean nullable
protected boolean primaryKey
public ColumnType columnType
protected com.squareup.javapoet.TypeName parentTypeName
public String foreignClassName
public ForeignKeyAction onDeleteAction
public ForeignKeyAction onUpdateAction
public SQLProperty(String name, com.squareup.javapoet.TypeName parentTypeName)
name - name of propertyparentTypeName - class name of parent typepublic SQLProperty(SQLEntity entity, Element element, List<ModelAnnotation> modelAnnotations)
public void setPrimaryKey(boolean primaryKey)
primaryKey - the primaryKey to setpublic boolean isNullable()
public void setNullable(boolean nullable)
nullable - the nullable to setpublic boolean isPrimaryKey()
public boolean hasForeignKeyClassName()
public com.squareup.javapoet.TypeName getParentTypeName()
Copyright © 2017. All rights reserved.