org.xBaseJ.rmi
Class Field

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.xBaseJ.rmi.Field
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, FieldInterface

public class Field
extends java.rmi.server.UnicastRemoteObject
implements FieldInterface

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Fields inherited from interface org.xBaseJ.rmi.FieldInterface
serviceName
 
Constructor Summary
Field(org.xBaseJ.fields.Field inField)
          Constructor
 
Method Summary
 java.lang.String get()
          returns a Field value by its relative position
 int getDecimalPositionCount()
          returns a Field's decimal position as defined in database by its relative position
 int getLength()
          returns a Field Length as defined in database
 java.lang.String getName()
          returns a Field name by its relative position
 char getType()
          returns a Field type by its relative position
 void put(java.lang.String v)
          sets a Field value by its relative position
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Field

public Field(org.xBaseJ.fields.Field inField)
      throws java.rmi.RemoteException
Constructor

Throws:
java.rmi.RemoteException
Method Detail

getName

public java.lang.String getName()
                         throws java.rmi.RemoteException
returns a Field name by its relative position

Specified by:
getName in interface FieldInterface
Returns:
String
Throws:
org.xBaseJ.xBaseJException
java.rmi.RemoteException

getType

public char getType()
             throws java.rmi.RemoteException
returns a Field type by its relative position

Specified by:
getType in interface FieldInterface
Returns:
char
Throws:
org.xBaseJ.xBaseJException
java.rmi.RemoteException

getLength

public int getLength()
              throws java.rmi.RemoteException
returns a Field Length as defined in database

Specified by:
getLength in interface FieldInterface
Returns:
int
Throws:
java.rmi.RemoteException

getDecimalPositionCount

public int getDecimalPositionCount()
                            throws java.rmi.RemoteException
returns a Field's decimal position as defined in database by its relative position

Specified by:
getDecimalPositionCount in interface FieldInterface
Returns:
int - the number of decimal positions for numeric fields, zero returned otherwise
Throws:
java.rmi.RemoteException

get

public java.lang.String get()
                     throws java.rmi.RemoteException
returns a Field value by its relative position

Specified by:
get in interface FieldInterface
Returns:
String
Throws:
org.xBaseJ.xBaseJException
java.rmi.RemoteException

put

public void put(java.lang.String v)
         throws java.rmi.RemoteException
sets a Field value by its relative position

Specified by:
put in interface FieldInterface
Parameters:
v - Field value
Throws:
org.xBaseJ.xBaseJException
java.rmi.RemoteException