org.kuali.common.impex
Class ProducerUtils

java.lang.Object
  extended by org.kuali.common.impex.ProducerUtils

public class ProducerUtils
extends Object

String utility methods for classes creating sql from schema model data


Field Summary
static String COMMA
           
static String DOT
           
static String NEWLINE
           
static String NEWLINE_TAB
           
static String NOT_NULL
           
static char SINGLE_QUOTE
           
static String SPACE
           
static String TYPE_SIZE_PREFIX
           
static String TYPE_SIZE_SUFFIX
           
 
Constructor Summary
ProducerUtils()
           
 
Method Summary
static String generatePrimaryKeyName(Table t)
           
static boolean isDateType(DataType dataType)
           
static Schema unmarshalSchema(String xmlLocation)
          Standard code for initializing a schema model from an xml resource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NEWLINE

public static final String NEWLINE
See Also:
Constant Field Values

COMMA

public static final String COMMA
See Also:
Constant Field Values

DOT

public static final String DOT
See Also:
Constant Field Values

SPACE

public static final String SPACE
See Also:
Constant Field Values

SINGLE_QUOTE

public static final char SINGLE_QUOTE
See Also:
Constant Field Values

TYPE_SIZE_PREFIX

public static final String TYPE_SIZE_PREFIX
See Also:
Constant Field Values

TYPE_SIZE_SUFFIX

public static final String TYPE_SIZE_SUFFIX
See Also:
Constant Field Values

NOT_NULL

public static final String NOT_NULL
See Also:
Constant Field Values

NEWLINE_TAB

public static final String NEWLINE_TAB
See Also:
Constant Field Values
Constructor Detail

ProducerUtils

public ProducerUtils()
Method Detail

generatePrimaryKeyName

public static String generatePrimaryKeyName(Table t)

isDateType

public static boolean isDateType(DataType dataType)

unmarshalSchema

public static Schema unmarshalSchema(String xmlLocation)
                              throws JAXBException,
                                     IOException
Standard code for initializing a schema model from an xml resource

Parameters:
xmlLocation - resource location of the xml
Returns:
a Schema populated from the xml
Throws:
JAXBException
IOException


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.