public static class EventHandlerBase.DbField
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
com.archibus.db.ViewField.Immutable |
fieldDef
Field definition that defines precise field formatting.
|
java.lang.String |
name
Name that the field should have as a the JSON object property.
|
Constructor and Description |
---|
DbField(java.lang.String name,
java.lang.String javaClass,
EventHandlerContext context)
Constructor that takes the Java class name.
|
DbField(java.lang.String name,
com.archibus.db.ViewField.Immutable fieldDef)
Constructor that takes the field definition.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatValue(EventHandlerContext context,
java.lang.Object value)
Formats specified value for presentation layer.
|
java.lang.Object |
parseSqlValue(EventHandlerContext context,
java.lang.String value)
Parses value obtained from the database.
|
public final java.lang.String name
public final com.archibus.db.ViewField.Immutable fieldDef
public DbField(java.lang.String name, java.lang.String javaClass, EventHandlerContext context)
name
- Description of the ParameterjavaClass
- Description of the Parameterpublic DbField(java.lang.String name, com.archibus.db.ViewField.Immutable fieldDef)
name
- Description of the ParameterfieldDef
- Description of the Parameterpublic java.lang.Object parseSqlValue(EventHandlerContext context, java.lang.String value)
context
- value
- public java.lang.String formatValue(EventHandlerContext context, java.lang.Object value)
context
- value
- localizedFormat
- Description of the Parameter