com.sap.ip.me.api.smartsync
Class BasisFieldType

java.lang.Object
  extended bycom.sap.ip.me.api.smartsync.BasisFieldType

public final class BasisFieldType
extends java.lang.Object

An enumeration of possible basis field types for SmartSync. Each field type has a backend representation as well as a client representation.

Author:
SAP
See Also:
FieldDescriptor

Field Summary
static BasisFieldType C
          A field type for fixed length characters; represented in the client as java.lang.String.
static BasisFieldType D
          A field type for date; represented in the client as Calendar when using Mobile Engine 2.1 API (@link Row#getFieldValue(FieldDescriptor) Date when using Mobile Infrastructure 2.5 API Field.getValue()
static BasisFieldType N
          A field type for numeric characters; represented in the client as String when using Mobile Engine 2.1 API Row.getFieldValue(FieldDescriptor) BigInteger when using Mobile Infrastructure 2.5 APIField.getValue()
Avoid field with a total length greater than 18 digits, this decreases performance.
static BasisFieldType P
          A field type for packet; represented in the client as FixedDecimal when using Mobile Engine 2.1 API Row.getFieldValue(FieldDescriptor) BigDecimal when using Mobile Infrastructure 2.5 API Field.getValue() Avoid field with a total length greater than 18 digits, this decreases performance.
static BasisFieldType T
          A field type for time; represented in the client as Calendar when using Mobile Engine 2.1 API (@link Row#getFieldValue(FieldDescriptor) Time when using Mobile Infrastructure 2.5 API {(@link Field#getValue()}
 
Method Summary
static BasisFieldType forString(java.lang.String fieldStringRep)
          Returns a BasisFieldType instance for the specified String representation of the field.
 java.lang.String getBackendRepresentation()
          Returns the backend representation; either one of "C", "D" , "N" , "P", "T".
 java.lang.Class getClientRepresentation()
          Returns the client representation class of this BasisFieldType..
 AttributeType getPersistenceRepresentation()
          Returns the persistence representation type of this BasisFieldType.
 java.lang.String toString()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

C

public static BasisFieldType C
A field type for fixed length characters; represented in the client as java.lang.String.


D

public static BasisFieldType D
A field type for date; represented in the client as


P

public static BasisFieldType P
A field type for packet; represented in the client as Avoid field with a total length greater than 18 digits, this decreases performance.


N

public static BasisFieldType N
A field type for numeric characters; represented in the client as
Avoid field with a total length greater than 18 digits, this decreases performance.


T

public static BasisFieldType T
A field type for time; represented in the client as

Method Detail

forString

public static BasisFieldType forString(java.lang.String fieldStringRep)
Returns a BasisFieldType instance for the specified String representation of the field.

Parameters:
fieldStringRep - the string representation of the field; should be one of the following "C", "D" , "N" , "P", "T", "B".
Returns:
a BasisFieldType instance for the specified String representation or null if the specified string is not on the list.

getBackendRepresentation

public java.lang.String getBackendRepresentation()
Returns the backend representation; either one of "C", "D" , "N" , "P", "T".

Returns:
the backend representation in string

getClientRepresentation

public java.lang.Class getClientRepresentation()
Returns the client representation class of this BasisFieldType..

Returns:
the client representation class

getPersistenceRepresentation

public AttributeType getPersistenceRepresentation()
Returns the persistence representation type of this BasisFieldType.

Returns:
the persistence representation type of this BasisFieldType.
See Also:
AttributeType

toString

public java.lang.String toString()
Description of the Method

Returns:
Description of the Return Value


Copyright © 2005 SAP AG. All Rights Reserved.