org.mmbase.bridge.mock
Class MockField

java.lang.Object
  extended by org.mmbase.core.AbstractDescriptor
      extended by org.mmbase.core.AbstractField
          extended by org.mmbase.bridge.util.DataTypeField
              extended by org.mmbase.bridge.mock.MockField
All Implemented Interfaces:
Cloneable, Comparable<Field>, Descriptor, Field, PublicCloneable<AbstractDescriptor>

public class MockField
extends DataTypeField

Since:
MMBase-1.9.2
Version:
$Id: MockField.java 39795 2009-11-18 21:44:32Z michiel $
Author:
Michiel Meeuwissen
To Do:
EXPERIMENTAL

Field Summary
 
Fields inherited from class org.mmbase.bridge.util.DataTypeField
field, nodeManager
 
Fields inherited from class org.mmbase.core.AbstractField
dataType, listItemType, readOnly, state, type
 
Fields inherited from class org.mmbase.core.AbstractDescriptor
description, guiName, key
 
Fields inherited from interface org.mmbase.bridge.Field
STATE_PERSISTENT, STATE_SYSTEM, STATE_SYSTEM_VIRTUAL, STATE_UNKNOWN, STATE_VIRTUAL, TYPE_BINARY, TYPE_BOOLEAN, TYPE_BYTE, TYPE_DATETIME, TYPE_DECIMAL, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INTEGER, TYPE_LIST, TYPE_LONG, TYPE_NODE, TYPE_STRING, TYPE_UNKNOWN, TYPE_XML
 
Constructor Summary
MockField(Field f, DataType dt)
           
MockField(NodeManager nm, Field f)
           
MockField(String n, NodeManager nm, DataType dt)
           
 
Method Summary
 int getEditPosition()
          Retrieve the position of the field when editing.
 int getListPosition()
          Retrieve the position of the field when listing.
 int getSearchPosition()
          Retrieve the position of the field when searching.
 int getStoragePosition()
          Retrieve the position of the field in the database table.
 boolean isReadOnly()
          Returns whether a field is a read only.
 
Methods inherited from class org.mmbase.bridge.util.DataTypeField
getGUIType, getMaxLength, getNodeManager, validate
 
Methods inherited from class org.mmbase.core.AbstractField
clone, clone, compareTo, equals, getDataType, getListItemType, getState, getType, hashCode, hasIndex, isRequired, isTemporary, isUnique, isVirtual, setDataType, setState, toString
 
Methods inherited from class org.mmbase.core.AbstractDescriptor
clone, getDefaultLocale, getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName, setLocalizedDescription, setLocalizedGUIName
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.mmbase.bridge.Descriptor
getDescription, getDescription, getGUIName, getGUIName, getLocalizedDescription, getLocalizedGUIName, getName, setDescription, setDescription, setGUIName, setGUIName
 

Constructor Detail

MockField

public MockField(NodeManager nm,
                 Field f)

MockField

public MockField(Field f,
                 DataType dt)

MockField

public MockField(String n,
                 NodeManager nm,
                 DataType dt)
Method Detail

getSearchPosition

public int getSearchPosition()
Description copied from interface: Field
Retrieve the position of the field when searching. A value of -1 indicates the field is unavailable during search.

Specified by:
getSearchPosition in interface Field
Overrides:
getSearchPosition in class DataTypeField
Returns:
position of the field when searching

getListPosition

public int getListPosition()
Description copied from interface: Field
Retrieve the position of the field when listing. A value of -1 indicates the field is unavailable in a list.

Specified by:
getListPosition in interface Field
Overrides:
getListPosition in class DataTypeField
Returns:
position of the field when listing

getEditPosition

public int getEditPosition()
Description copied from interface: Field
Retrieve the position of the field when editing. A value of -1 indicates the field cannot be edited.

Specified by:
getEditPosition in interface Field
Overrides:
getEditPosition in class DataTypeField
Returns:
position of the field when editing

getStoragePosition

public int getStoragePosition()
Description copied from interface: Field
Retrieve the position of the field in the database table.

Specified by:
getStoragePosition in interface Field
Overrides:
getStoragePosition in class DataTypeField
Returns:
position in the database table

isReadOnly

public boolean isReadOnly()
Description copied from class: AbstractField
Returns whether a field is a read only.

Specified by:
isReadOnly in interface Field
Overrides:
isReadOnly in class DataTypeField
Returns:
true when read only
See Also:
Field.isVirtual()


MMBase 2.0-SNAPSHOT - null