|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.peer.LyPeerField
leon.peer.util.LyColumnField
public class LyColumnField
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 |
---|
public static final java.lang.String __VERSION
Constructor Detail |
---|
public LyColumnField()
Method Detail |
---|
public final java.lang.String getId()
public final java.lang.Class<?> getValueClass()
public final java.lang.String getDefault()
public final java.lang.String getFormat()
public final java.lang.String getPeerType()
public void setId(java.lang.String id)
id
- Identifier of this field.public void setValueClass(java.lang.Class<?> valueClass)
valueClass
- Java class used to represent values of this field.public void setDefault(java.lang.String defaultValue)
defaultValue
- Default value for this field given as a string.public void setFormat(java.lang.String format)
format
- Format for this field given as a string.public void setPeerType(java.lang.String peerType)
type
- Possible values are 'DEFAULT', 'BLOB' and 'CLOB'public java.lang.String toString()
toString
in class java.lang.Object
public void addContraint(LyColumnField.CONSTRAINT constraint)
constraint
- new constraint to addremoveConstraint
,
hasConstraint
public void removeContraint(LyColumnField.CONSTRAINT constraint)
constraint
- new constraint to removeaddConstraint
,
hasConstraint
public boolean hasContraint(LyColumnField.CONSTRAINT constraint)
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |