Package io.inversion
Class Property
java.lang.Object
io.inversion.Property
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected Collectionprotected Stringprotected Stringprotected booleanprotected booleanprotected Stringprotected Stringprotected Stringprotected booleanprotected PropertyIf this Property is a foreign key, this will be populated with the referenced primary key from the referred Collectionprotected booleanprotected Stringprotected booleanprotected booleanprotected booleanprotected String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetHint()getName()getPk()getRegex()getType()booleanbooleanbooleanbooleanisFk()booleanbooleanbooleanbooleanbooleanvoidsetCollection(Collection collection) toString()withAutoGenerated(boolean autoGenerated) withCollection(Collection collection) withColumnName(String name) withDescription(String description) withDocumented(boolean documented) withExclude(boolean exclude) withJsonName(String name) withJsonType(String jsonType) withNullable(boolean nullable) withReadOnly(boolean readOnly) withRequired(boolean required) withRevisionColumn(boolean revisionColumn) withTimestampColumn(boolean timestampColumn)
-
Field Details
-
name
-
columnName
-
description
-
type
-
nullable
protected boolean nullable -
readOnly
protected boolean readOnly -
autoGenerated
protected boolean autoGenerated -
required
protected boolean required -
jsonType
-
regex
-
documented
protected boolean documented -
revisionColumn
protected boolean revisionColumn -
timestampColumn
protected boolean timestampColumn -
hint
-
exclude
protected boolean exclude -
pk
If this Property is a foreign key, this will be populated with the referenced primary key from the referred Collection -
collection
-
-
Constructor Details
-
Property
public Property() -
Property
-
Property
-
Property
-
-
Method Details
-
setCollection
-
equals
-
toString
-
withDescription
-
getDescription
-
getPk
- Returns:
- the primaryKey
-
withPk
- Parameters:
primaryKey- the primaryKey to set- Returns:
- this
-
isFk
public boolean isFk() -
getColumnName
- Returns:
- the name
-
withColumnName
- Parameters:
name- the name to set- Returns:
- this
-
getJsonName
- Returns:
- the name
-
getName
-
withJsonName
- Parameters:
name- the name to set- Returns:
- this
-
withName
-
getType
- Returns:
- the type
-
withType
- Parameters:
type- the type to set- Returns:
- this
-
getCollection
- Returns:
- the collection that owns this property
-
withCollection
- Parameters:
collection- the Collection the Property belongs to- Returns:
- this
-
getHint
- Returns:
- the hint
-
withHint
- Parameters:
hint- the hint to set- Returns:
- this
-
isNullable
public boolean isNullable() -
withNullable
-
isExclude
public boolean isExclude() -
withExclude
-
isReadOnly
public boolean isReadOnly() -
withReadOnly
-
isAutoGenerated
public boolean isAutoGenerated() -
withAutoGenerated
-
isRequired
public boolean isRequired() -
withRequired
-
withRegex
-
isDocumented
public boolean isDocumented() -
withDocumented
-
getRegex
-
isRevisionColumn
public boolean isRevisionColumn() -
withRevisionColumn
-
isTimestampColumn
public boolean isTimestampColumn() -
withTimestampColumn
-
withJsonType
-
getJsonType
-