Package io.inversion
Class Property
java.lang.Object
io.inversion.Property
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetHint()getPk()getType()booleanbooleanisFk()booleantoString()withCollection(Collection collection) withColumnName(String name) withExclude(boolean exclude) withJsonName(String name) withNullable(boolean nullable)
-
Field Details
-
jsonName
-
columnName
-
type
-
nullable
protected boolean nullable -
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
-
equals
-
toString
-
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
-
withJsonName
- Parameters:
name- the name to set- Returns:
- this
-
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
-