public class HiveDataModelEmitter extends JavaDataModelDriver
DataModelDescriptor
.
The generated class will have "public static DataModelDescriptor get()"
method.Modifier and Type | Field and Description |
---|---|
static String |
CATEGORY
Category name for Hive common.
|
static String |
NAME_GETTER_METHOD
The getter method name.
|
Constructor and Description |
---|
HiveDataModelEmitter() |
Modifier and Type | Method and Description |
---|---|
void |
generateResources(EmitContext context,
ModelDeclaration model)
Generates any resources (includes source programs) for the model.
|
static QualifiedName |
getClassName(EmitContext context,
ModelDeclaration model)
Returns the generated class name for this.
|
List<Annotation> |
getMemberAnnotations(EmitContext context,
PropertyDeclaration property)
Returns the type annotations to attach to the property.
|
List<Annotation> |
getTypeAnnotations(EmitContext context,
ModelDeclaration model)
Returns the type annotations to attach to the model.
|
getFields, getInterfaces, getMemberAnnotations, getMethods
public static final String CATEGORY
public static final String NAME_GETTER_METHOD
public static QualifiedName getClassName(EmitContext context, ModelDeclaration model)
context
- the current contextmodel
- the target data modelpublic void generateResources(EmitContext context, ModelDeclaration model) throws IOException
JavaDataModelDriver
generateResources
in class JavaDataModelDriver
context
- the attached contextmodel
- target modelIOException
- if failed to generate resourcespublic List<Annotation> getTypeAnnotations(EmitContext context, ModelDeclaration model) throws IOException
JavaDataModelDriver
getTypeAnnotations
in class JavaDataModelDriver
context
- the attached contextmodel
- target modelIOException
- if failed to create other modelspublic List<Annotation> getMemberAnnotations(EmitContext context, PropertyDeclaration property) throws IOException
JavaDataModelDriver
getMemberAnnotations
in class JavaDataModelDriver
context
- the attached contextproperty
- target propertyIOException
- if failed to create other modelsCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.