org.stanwood.media.database
Class Field

java.lang.Object
  extended by org.stanwood.media.database.Field

public class Field
extends java.lang.Object

This is used to represent a field in a database table. It is mainly used for inserting rows into tables.


Constructor Summary
Field(java.lang.String key, java.lang.Object value)
          Used to construct the filed.
 
Method Summary
 java.lang.String getKey()
          Used to get a the key of the field in the table
 java.lang.Object getValue()
          Used to get the value of the field
 void setKey(java.lang.String key)
          Used to set the key of the field
 void setValue(java.lang.Object value)
          USed to set the value of the field
 java.lang.String toString()
          Print out the fields key and value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Field

public Field(java.lang.String key,
             java.lang.Object value)
Used to construct the filed.

Parameters:
key - The key of the filed
value - The value of the filed
Method Detail

getKey

public java.lang.String getKey()
Used to get a the key of the field in the table

Returns:
The key of the field

setKey

public void setKey(java.lang.String key)
Used to set the key of the field

Parameters:
key - The key of the field

getValue

public java.lang.Object getValue()
Used to get the value of the field

Returns:
The value of the field

setValue

public void setValue(java.lang.Object value)
USed to set the value of the field

Parameters:
value - The value of the field

toString

public java.lang.String toString()
Print out the fields key and value

Overrides:
toString in class java.lang.Object
Returns:
the key and value