LEONARDI Application Composer - 8.9.0.40 by W4 S.A.

leon.peer.util
Class LyColumnField

java.lang.Object
  extended by leon.peer.LyPeerField
      extended by leon.peer.util.LyColumnField
All Implemented Interfaces:
LyField
Direct Known Subclasses:
LySqlColumnField, LyXmlField

public class LyColumnField
extends LyPeerField

This class provides a simple implementation of LyField.


Nested Class Summary
static class LyColumnField.CONSTRAINT
           
 
Field Summary
static java.lang.String __VERSION
           
 
Constructor Summary
LyColumnField()
          Default Constructor.
 
Method Summary
 void addContraint(LyColumnField.CONSTRAINT constraint)
          Add a constraint to the list
 java.lang.String getDefault()
          Gets the default value for this peer field as a string.
 java.lang.String getFormat()
          Gets the format value for this peer field as a string.
 java.lang.String getId()
          Gets identifier of this field.
 java.lang.String getPeerType()
          Peer type (used by RDBMS which accepts BLOBS and/or CLOBS) otherwise value is 'DEFAULT'
 java.lang.Class<?> getValueClass()
          Gets the java class representation of the value of this field.
 boolean hasContraint(LyColumnField.CONSTRAINT constraint)
          test if the field has a constraint
 void removeContraint(LyColumnField.CONSTRAINT constraint)
          remove a constraints from the list
 void setDefault(java.lang.String defaultValue)
          Sets the default value for this peer field as a string.
 void setFormat(java.lang.String format)
          Sets the format value for this peer field as a string.
 void setId(java.lang.String id)
          Gets identifier of this field.
 void setPeerType(java.lang.String peerType)
          Sets the peer type (used by RDBMS which accepts BLOBS and/or CLOBS) otherwise value is 'DEFAULT'
 void setValueClass(java.lang.Class<?> valueClass)
          Sets the java class representation of the value of this field.
 java.lang.String toString()
          Returns this peer field as a String.
 
Methods inherited from class leon.peer.LyPeerField
buildFieldValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

__VERSION

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

LyColumnField

public LyColumnField()
Default Constructor.

Method Detail

getId

public final java.lang.String getId()
Gets identifier of this field.

Returns:
Identifier of this field.

getValueClass

public final java.lang.Class<?> getValueClass()
Gets the java class representation of the value of this field.

Returns:
Java class used to represent values of this field.

getDefault

public final java.lang.String getDefault()
Gets the default value for this peer field as a string.

Returns:
Default value for this field given as a string.

getFormat

public final java.lang.String getFormat()
Gets the format value for this peer field as a string.

Returns:
Format for this field given as a string.

getPeerType

public final java.lang.String getPeerType()
Peer type (used by RDBMS which accepts BLOBS and/or CLOBS) otherwise value is 'DEFAULT'

Returns:
Possible values are 'DEFAULT', 'BLOB' and 'CLOB'

setId

public void setId(java.lang.String id)
Gets identifier of this field.

Parameters:
id - Identifier of this field.

setValueClass

public void setValueClass(java.lang.Class<?> valueClass)
Sets the java class representation of the value of this field.

Parameters:
valueClass - Java class used to represent values of this field.

setDefault

public void setDefault(java.lang.String defaultValue)
Sets the default value for this peer field as a string.

Parameters:
defaultValue - Default value for this field given as a string.

setFormat

public void setFormat(java.lang.String format)
Sets the format value for this peer field as a string.

Parameters:
format - Format for this field given as a string.

setPeerType

public void setPeerType(java.lang.String peerType)
Sets the peer type (used by RDBMS which accepts BLOBS and/or CLOBS) otherwise value is 'DEFAULT'

Parameters:
type - Possible values are 'DEFAULT', 'BLOB' and 'CLOB'

toString

public java.lang.String toString()
Returns this peer field as a String.

Overrides:
toString in class java.lang.Object
Returns:
This peer field returned as a string.

addContraint

public void addContraint(LyColumnField.CONSTRAINT constraint)
Add a constraint to the list

Parameters:
constraint - new constraint to add
See Also:
removeConstraint, hasConstraint

removeContraint

public void removeContraint(LyColumnField.CONSTRAINT constraint)
remove a constraints from the list

Parameters:
constraint - new constraint to remove
See Also:
addConstraint, hasConstraint

hasContraint

public boolean hasContraint(LyColumnField.CONSTRAINT constraint)
test if the field has a constraint

Returns:
true if the constraint is found

(c) January 2013 - W4 S.A.

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