Class Util
java.lang.Object
ch.tocco.nice2.dbrefactoring.spi.modulesupport.Util
Static helper methods.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
applyCallbacks
(@Nullable CallbackHandler handler, Callback... callbacks) static void
applyCallbacks
(InstallParameters params, Callback... callbacks) static Writer
createFileWriter
(File file) static Writer
createFileWriter
(String filename) static String
createLanguageString
(Locale lang) static String
getColumnValue
(Node column) static FieldModel
getKeyColumn
(EntityModel entity) static String
getKeyColumnName
(EntityModel entity) static Locale
getLanguage
(Node node) static boolean
hasLanguage
(Node node) static boolean
isIdentifier
(Element node) static boolean
isKeepLocalized
(Node node) static boolean
isLocalized
(Element node) static String
makeLocalizedFieldName
(String basename, Locale language) static void
removeLanguage
(Node node) static void
removeLocalized
(Element node) static void
removeRemarks
(Node node) static void
setIdentifier
(Element node) static void
setLanguage
(Node node, Locale lang) static void
setLocalized
(Element node) static LiquibaseConstants.ValueType
valueTypeForField
(FieldModel field) static LiquibaseConstants.ValueType
valueTypeForKey
(EntityModel entity)
-
Field Details
-
LOCALIZED
- See Also:
-
IDENTIFIER
- See Also:
-
-
Method Details
-
getKeyColumnName
-
getKeyColumn
-
valueTypeForField
-
valueTypeForKey
-
isLocalized
-
setLocalized
-
setIdentifier
-
removeRemarks
-
removeLanguage
-
setLanguage
-
createLanguageString
-
getLanguage
-
hasLanguage
-
isKeepLocalized
-
removeLocalized
-
isIdentifier
-
getColumnValue
-
applyCallbacks
-
applyCallbacks
public static void applyCallbacks(@Nullable @Nullable CallbackHandler handler, Callback... callbacks) -
createFileWriter
- Throws:
FileNotFoundException
-
createFileWriter
- Throws:
FileNotFoundException
-
makeLocalizedFieldName
-