Package deltix.qsrv.hf.pub.md
Class JavaBeanGenerator
- java.lang.Object
-
- deltix.qsrv.hf.pub.md.BeanGenerator
-
- deltix.qsrv.hf.pub.md.JavaBeanGenerator
-
public class JavaBeanGenerator extends BeanGenerator
Generates and optionally compiles/loads classes corresponding to specified TimeBase class descriptors.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
JavaBeanGenerator.Bean
static class
JavaBeanGenerator.Language
-
Constructor Summary
Constructors Constructor Description JavaBeanGenerator()
JavaBeanGenerator(JavaBeanGenerator.Language lang)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JavaBeanGenerator.Bean
addClass(ClassDescriptor cd)
java.util.Collection<JavaBeanGenerator.Bean>
beans()
java.lang.ClassLoader
compile()
static java.lang.String
escapeJavaReservedWord(java.lang.String keyword)
JavaBeanGenerator.Bean
getByNativeClassName(java.lang.String name)
JavaBeanGenerator.Bean
getBySchemaClassName(java.lang.String name)
protected java.lang.String
getClassNameFor(ClassDescriptor cd)
java.lang.String
getDefaultPackage()
JavaBeanGenerator.Language
getLanguage()
boolean
getLongAlphanumerics()
static java.lang.String
getName(RecordClassDescriptor type)
boolean
getRegenExistingClasses()
TypeLoader
getTypeLoader()
protected java.lang.Class<?>
loadExternalClass(ClassDescriptor cd)
void
process()
void
setDefaultPackage(java.lang.String defaultPackage)
void
setLongAlphanumerics(boolean longAlphanumerics)
Whether to map VARCHAR (ALPHANUMERIC) to long.void
setRegenExistingClasses(boolean b)
-
Methods inherited from class deltix.qsrv.hf.pub.md.BeanGenerator
doEscapeIdentifierForCS, doEscapeIdentifierForJava, escapeIdentifierForCS, escapeIdentifierForJava
-
-
-
-
Constructor Detail
-
JavaBeanGenerator
public JavaBeanGenerator(JavaBeanGenerator.Language lang)
-
JavaBeanGenerator
public JavaBeanGenerator()
-
-
Method Detail
-
getLanguage
public JavaBeanGenerator.Language getLanguage()
-
getLongAlphanumerics
public boolean getLongAlphanumerics()
-
setLongAlphanumerics
public void setLongAlphanumerics(boolean longAlphanumerics)
Whether to map VARCHAR (ALPHANUMERIC) to long.- Parameters:
longAlphanumerics
- If true,VARCHAR (ALPHANUMERIC)
will be mapped to along
native data type.
-
getRegenExistingClasses
public boolean getRegenExistingClasses()
-
setRegenExistingClasses
public void setRegenExistingClasses(boolean b)
-
getDefaultPackage
public java.lang.String getDefaultPackage()
-
setDefaultPackage
public void setDefaultPackage(java.lang.String defaultPackage)
-
getClassNameFor
protected java.lang.String getClassNameFor(ClassDescriptor cd)
-
loadExternalClass
protected java.lang.Class<?> loadExternalClass(ClassDescriptor cd)
-
addClass
public final JavaBeanGenerator.Bean addClass(ClassDescriptor cd)
-
getByNativeClassName
public final JavaBeanGenerator.Bean getByNativeClassName(java.lang.String name)
-
getBySchemaClassName
public final JavaBeanGenerator.Bean getBySchemaClassName(java.lang.String name)
-
escapeJavaReservedWord
public static java.lang.String escapeJavaReservedWord(java.lang.String keyword)
-
process
public final void process()
-
beans
public java.util.Collection<JavaBeanGenerator.Bean> beans()
-
getName
public static java.lang.String getName(RecordClassDescriptor type)
- Returns:
- not null value for Market and Security messages
-
compile
public java.lang.ClassLoader compile()
-
getTypeLoader
public TypeLoader getTypeLoader()
-
-