/**
* INTERNAL:
* XSD: table-generator
*/
protected ClassDescriptor buildTableGeneratorDescriptor() {
XMLDescriptor descriptor = new XMLDescriptor();
descriptor.setJavaClass(TableGeneratorMetadata.class);
descriptor.addMapping(getUniqueConstraintMapping());
XMLDirectMapping nameMapping = new XMLDirectMapping();
nameMapping.setAttributeName("m_generatorName");
nameMapping.setGetMethodName("getGeneratorName");
nameMapping.setSetMethodName("setGeneratorName");
nameMapping.setXPath("@name");
descriptor.addMapping(nameMapping);
XMLDirectMapping tableMapping = new XMLDirectMapping();
tableMapping.setAttributeName("m_name");
tableMapping.setGetMethodName("getName");
tableMapping.setSetMethodName("setName");
tableMapping.setXPath("@table");
descriptor.addMapping(tableMapping);
descriptor.addMapping(getCatalogAttributeMapping());
descriptor.addMapping(getSchemaAttributeMapping());
XMLDirectMapping pkColumnNameMapping = new XMLDirectMapping();
pkColumnNameMapping.setAttributeName("m_pkColumnName");
pkColumnNameMapping.setGetMethodName("getPkColumnName");
pkColumnNameMapping.setSetMethodName("setPkColumnName");
pkColumnNameMapping.setXPath("@pk-column-name");
descriptor.addMapping(pkColumnNameMapping);
XMLDirectMapping valueColumnNameMapping = new XMLDirectMapping();
valueColumnNameMapping.setAttributeName("m_valueColumnName");
valueColumnNameMapping.setGetMethodName("getValueColumnName");
valueColumnNameMapping.setSetMethodName("setValueColumnName");
valueColumnNameMapping.setXPath("@value-column-name");
descriptor.addMapping(valueColumnNameMapping);
XMLDirectMapping pkColumnValueMapping = new XMLDirectMapping();
pkColumnValueMapping.setAttributeName("m_pkColumnValue");
pkColumnValueMapping.setGetMethodName("getPkColumnValue");
pkColumnValueMapping.setSetMethodName("setPkColumnValue");
pkColumnValueMapping.setXPath("@pk-column-value");
descriptor.addMapping(pkColumnValueMapping);
descriptor.addMapping(getInitialValueAttributeMapping());
descriptor.addMapping(getAllocationSizeAttributeMapping());
return descriptor;
}