LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.info.binding
Class LyBinding

java.lang.Object
  extended by leon.info.LyTag
      extended by leon.info.binding.LyBinding
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
LyClassBinding, LyFieldBinding

public class LyBinding
extends LyTag
implements java.lang.Cloneable

Container for the binding information found in the data description.


Nested Class Summary
 
Nested classes/interfaces inherited from class leon.info.LyTag
LyTag.Model
 
Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LyBinding(java.lang.String binding)
          Constructor.
 
Method Summary
 java.lang.String getBinding()
          Reads the binding information.
 boolean isDefaultBinding()
          Checks if this binding is the default binding generated by leon or not.
 void setDefaultBinding(boolean defaultBinding)
          Sets this binding as the default binding generated by leon or not.
 
Methods inherited from class leon.info.LyTag
clone, getApplication, getCommentsEnd, getCommentsStart, getEnvironment, getId, getModelType, getParent, getRootProject, hasAncestor, isExtern, setCommentsEnd, setCommentsStart, wasCloned
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

__VERSION

public static final java.lang.String __VERSION
See Also:
Constant Field Values
Constructor Detail

LyBinding

public LyBinding(java.lang.String binding)
Constructor.

Parameters:
binding - content of the binding information
Method Detail

getBinding

public java.lang.String getBinding()
Reads the binding information. Generic or specific connection classes use the binding information to fetch data from a data provider. For instance the binding info may be a CLASS ID in a DBMS.

Returns:
the binding information.

setDefaultBinding

public void setDefaultBinding(boolean defaultBinding)
Sets this binding as the default binding generated by leon or not.

Parameters:
defaultBinding - True if default binding, false otherwise.

isDefaultBinding

public boolean isDefaultBinding()
Checks if this binding is the default binding generated by leon or not.

Returns:
True if default binding, false otherwise.

(c) January 2013 - W4 S.A.

Website: W4 S.A., contact us: support@w4global.com