public class Property
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Collection |
collection |
protected java.lang.String |
columnName |
protected boolean |
exclude |
protected java.lang.String |
hint |
protected java.lang.String |
jsonName |
protected boolean |
nullable |
protected Property |
pk
If this Property is a foreign key, this will be populated
with the referenced primary key from the referred Collection
|
protected java.lang.String |
type |
| Constructor and Description |
|---|
Property() |
Property(java.lang.String name) |
Property(java.lang.String name,
java.lang.String type) |
Property(java.lang.String name,
java.lang.String type,
boolean nullable) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object) |
Collection |
getCollection() |
java.lang.String |
getColumnName() |
java.lang.String |
getHint() |
java.lang.String |
getJsonName() |
Property |
getPk() |
java.lang.String |
getType() |
boolean |
isExclude() |
boolean |
isFk() |
boolean |
isNullable() |
java.lang.String |
toString() |
Property |
withCollection(Collection collection) |
Property |
withColumnName(java.lang.String name) |
Property |
withExclude(boolean exclude) |
Property |
withHint(java.lang.String hint) |
Property |
withJsonName(java.lang.String name) |
Property |
withNullable(boolean nullable) |
Property |
withPk(Property primaryKey) |
Property |
withType(java.lang.String type) |
protected java.lang.String jsonName
protected java.lang.String columnName
protected java.lang.String type
protected boolean nullable
protected java.lang.String hint
protected boolean exclude
protected Property pk
protected Collection collection
public Property()
public Property(java.lang.String name)
public Property(java.lang.String name,
java.lang.String type)
public Property(java.lang.String name,
java.lang.String type,
boolean nullable)
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic Property getPk()
public Property withPk(Property primaryKey)
primaryKey - the primaryKey to setpublic boolean isFk()
public java.lang.String getColumnName()
public Property withColumnName(java.lang.String name)
name - the name to setpublic java.lang.String getJsonName()
public Property withJsonName(java.lang.String name)
name - the name to setpublic java.lang.String getType()
public Property withType(java.lang.String type)
type - the type to setpublic Collection getCollection()
public Property withCollection(Collection collection)
collection - the Collection the Property belongs topublic java.lang.String getHint()
public Property withHint(java.lang.String hint)
hint - the hint to setpublic boolean isNullable()
public Property withNullable(boolean nullable)
public boolean isExclude()
public Property withExclude(boolean exclude)
Copyright © 2021 Rocket Partners, LLC. All rights reserved.