org.sqlproc.engine.impl
Class SqlMappingAttribute

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

 class SqlMappingAttribute
extends Object

The mapping rule sub-element for one output attribute. It's related to a partial attribute name in the sequence of the attribute names. It can also encompass the supplement values to identify an identity or the partial attribute META type.

Author:
Vladimir Hudec

Field Summary
private  String fullName
          The full name of an attribute in the result class.
private  String name
          The partial name of an attribute in the result class.
private  SqlMappingItem parent
          The pointer back to the parent.
 
Constructor Summary
SqlMappingAttribute(SqlMappingItem parent, String fullName, String name)
          Creates a new instance.
 
Method Summary
(package private)  String getFullName()
          Returns the full name of an attribute.
(package private)  String getName()
          Returns the partial name of an attribute.
(package private)  SqlMappingItem getParent()
          Returns the pointer back to the parent.
(package private)  void setFullName(String fullName)
          Sets the full name of an attribute.
(package private)  void setName(String name)
          Sets the partial name of an attribute.
(package private)  void setParent(SqlMappingItem parent)
          Sets the pointer back to the parent.
(package private)  void setValues(String value, String value2)
          Sets the supplement values.
 String toString()
          For debug purposes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

parent

private SqlMappingItem parent
The pointer back to the parent.


fullName

private String fullName
The full name of an attribute in the result class.


name

private String name
The partial name of an attribute in the result class.

Constructor Detail

SqlMappingAttribute

SqlMappingAttribute(SqlMappingItem parent,
                    String fullName,
                    String name)
Creates a new instance.

Parameters:
parent - the pointer back to the owner
fullName - the full name of an attribute in the result class
name - the partial name of an attribute in the result class
Method Detail

setValues

void setValues(String value,
               String value2)
Sets the supplement values. They are used to identify an identity column or the partial attribute type.

Parameters:
value - the value for a special treatment, might be an identifier of value2
value2 - the value for a special treatment, might be an attribute type

getName

String getName()
Returns the partial name of an attribute.

Returns:
the partial name of an attribute

setName

void setName(String name)
Sets the partial name of an attribute.

Parameters:
name - the partial name of an attribute

getFullName

String getFullName()
Returns the full name of an attribute.

Returns:
the full name of an attribute

setFullName

void setFullName(String fullName)
Sets the full name of an attribute.

Parameters:
fullName - the full name of an attribute

getParent

SqlMappingItem getParent()
Returns the pointer back to the parent.

Returns:
the pointer back to the parent

setParent

void setParent(SqlMappingItem parent)
Sets the pointer back to the parent.

Parameters:
parent - the pointer back to the parent

toString

public String toString()
For debug purposes.

Overrides:
toString in class Object
Returns:
a String representation for a debug output


Copyright © 2011. All Rights Reserved.