public class WrappedField
extends java.lang.Object
JotyTypes
class.
There is no specific reasons for this class has been chosen to be polymorphic itself instead of having a polymorphic dynasty implemented from a root (even abstract) class, a part from chance of keeping under a common insight all the different behaviours in any different context of elaboration: that is, in representing the Joty data type container a feature oriented approach has been preferred to an object oriented one. The waste of memory derived from this approach is contained with an acceptable limit.
The class provides various methods for assigning, copying, exchanging the
inner values with fields of JotyResultSet instances, methods for rendering in a
textual form the value hosted, depending on the locale and on the
configuration data (for instance see the JotyDate
class}) and, if the
rendering is for use in sql expressions, even on the dbms.
Participates in the paradigm of the Joty framework: all the instances of this
class that must get their values generated on the server (at the end of Joty
transaction) are marked as "delayed" my means of the m_delayed
member
variable.
The attributes name and type are held internally or are referenced externally, typically in buffering, either located in a descriptor of a set of fields or in another WrappedField instance.
Modifier and Type | Class and Description |
---|---|
static interface |
WrappedField.GetWFieldInterface |
static interface |
WrappedField.IdentityRenderer |
Modifier and Type | Field and Description |
---|---|
int |
m_dataType |
JotyDate |
m_dateVal |
java.lang.String |
m_dbFieldName |
double |
m_dblVal |
boolean |
m_delayed
It is used typically for integer types (_int, _long, _dbDrivenInteger), if
true the value of the instance is waiting to get its value returned from
the Joty Server.
|
float |
m_fltVal |
WrappedField.GetWFieldInterface |
m_GetWFieldImplementor |
int |
m_idx |
boolean |
m_isCurrency |
int |
m_iVal |
JotyApplication |
m_jotyApplication |
int |
m_jotyTypeFromDb |
int |
m_len |
long |
m_lVal |
WrappedField |
m_metaDataWField |
int |
m_posIndexAsReturningValue
Keeps its value from a call to
JotyApplication.returnedValuesAvailablePos() |
byte[] |
m_previewBytes |
java.lang.String |
m_strVal |
Constructor and Description |
---|
WrappedField(JotyApplication jotyApplication) |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkType(int definedType,
int typeID) |
void |
clear() |
void |
clear(boolean overAll) |
void |
copyWField(WrappedField source) |
void |
copyWField(WrappedField source,
boolean withDbIdentity) |
void |
copyWField(WrappedField source,
boolean withDbIdentity,
boolean storeSource) |
int |
dataType() |
int |
dataTypeFromMetadataSource() |
JotyDate |
dateVal() |
java.lang.String |
dbFieldName() |
java.lang.String |
dbFieldNameFromMetadataSource() |
boolean |
dbFieldSpecified() |
boolean |
dbFieldSpecifiedFromMetadataSource() |
double |
doubleVal() |
float |
floatVal() |
java.lang.String |
formatWrap(java.lang.String input) |
long |
getInteger() |
void |
getValFrom(WrappedField source) |
void |
getWField(JotyResultSet rs) |
long |
integerVal() |
int |
intVal() |
protected void |
invalidAssignementMsg() |
boolean |
isEmpty() |
boolean |
isNull() |
java.lang.String |
render() |
java.lang.String |
render(boolean forcedNoDecimal) |
java.lang.String |
render(boolean forcedNoDecimal,
boolean forSqlExpr) |
int |
resultSetDataType() |
java.lang.String |
resultSetFieldName() |
void |
setData(java.lang.String gotText,
NumberFormatter numberFormatter) |
void |
setInteger(long val) |
void |
setToNull(boolean truth) |
void |
setVal(double dblVal) |
void |
setVal(float fltVal) |
void |
setVal(int iVal) |
void |
setVal(JotyDate dtVal) |
void |
setVal(long lVal) |
void |
setVal(java.lang.String strVal) |
void |
setValFromDbSubmittedExpr(java.lang.String strVal) |
void |
setWField(JotyResultSet rs) |
void |
setWField(JotyResultSet rs,
java.lang.String relatedField) |
java.lang.String |
strVal() |
java.lang.String |
toString() |
java.lang.String |
toString(boolean ForcedNoDecimal) |
void |
typeCheck() |
public int m_iVal
public long m_lVal
public float m_fltVal
public double m_dblVal
public java.lang.String m_strVal
public JotyDate m_dateVal
public byte[] m_previewBytes
public int m_len
public java.lang.String m_dbFieldName
public int m_idx
public WrappedField m_metaDataWField
public boolean m_isCurrency
public int m_dataType
public WrappedField.GetWFieldInterface m_GetWFieldImplementor
public int m_jotyTypeFromDb
public boolean m_delayed
m_posIndexAsReturningValue
member and passes it to the JotyResultSet instance, responsible to communicate
with the WebClient
instance .JotyResultSet
,
FieldDescriptor
,
m_posIndexAsReturningValue
public int m_posIndexAsReturningValue
JotyApplication.returnedValuesAvailablePos()
public JotyApplication m_jotyApplication
public WrappedField(JotyApplication jotyApplication)
public static boolean checkType(int definedType, int typeID)
public void clear()
public void clear(boolean overAll)
public void copyWField(WrappedField source)
public void copyWField(WrappedField source, boolean withDbIdentity)
public void copyWField(WrappedField source, boolean withDbIdentity, boolean storeSource)
public JotyDate dateVal()
public java.lang.String dbFieldName()
public java.lang.String dbFieldNameFromMetadataSource()
public int dataType()
public int dataTypeFromMetadataSource()
public boolean dbFieldSpecified()
public boolean dbFieldSpecifiedFromMetadataSource()
public double doubleVal()
public float floatVal()
public java.lang.String formatWrap(java.lang.String input)
public long getInteger()
public void getValFrom(WrappedField source)
public void getWField(JotyResultSet rs)
public long integerVal()
public int intVal()
protected void invalidAssignementMsg()
public boolean isEmpty()
public boolean isNull()
public java.lang.String render()
public java.lang.String render(boolean forcedNoDecimal)
public java.lang.String render(boolean forcedNoDecimal, boolean forSqlExpr)
public int resultSetDataType()
public java.lang.String resultSetFieldName()
public void setData(java.lang.String gotText, NumberFormatter numberFormatter)
public void setInteger(long val)
public void setToNull(boolean truth)
public void setVal(double dblVal)
public void setVal(float fltVal)
public void setVal(int iVal)
public void setVal(JotyDate dtVal)
public void setVal(long lVal)
public void setVal(java.lang.String strVal)
public void setValFromDbSubmittedExpr(java.lang.String strVal)
public void setWField(JotyResultSet rs)
public void setWField(JotyResultSet rs, java.lang.String relatedField)
public java.lang.String strVal()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toString(boolean ForcedNoDecimal)
public void typeCheck()