Package org.sqlproc.engine.impl
Class SqlMappingAttribute
java.lang.Object
org.sqlproc.engine.impl.SqlMappingAttribute
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 modifiers to identify an identity or the partial attribute META type.
- Author:
- Vladimir Hudec
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSqlMappingAttribute
(SqlMappingItem parent, String fullName, String name) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescription(package private) String
Returns the full name of an attribute.(package private) String
getName()
Returns the partial name of an attribute.(package private) SqlMappingItem
Returns the pointer back to the parent.(package private) void
setFullName
(String fullName) Sets the full name of an attribute.(package private) void
Sets the partial name of an attribute.(package private) void
setParent
(SqlMappingItem parent) Sets the pointer back to the parent.(package private) void
Sets the modifiers.toString()
For debug purposes.
-
Field Details
-
parent
The pointer back to the parent. -
fullName
The full name of an attribute in the result class. -
name
The partial name of an attribute in the result class.
-
-
Constructor Details
-
SqlMappingAttribute
SqlMappingAttribute(SqlMappingItem parent, String fullName, String name) Creates a new instance.- Parameters:
parent
- the pointer back to the ownerfullName
- the full name of an attribute in the result classname
- the partial name of an attribute in the result class
-
-
Method Details
-
setValues
Sets the modifiers. 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 value2value2
- 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
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
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
Sets the pointer back to the parent.- Parameters:
parent
- the pointer back to the parent
-
toString
For debug purposes.
-