Class SqlUtil
- java.lang.Object
-
- io.apicurio.registry.storage.impl.sql.SqlUtil
-
public class SqlUtil extends Object
- Author:
- eric.wittmann@gmail.com
-
-
Constructor Summary
Constructors Constructor Description SqlUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringdenormalizeGroupId(String groupId)static List<String>deserializeLabels(String labelsStr)Deserialize the labels from their string form to aList<String>form.static Map<String,String>deserializeProperties(String propertiesStr)Deserialize the properties from their string form to a Mapform. static StringnormalizeGroupId(String groupId)static StringserializeLabels(List<String> labels)Serializes the given collection of labels to a string for artifactStore in the DB.static StringserializeProperties(Map<String,String> properties)Serializes the given collection of properties to a string for artifactStore in the DB.
-
-
-
Method Detail
-
serializeLabels
public static String serializeLabels(List<String> labels)
Serializes the given collection of labels to a string for artifactStore in the DB.- Parameters:
labels-
-
deserializeLabels
public static List<String> deserializeLabels(String labelsStr)
Deserialize the labels from their string form to aList<String>form.- Parameters:
labelsStr-
-
serializeProperties
public static String serializeProperties(Map<String,String> properties)
Serializes the given collection of properties to a string for artifactStore in the DB.- Parameters:
properties-
-
deserializeProperties
public static Map<String,String> deserializeProperties(String propertiesStr)
Deserialize the properties from their string form to a Mapform. - Parameters:
propertiesStr-
-
-