org.sqlproc.engine.impl
Class SqlMetaConstItem

java.lang.Object
  extended by org.sqlproc.engine.impl.SqlMetaConstItem

 class SqlMetaConstItem
extends Object

A META SQL sub-element. A partial item for a SqlMetaConst. It represents the name of an attribute in the input class (the static parameters class). In case there're more names, the input classes are embedded one in other.

Author:
Vladimir Hudec

Nested Class Summary
(package private) static class SqlMetaConstItem.Type
          The enumeration of types of this sub-element.
 
Field Summary
(package private)  org.slf4j.Logger logger
          The internal slf4j logger.
private  String name
          The name of related attribute.
private  SqlMetaConstItem.Type type
          The type if this sub-element, which represents an embedded class or a leaf attribute.
 
Constructor Summary
SqlMetaConstItem(String name, SqlMetaConstItem.Type type)
          Creates a new instance of this entity.
 
Method Summary
(package private)  String getName()
          Returns the name of related attribute.
(package private)  void setType(SqlMetaConstItem.Type type)
          Sets the type if this sub-element, which represents an embedded class or a leaf attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

final org.slf4j.Logger logger
The internal slf4j logger.


name

private String name
The name of related attribute.


type

private SqlMetaConstItem.Type type
The type if this sub-element, which represents an embedded class or a leaf attribute.

Constructor Detail

SqlMetaConstItem

SqlMetaConstItem(String name,
                 SqlMetaConstItem.Type type)
Creates a new instance of this entity. Used from inside ANTLR parser.

Parameters:
name - the name of related attribute
type - the type if this sub-element, which represents an embedded class or a leaf attribute
Method Detail

setType

void setType(SqlMetaConstItem.Type type)
Sets the type if this sub-element, which represents an embedded class or a leaf attribute.

Parameters:
type - the type if this sub-element

getName

String getName()
Returns the name of related attribute.

Returns:
the name of related attribute


Copyright © 2011. All Rights Reserved.