@Relvars(relvarNames="NEWATTRIBUTEDEFAULTVALUE") public final class NewAttributeDefaultValue extends AbstractUpdatableDBObject
Constructor and Description |
---|
NewAttributeDefaultValue() |
NewAttributeDefaultValue(java.lang.String relvarName,
java.lang.String attributeName,
java.lang.String expression) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributeName()
Gets The [name of the] new attribute
|
java.lang.String |
getExpressionText()
Gets expression
|
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 |
getRelvarName()
Gets relvarName
|
void |
setAttributeName(java.lang.String attributeName)
Sets The [name of the] new attribute
|
void |
setAttributeName(ValueBuffer attributeName)
Sets The [name of the] new attribute
|
void |
setExpressionText(java.lang.String expressionText)
Sets expression
|
void |
setExpressionText(ValueBuffer expressionText)
Sets expression
|
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 |
setRelvarName(java.lang.String relvarName)
Sets The [name of the] relvar to which a new attribute is being added
|
void |
setRelvarName(ValueBuffer relvarName)
Sets The [name of the] relvar to which a new attribute is being added
|
dbUpdateCommand, dbUpdateCommand, dbUpdateCommand
dbAddCommand, dbAddCommand, dbAddCommand, dbAddCommandAll, dbAssertCommand, dbAssertCommand, dbAssertCommand, dbAssertCommandAll, dbDeleteCommand, dbDeleteCommand, dbDeleteCommand, dbDeleteCommandAll, dbUnAssertCommand, dbUnAssertCommand, dbUnAssertCommand, dbUnAssertCommandAll
public NewAttributeDefaultValue()
public NewAttributeDefaultValue(java.lang.String relvarName, java.lang.String attributeName, java.lang.String expression)
relvarName
- The [name of the] relvar to which a new attribute is being addedattributeName
- The [name of the] new attributeexpression
- The expression for computing the value to be registered for the new attribute of the given name, in existing tuples of the relvar with the given name@GetterMethod(attributeDefs=@AttributeDef(attributeName="ATTRIBUTENAME",requiresEscaping=false,typeName="NAME"), relvarNames="NEWATTRIBUTEDEFAULTVALUE") public final java.lang.String getAttributeName()
@GetterMethod(attributeDefs=@AttributeDef(attributeName="SP_EXPRESSION",requiresEscaping=true,typeName="STRING"), relvarNames="NEWATTRIBUTEDEFAULTVALUE") public final java.lang.String getExpressionText()
public final UpdatableDBObject getPreUpdateState()
UpdatableDBObject
@GetterMethod(attributeDefs=@AttributeDef(attributeName="RELVARNAME",requiresEscaping=false,typeName="NAME"), relvarNames="NEWATTRIBUTEDEFAULTVALUE") public final java.lang.String getRelvarName()
public final void setAttributeName(java.lang.String attributeName)
attributeName
- The [name of the] new attribute@AttributeDef(attributeName="ATTRIBUTENAME", requiresEscaping=false, typeName="NAME") public final void setAttributeName(ValueBuffer attributeName)
attributeName
- The [name of the] new attributepublic final void setExpressionText(java.lang.String expressionText)
expressionText
- The expression to set.@AttributeDef(attributeName="SP_EXPRESSION", requiresEscaping=true, typeName="STRING") public final void setExpressionText(ValueBuffer expressionText)
expressionText
- The expression to set.public final void setPreUpdateState()
UpdatableDBObject
public final void setRelvarName(java.lang.String relvarName)
relvarName
- The [name of the] relvar to which a new attribute is being added@AttributeDef(attributeName="RELVARNAME", requiresEscaping=false, typeName="NAME") public final void setRelvarName(ValueBuffer relvarName)
relvarName
- The [name of the] relvar to which a new attribute is being added