org.infinispan.persistence.sql.configuration.SqlSerializerUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infinispan-cachestore-sql Show documentation
Show all versions of infinispan-cachestore-sql Show documentation
Infinispan SQL CacheStore module
package org.infinispan.persistence.sql.configuration;
import org.infinispan.commons.configuration.io.ConfigurationWriter;
import org.infinispan.persistence.jdbc.common.configuration.Element;
class SqlSerializerUtil {
static void writeSchemaElement(ConfigurationWriter writer, AbstractSchemaJdbcConfiguration configuration) {
SchemaJdbcConfiguration schemaConfig = configuration.schema();
if (schemaConfig.attributes().isModified()) {
writer.writeStartElement(Element.SCHEMA);
schemaConfig.attributes().write(writer);
writer.writeEndElement();
}
}
}