org.plasma.provisioning.rdb
Class ConverterSupport

java.lang.Object
  extended by org.plasma.provisioning.rdb.ConverterSupport
Direct Known Subclasses:
MySql55Converter, Oracle11GConverter

public class ConverterSupport
extends Object


Field Summary
protected  Map<Class,Map<String,Property>> classPropertyMap
          maps classes to properties
protected  Map<String,Class> classQualifiedNameMap
          Maps URI qualified names to classes
protected  JDBCPojoDataAccessClient client
           
protected  Map<String,Enumeration> enumQualifiedNameMap
          Maps URI qualified names to enumerations
protected  Model model
           
protected  String[] namespaces
           
protected  Map<String,Property> propertyQualifiedPriKeyConstrainatNameMap
          Maps physical schema qualified primary key constraint names to properties.
protected  String[] schemaNames
           
 
Constructor Summary
ConverterSupport()
           
 
Method Summary
protected  String filter(String src)
          Getting bad unicode characters in DB comments which cause sax to barf.
protected static boolean isOtherAllowed(char c)
           
protected static boolean isPunctuation(char c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

schemaNames

protected String[] schemaNames

namespaces

protected String[] namespaces

model

protected Model model

classQualifiedNameMap

protected Map<String,Class> classQualifiedNameMap
Maps URI qualified names to classes


enumQualifiedNameMap

protected Map<String,Enumeration> enumQualifiedNameMap
Maps URI qualified names to enumerations


propertyQualifiedPriKeyConstrainatNameMap

protected Map<String,Property> propertyQualifiedPriKeyConstrainatNameMap
Maps physical schema qualified primary key constraint names to properties.


classPropertyMap

protected Map<Class,Map<String,Property>> classPropertyMap
maps classes to properties


client

protected JDBCPojoDataAccessClient client
Constructor Detail

ConverterSupport

public ConverterSupport()
Method Detail

filter

protected String filter(String src)
Getting bad unicode characters in DB comments which cause sax to barf. "SAXParseException: An invalid XML character (Unicode: 0x92)" No real solution other than escaping them or filtering them. JAXB does not support CDATA sections. There are alot of illegal unicode chars according to many sources, so filtering seems best.


isPunctuation

protected static boolean isPunctuation(char c)

isOtherAllowed

protected static boolean isOtherAllowed(char c)


Copyright © 2013. All rights reserved.