public interface FieldCreatorProvider
This interface permits field creation via Roo commands with different configurations of parameters visibility and mandatory indicators. e.g. DTO classes don't need database related options in field creation commands, so they use their own implementation for making those options not visible.
| Modifier and Type | Method and Description |
|---|---|
boolean |
areJoinTableParamsMandatoryForFieldList(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
areJoinTableParamsMandatoryForFieldSet(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
areJoinTableParamsVisibleForFieldList(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
areJoinTableParamsVisibleForFieldSet(org.springframework.roo.shell.ShellContext shellContext) |
void |
createBooleanField(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails javaTypeDetails,
boolean primitive,
org.springframework.roo.model.JavaSymbolName fieldName,
boolean notNull,
boolean nullRequired,
boolean assertFalse,
boolean assertTrue,
String column,
String comment,
String value,
boolean permitReservedWords,
boolean transientModifier) |
void |
createDateField(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails javaTypeDetails,
org.springframework.roo.model.JavaType fieldType,
org.springframework.roo.model.JavaSymbolName fieldName,
boolean notNull,
boolean nullRequired,
boolean future,
boolean past,
org.springframework.roo.classpath.operations.jsr303.DateFieldPersistenceType persistenceType,
String column,
String comment,
org.springframework.roo.classpath.operations.DateTime dateFormat,
org.springframework.roo.classpath.operations.DateTime timeFormat,
String pattern,
String value,
boolean permitReservedWords,
boolean transientModifier) |
void |
createEmbeddedField(org.springframework.roo.model.JavaType typeName,
org.springframework.roo.model.JavaType fieldType,
org.springframework.roo.model.JavaSymbolName fieldName,
boolean permitReservedWords) |
void |
createEnumField(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails cid,
org.springframework.roo.model.JavaType fieldType,
org.springframework.roo.model.JavaSymbolName fieldName,
String column,
boolean notNull,
boolean nullRequired,
org.springframework.roo.classpath.operations.EnumType enumType,
String comment,
boolean permitReservedWords,
boolean transientModifier) |
void |
createFileField(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails cid,
org.springframework.roo.model.JavaSymbolName fieldName,
org.springframework.roo.classpath.operations.jsr303.UploadedFileContentType contentType,
boolean autoUpload,
boolean notNull,
String column,
boolean permitReservedWords) |
void |
createListField(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails cid,
org.springframework.roo.classpath.operations.Cardinality cardinality,
org.springframework.roo.model.JavaType typeName,
org.springframework.roo.model.JavaType fieldType,
org.springframework.roo.model.JavaSymbolName fieldName,
org.springframework.roo.classpath.operations.Cascade cascadeType,
boolean notNull,
boolean nullRequired,
Integer sizeMin,
Integer sizeMax,
org.springframework.roo.model.JavaSymbolName mappedBy,
org.springframework.roo.classpath.operations.Fetch fetch,
String comment,
String joinTable,
String joinColumns,
String referencedColumns,
String inverseJoinColumns,
String inverseReferencedColumns,
boolean permitReservedWords,
boolean transientModifier) |
void |
createNumericField(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails javaTypeDetails,
org.springframework.roo.model.JavaType fieldType,
boolean primitive,
Set<String> legalNumericPrimitives,
org.springframework.roo.model.JavaSymbolName fieldName,
boolean notNull,
boolean nullRequired,
String decimalMin,
String decimalMax,
Integer digitsInteger,
Integer digitsFraction,
Long min,
Long max,
String column,
String comment,
boolean unique,
String value,
boolean permitReservedWords,
boolean transientModifier) |
void |
createOtherField(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails cid,
org.springframework.roo.model.JavaType fieldType,
org.springframework.roo.model.JavaSymbolName fieldName,
boolean notNull,
boolean nullRequired,
String comment,
String column,
boolean permitReservedWords,
boolean transientModifier) |
void |
createReferenceField(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails cid,
org.springframework.roo.classpath.operations.Cardinality cardinality,
org.springframework.roo.model.JavaType typeName,
org.springframework.roo.model.JavaType fieldType,
org.springframework.roo.model.JavaSymbolName fieldName,
org.springframework.roo.classpath.operations.Cascade cascadeType,
boolean notNull,
boolean nullRequired,
String joinColumnName,
String referencedColumnName,
org.springframework.roo.classpath.operations.Fetch fetch,
String comment,
boolean permitReservedWords,
boolean transientModifier) |
void |
createSetField(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails cid,
org.springframework.roo.classpath.operations.Cardinality cardinality,
org.springframework.roo.model.JavaType typeName,
org.springframework.roo.model.JavaType fieldType,
org.springframework.roo.model.JavaSymbolName fieldName,
org.springframework.roo.classpath.operations.Cascade cascadeType,
boolean notNull,
boolean nullRequired,
Integer sizeMin,
Integer sizeMax,
org.springframework.roo.model.JavaSymbolName mappedBy,
org.springframework.roo.classpath.operations.Fetch fetch,
String comment,
String joinTable,
String joinColumns,
String referencedColumns,
String inverseJoinColumns,
String inverseReferencedColumns,
boolean permitReservedWords,
boolean transientModifier) |
void |
createStringField(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails cid,
org.springframework.roo.model.JavaSymbolName fieldName,
boolean notNull,
boolean nullRequired,
String decimalMin,
String decimalMax,
Integer sizeMin,
Integer sizeMax,
String regexp,
String column,
String comment,
boolean unique,
String value,
boolean lob,
boolean permitReservedWords,
boolean transientModifier) |
void |
formatFieldComment(org.springframework.roo.classpath.details.FieldDetails fieldDetails) |
List<String> |
getFieldListTypeAllPossibleValues(org.springframework.roo.shell.ShellContext shellContext) |
List<String> |
getFieldSetTypeAllPossibleValues(org.springframework.roo.shell.ShellContext shellContext) |
void |
insertField(org.springframework.roo.classpath.details.FieldDetails fieldDetails,
boolean permitReservedWords,
boolean transientModifier) |
boolean |
isCardinalityVisibleForFieldList(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isCardinalityVisibleForFieldReference(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isCardinalityVisibleForFieldSet(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isCascadeTypeVisibleForFieldReference(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isColumnMandatoryForFieldBoolean(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isColumnMandatoryForFieldDate(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isColumnMandatoryForFieldEnum(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isColumnMandatoryForFieldFile(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isColumnMandatoryForFieldNumber(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isColumnMandatoryForFieldOther(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isColumnMandatoryForFieldReference(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isColumnMandatoryForFieldString(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isColumnVisibleForFieldBoolean(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isColumnVisibleForFieldDate(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isColumnVisibleForFieldEnum(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isColumnVisibleForFieldFile(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isColumnVisibleForFieldNumber(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isColumnVisibleForFieldOther(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isColumnVisibleForFieldString(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isEnumTypeVisibleForFieldEnum(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isFetchVisibleForFieldList(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isFetchVisibleForFieldReference(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isFetchVisibleForFieldSet(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isFieldEmbeddedAvailable()
Whether field embedded command is available.
|
boolean |
isFieldManagementAvailable()
Whether field management commands are available.
|
boolean |
isFieldReferenceAvailable()
Whether field reference command is available.
|
boolean |
isJoinColumnNameVisibleForFieldReference(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isJoinTableMandatoryForFieldList(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isJoinTableMandatoryForFieldSet(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isJoinTableVisibleForFieldList(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isJoinTableVisibleForFieldSet(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isLobVisibleForFieldString(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isMappedByVisibleForFieldList(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isMappedByVisibleForFieldSet(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isPersistenceTypeVisibleForFieldDate(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isReferencedColumnNameVisibleForFieldReference(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isTransientVisibleForFieldBoolean(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isTransientVisibleForFieldDate(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isTransientVisibleForFieldEnum(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isTransientVisibleForFieldList(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isTransientVisibleForFieldNumber(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isTransientVisibleForFieldOther(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isTransientVisibleForFieldReference(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isTransientVisibleForFieldSet(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isTransientVisibleForFieldString(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isUniqueVisibleForFieldNumber(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isUniqueVisibleForFieldString(org.springframework.roo.shell.ShellContext shellContext) |
boolean |
isValid(org.springframework.roo.model.JavaType javaType)
Whether an implementation of this interface is valid for the class type
where the field is going to be created.
|
boolean isValid(org.springframework.roo.model.JavaType javaType)
boolean isFieldManagementAvailable()
boolean isFieldEmbeddedAvailable()
boolean isFieldReferenceAvailable()
boolean isColumnMandatoryForFieldBoolean(org.springframework.roo.shell.ShellContext shellContext)
boolean isColumnVisibleForFieldBoolean(org.springframework.roo.shell.ShellContext shellContext)
boolean isTransientVisibleForFieldBoolean(org.springframework.roo.shell.ShellContext shellContext)
boolean isColumnMandatoryForFieldDate(org.springframework.roo.shell.ShellContext shellContext)
boolean isColumnVisibleForFieldDate(org.springframework.roo.shell.ShellContext shellContext)
boolean isPersistenceTypeVisibleForFieldDate(org.springframework.roo.shell.ShellContext shellContext)
boolean isTransientVisibleForFieldDate(org.springframework.roo.shell.ShellContext shellContext)
boolean isColumnMandatoryForFieldEnum(org.springframework.roo.shell.ShellContext shellContext)
boolean isColumnVisibleForFieldEnum(org.springframework.roo.shell.ShellContext shellContext)
boolean isEnumTypeVisibleForFieldEnum(org.springframework.roo.shell.ShellContext shellContext)
boolean isTransientVisibleForFieldEnum(org.springframework.roo.shell.ShellContext shellContext)
boolean isColumnMandatoryForFieldNumber(org.springframework.roo.shell.ShellContext shellContext)
boolean isColumnVisibleForFieldNumber(org.springframework.roo.shell.ShellContext shellContext)
boolean isUniqueVisibleForFieldNumber(org.springframework.roo.shell.ShellContext shellContext)
boolean isTransientVisibleForFieldNumber(org.springframework.roo.shell.ShellContext shellContext)
boolean isColumnMandatoryForFieldReference(org.springframework.roo.shell.ShellContext shellContext)
boolean isJoinColumnNameVisibleForFieldReference(org.springframework.roo.shell.ShellContext shellContext)
boolean isReferencedColumnNameVisibleForFieldReference(org.springframework.roo.shell.ShellContext shellContext)
boolean isCardinalityVisibleForFieldReference(org.springframework.roo.shell.ShellContext shellContext)
boolean isFetchVisibleForFieldReference(org.springframework.roo.shell.ShellContext shellContext)
boolean isTransientVisibleForFieldReference(org.springframework.roo.shell.ShellContext shellContext)
boolean isCascadeTypeVisibleForFieldReference(org.springframework.roo.shell.ShellContext shellContext)
boolean areJoinTableParamsMandatoryForFieldSet(org.springframework.roo.shell.ShellContext shellContext)
boolean isJoinTableMandatoryForFieldSet(org.springframework.roo.shell.ShellContext shellContext)
boolean areJoinTableParamsVisibleForFieldSet(org.springframework.roo.shell.ShellContext shellContext)
boolean isMappedByVisibleForFieldSet(org.springframework.roo.shell.ShellContext shellContext)
boolean isCardinalityVisibleForFieldSet(org.springframework.roo.shell.ShellContext shellContext)
boolean isFetchVisibleForFieldSet(org.springframework.roo.shell.ShellContext shellContext)
boolean isTransientVisibleForFieldSet(org.springframework.roo.shell.ShellContext shellContext)
boolean isJoinTableVisibleForFieldSet(org.springframework.roo.shell.ShellContext shellContext)
boolean areJoinTableParamsVisibleForFieldList(org.springframework.roo.shell.ShellContext shellContext)
boolean isJoinTableMandatoryForFieldList(org.springframework.roo.shell.ShellContext shellContext)
boolean areJoinTableParamsMandatoryForFieldList(org.springframework.roo.shell.ShellContext shellContext)
boolean isMappedByVisibleForFieldList(org.springframework.roo.shell.ShellContext shellContext)
boolean isCardinalityVisibleForFieldList(org.springframework.roo.shell.ShellContext shellContext)
boolean isFetchVisibleForFieldList(org.springframework.roo.shell.ShellContext shellContext)
boolean isTransientVisibleForFieldList(org.springframework.roo.shell.ShellContext shellContext)
boolean isJoinTableVisibleForFieldList(org.springframework.roo.shell.ShellContext shellContext)
boolean isColumnMandatoryForFieldString(org.springframework.roo.shell.ShellContext shellContext)
boolean isColumnVisibleForFieldString(org.springframework.roo.shell.ShellContext shellContext)
boolean isUniqueVisibleForFieldString(org.springframework.roo.shell.ShellContext shellContext)
boolean isTransientVisibleForFieldString(org.springframework.roo.shell.ShellContext shellContext)
boolean isLobVisibleForFieldString(org.springframework.roo.shell.ShellContext shellContext)
boolean isColumnMandatoryForFieldFile(org.springframework.roo.shell.ShellContext shellContext)
boolean isColumnVisibleForFieldFile(org.springframework.roo.shell.ShellContext shellContext)
boolean isColumnMandatoryForFieldOther(org.springframework.roo.shell.ShellContext shellContext)
boolean isColumnVisibleForFieldOther(org.springframework.roo.shell.ShellContext shellContext)
boolean isTransientVisibleForFieldOther(org.springframework.roo.shell.ShellContext shellContext)
void createBooleanField(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails javaTypeDetails,
boolean primitive,
org.springframework.roo.model.JavaSymbolName fieldName,
boolean notNull,
boolean nullRequired,
boolean assertFalse,
boolean assertTrue,
String column,
String comment,
String value,
boolean permitReservedWords,
boolean transientModifier)
void createDateField(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails javaTypeDetails,
org.springframework.roo.model.JavaType fieldType,
org.springframework.roo.model.JavaSymbolName fieldName,
boolean notNull,
boolean nullRequired,
boolean future,
boolean past,
org.springframework.roo.classpath.operations.jsr303.DateFieldPersistenceType persistenceType,
String column,
String comment,
org.springframework.roo.classpath.operations.DateTime dateFormat,
org.springframework.roo.classpath.operations.DateTime timeFormat,
String pattern,
String value,
boolean permitReservedWords,
boolean transientModifier)
void createEmbeddedField(org.springframework.roo.model.JavaType typeName,
org.springframework.roo.model.JavaType fieldType,
org.springframework.roo.model.JavaSymbolName fieldName,
boolean permitReservedWords)
void createEnumField(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails cid,
org.springframework.roo.model.JavaType fieldType,
org.springframework.roo.model.JavaSymbolName fieldName,
String column,
boolean notNull,
boolean nullRequired,
org.springframework.roo.classpath.operations.EnumType enumType,
String comment,
boolean permitReservedWords,
boolean transientModifier)
void createNumericField(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails javaTypeDetails,
org.springframework.roo.model.JavaType fieldType,
boolean primitive,
Set<String> legalNumericPrimitives,
org.springframework.roo.model.JavaSymbolName fieldName,
boolean notNull,
boolean nullRequired,
String decimalMin,
String decimalMax,
Integer digitsInteger,
Integer digitsFraction,
Long min,
Long max,
String column,
String comment,
boolean unique,
String value,
boolean permitReservedWords,
boolean transientModifier)
void createReferenceField(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails cid,
org.springframework.roo.classpath.operations.Cardinality cardinality,
org.springframework.roo.model.JavaType typeName,
org.springframework.roo.model.JavaType fieldType,
org.springframework.roo.model.JavaSymbolName fieldName,
org.springframework.roo.classpath.operations.Cascade cascadeType,
boolean notNull,
boolean nullRequired,
String joinColumnName,
String referencedColumnName,
org.springframework.roo.classpath.operations.Fetch fetch,
String comment,
boolean permitReservedWords,
boolean transientModifier)
void createSetField(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails cid,
org.springframework.roo.classpath.operations.Cardinality cardinality,
org.springframework.roo.model.JavaType typeName,
org.springframework.roo.model.JavaType fieldType,
org.springframework.roo.model.JavaSymbolName fieldName,
org.springframework.roo.classpath.operations.Cascade cascadeType,
boolean notNull,
boolean nullRequired,
Integer sizeMin,
Integer sizeMax,
org.springframework.roo.model.JavaSymbolName mappedBy,
org.springframework.roo.classpath.operations.Fetch fetch,
String comment,
String joinTable,
String joinColumns,
String referencedColumns,
String inverseJoinColumns,
String inverseReferencedColumns,
boolean permitReservedWords,
boolean transientModifier)
void createListField(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails cid,
org.springframework.roo.classpath.operations.Cardinality cardinality,
org.springframework.roo.model.JavaType typeName,
org.springframework.roo.model.JavaType fieldType,
org.springframework.roo.model.JavaSymbolName fieldName,
org.springframework.roo.classpath.operations.Cascade cascadeType,
boolean notNull,
boolean nullRequired,
Integer sizeMin,
Integer sizeMax,
org.springframework.roo.model.JavaSymbolName mappedBy,
org.springframework.roo.classpath.operations.Fetch fetch,
String comment,
String joinTable,
String joinColumns,
String referencedColumns,
String inverseJoinColumns,
String inverseReferencedColumns,
boolean permitReservedWords,
boolean transientModifier)
void createStringField(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails cid,
org.springframework.roo.model.JavaSymbolName fieldName,
boolean notNull,
boolean nullRequired,
String decimalMin,
String decimalMax,
Integer sizeMin,
Integer sizeMax,
String regexp,
String column,
String comment,
boolean unique,
String value,
boolean lob,
boolean permitReservedWords,
boolean transientModifier)
void createFileField(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails cid,
org.springframework.roo.model.JavaSymbolName fieldName,
org.springframework.roo.classpath.operations.jsr303.UploadedFileContentType contentType,
boolean autoUpload,
boolean notNull,
String column,
boolean permitReservedWords)
void createOtherField(org.springframework.roo.classpath.details.ClassOrInterfaceTypeDetails cid,
org.springframework.roo.model.JavaType fieldType,
org.springframework.roo.model.JavaSymbolName fieldName,
boolean notNull,
boolean nullRequired,
String comment,
String column,
boolean permitReservedWords,
boolean transientModifier)
void insertField(org.springframework.roo.classpath.details.FieldDetails fieldDetails,
boolean permitReservedWords,
boolean transientModifier)
void formatFieldComment(org.springframework.roo.classpath.details.FieldDetails fieldDetails)
List<String> getFieldSetTypeAllPossibleValues(org.springframework.roo.shell.ShellContext shellContext)
Copyright © 2009–2016. All rights reserved.