public final class Property
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
autoGenerated |
protected Collection |
collection |
protected java.lang.String |
columnName |
protected java.lang.String |
description |
protected boolean |
documented |
protected boolean |
exclude |
protected java.lang.String |
hint |
protected java.lang.String |
jsonType |
protected java.lang.String |
name |
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 boolean |
readOnly |
protected java.lang.String |
regex |
protected boolean |
required |
protected boolean |
revisionColumn |
protected boolean |
timestampColumn |
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 |
getDescription() |
java.lang.String |
getHint() |
java.lang.String |
getJsonName() |
java.lang.String |
getJsonType() |
java.lang.String |
getName() |
Property |
getPk() |
java.lang.String |
getRegex() |
java.lang.String |
getType() |
boolean |
isAutoGenerated() |
boolean |
isDocumented() |
boolean |
isExclude() |
boolean |
isFk() |
boolean |
isNullable() |
boolean |
isReadOnly() |
boolean |
isRequired() |
boolean |
isRevisionColumn() |
boolean |
isTimestampColumn() |
void |
setCollection(Collection collection) |
java.lang.String |
toString() |
Property |
withAutoGenerated(boolean autoGenerated) |
Property |
withCollection(Collection collection) |
Property |
withColumnName(java.lang.String name) |
Property |
withDescription(java.lang.String description) |
Property |
withDocumented(boolean documented) |
Property |
withExclude(boolean exclude) |
Property |
withHint(java.lang.String hint) |
Property |
withJsonName(java.lang.String name) |
Property |
withJsonType(java.lang.String jsonType) |
Property |
withName(java.lang.String name) |
Property |
withNullable(boolean nullable) |
Property |
withPk(Property primaryKey) |
Property |
withReadOnly(boolean readOnly) |
Property |
withRegex(java.lang.String regex) |
Property |
withRequired(boolean required) |
Property |
withRevisionColumn(boolean revisionColumn) |
Property |
withTimestampColumn(boolean timestampColumn) |
Property |
withType(java.lang.String type) |
protected java.lang.String name
protected java.lang.String columnName
protected java.lang.String description
protected java.lang.String type
protected boolean nullable
protected boolean readOnly
protected boolean autoGenerated
protected boolean required
protected java.lang.String jsonType
protected java.lang.String regex
protected boolean documented
protected boolean revisionColumn
protected boolean timestampColumn
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 void setCollection(Collection collection)
public boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic Property withDescription(java.lang.String description)
public java.lang.String getDescription()
public 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 java.lang.String getName()
public Property withJsonName(java.lang.String name)
name - the name to setpublic Property withName(java.lang.String name)
public 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)
public boolean isReadOnly()
public Property withReadOnly(boolean readOnly)
public boolean isAutoGenerated()
public Property withAutoGenerated(boolean autoGenerated)
public boolean isRequired()
public Property withRequired(boolean required)
public Property withRegex(java.lang.String regex)
public boolean isDocumented()
public Property withDocumented(boolean documented)
public java.lang.String getRegex()
public boolean isRevisionColumn()
public Property withRevisionColumn(boolean revisionColumn)
public boolean isTimestampColumn()
public Property withTimestampColumn(boolean timestampColumn)
public Property withJsonType(java.lang.String jsonType)
public java.lang.String getJsonType()
Copyright © 2023 Rocket Partners, LLC. All rights reserved.