@Relvars(relvarNames={"ATTRIBUTE","ATTRIBUTELENGTHCONSTRAINT"}) public final class Attribute extends AbstractUpdatableDBObject
Constructor and Description |
---|
Attribute()
Creates an empty Attribute
|
Attribute(java.lang.String attributeName,
java.lang.String typeName,
int maximumLength)
Creates the Attribute
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributeName()
Gets The attribute name
|
int |
getMaximumLength()
Gets The logical length, or -1 if this doen't apply
|
UpdatableDBObject |
getPreUpdateState()
Gets The state of the object as it was built by the J/R bridging engine immediately after the object was created from a database tuple (and which should have been set by/using the setPreUpdateState() method.
|
java.lang.String |
getTypeName()
Gets The type name
|
void |
setAttributeName(java.lang.String attributeName)
Sets The attribute name
|
void |
setAttributeName(ValueBuffer attributeName)
Sets The attribute name
|
void |
setMaximumLength(int maximumLength)
Sets The maximumLength
|
void |
setMaximumLength(ValueBuffer maximumLength)
Sets The maximumLength
|
void |
setPreUpdateState()
This method is called by the J/R bridging engine after an object has been setup from some tuple retrieved from the database.
|
void |
setTypeName(java.lang.String typeName)
Sets The type name
|
void |
setTypeName(ValueBuffer typeName)
Sets The type name
|
dbUpdateCommand, dbUpdateCommand, dbUpdateCommand
dbAddCommand, dbAddCommand, dbAddCommand, dbAddCommandAll, dbAssertCommand, dbAssertCommand, dbAssertCommand, dbAssertCommandAll, dbDeleteCommand, dbDeleteCommand, dbDeleteCommand, dbDeleteCommandAll, dbUnAssertCommand, dbUnAssertCommand, dbUnAssertCommand, dbUnAssertCommandAll
public Attribute()
public Attribute(java.lang.String attributeName, java.lang.String typeName, int maximumLength)
attributeName
- The attribute nametypeName
- The type namemaximumLength
- The logical length, or -1 if not applicable or unknown or irrelevant@GetterMethod(relvarNames={"ATTRIBUTE","ATTRIBUTELENGTHCONSTRAINT"}, attributeDefs=@AttributeDef(attributeName="ATTRIBUTENAME",requiresEscaping=false,typeName="NAME")) public final java.lang.String getAttributeName()
@GetterMethod(relvarNames="ATTRIBUTELENGTHCONSTRAINT", attributeDefs=@AttributeDef(attributeName="MAXIMUMLENGTH",requiresEscaping=false,typeName="INT")) public final int getMaximumLength()
public final UpdatableDBObject getPreUpdateState()
UpdatableDBObject
@GetterMethod(relvarNames="ATTRIBUTE", attributeDefs=@AttributeDef(attributeName="TYPENAME",requiresEscaping=false,typeName="NAME")) public final java.lang.String getTypeName()
public final void setAttributeName(java.lang.String attributeName)
attributeName
- The attributeName to set.@AttributeDef(attributeName="ATTRIBUTENAME", requiresEscaping=false, typeName="NAME") public final void setAttributeName(ValueBuffer attributeName)
attributeName
- The attributeName to set.public final void setMaximumLength(int maximumLength)
maximumLength
- The maximumLength to set.@AttributeDef(attributeName="MAXIMUMLENGTH", requiresEscaping=false, typeName="INT") public final void setMaximumLength(ValueBuffer maximumLength)
maximumLength
- The maximumLength to set.public final void setPreUpdateState()
UpdatableDBObject
public final void setTypeName(java.lang.String typeName)
typeName
- The typeName to set.@AttributeDef(attributeName="TYPENAME", requiresEscaping=false, typeName="NAME") public final void setTypeName(ValueBuffer typeName)
typeName
- The typeName to set.