Java Doc for Field.java in  » Database-ORM » MMBase » org » mmbase » bridge » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database ORM » MMBase » org.mmbase.bridge 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.mmbase.bridge.Field

All known Subclasses:   org.mmbase.bridge.util.FieldWrapper,  org.mmbase.core.CoreField,  org.mmbase.bridge.implementation.BasicField,  org.mmbase.core.AbstractField,
Field
public interface Field extends Descriptor,Comparable<Field>(Code)
This interface represents a node's field type information object.
author:
   Pierre van Rooden
author:
   Jaco de Groot
version:
   $Id: Field.java,v 1.37 2007/02/10 15:47:42 nklasens Exp $


Field Summary
final public static  intSTATE_PERSISTENT
     A field's state is 'persistent' if it is persistent in storage, and editable.
final public static  intSTATE_SYSTEM
     A field's state is 'system' if it is persistent in storage, but not editable by users.
final public static  intSTATE_SYSTEM_VIRTUAL
     A field's state is 'system virtual' if it is not persistent in storage, nor editable by users.
final public static  intSTATE_UNKNOWN
     The field's state when it is not (yet) known.
final public static  intSTATE_VIRTUAL
     A field's state is 'virtual' if it is not persistent in storage.
final public static  intTYPE_BINARY
    
final public static  intTYPE_BOOLEAN
    
final public static  intTYPE_BYTE
    
final public static  intTYPE_DATETIME
    
final public static  intTYPE_DOUBLE
    
final public static  intTYPE_FLOAT
    
final public static  intTYPE_INTEGER
    
final public static  intTYPE_LIST
    
final public static  intTYPE_LONG
    
final public static  intTYPE_NODE
    
final public static  intTYPE_STRING
    
final public static  intTYPE_UNKNOWN
    
final public static  intTYPE_XML
    


Method Summary
public  DataTypegetDataType()
     Returns the data type this field contains.
public  intgetEditPosition()
     Retrieve the position of the field when editing.
public  StringgetGUIType()
     Returns the GUI name for the data type this field contains.
public  intgetListItemType()
     If the type of this field is TYPE_LIST, this method returns the MMBase base type for the list elements. This represents one of field type constants.
public  intgetListPosition()
     Retrieve the position of the field when listing.
public  intgetMaxLength()
     Returns the maximum length of data this field can contain.
public  NodeManagergetNodeManager()
     Returns the node manager this field belongs to.
public  intgetSearchPosition()
     Retrieve the position of the field when searching.
public  intgetState()
     Returns this field's state identifier (virtual, persistent, system, systemvirtual).
public  intgetStoragePosition()
     Retrieve the position of the field in the database table.
public  intgetType()
     Returns the identifier for the MMBase base type for this field. This represents one of field type constants.
public  booleanhasIndex()
     Returns whether this field is a key field, meaning that the storage layer should define an index for it, allowing optimization with search and sort actions.
public  booleanisReadOnly()
     Returns whether a field is 'read only' - that is, a user cannot edit it.
public  booleanisRequired()
     Returns whether this field is required (should have content).
public  booleanisUnique()
     Returns whether this field is part of a unique key (a set of fields whose combined content should occur only once). Note that MMBase lets the storage layer handle this.
public  booleanisVirtual()
     A field's state is 'virtual' if it is not persistent in storage.
public  java.util.Collectionvalidate(Object value)
     Checks whether a given value is valid for this field.

Field Detail
STATE_PERSISTENT
final public static int STATE_PERSISTENT(Code)
A field's state is 'persistent' if it is persistent in storage, and editable.



STATE_SYSTEM
final public static int STATE_SYSTEM(Code)
A field's state is 'system' if it is persistent in storage, but not editable by users.



STATE_SYSTEM_VIRTUAL
final public static int STATE_SYSTEM_VIRTUAL(Code)
A field's state is 'system virtual' if it is not persistent in storage, nor editable by users.



STATE_UNKNOWN
final public static int STATE_UNKNOWN(Code)
The field's state when it is not (yet) known.



STATE_VIRTUAL
final public static int STATE_VIRTUAL(Code)
A field's state is 'virtual' if it is not persistent in storage.



TYPE_BINARY
final public static int TYPE_BINARY(Code)
MMBase base type identifier for the binary (byte[]) data type



TYPE_BOOLEAN
final public static int TYPE_BOOLEAN(Code)
MMBase base type identifier for the Boolean data type
since:
   MMBase-1.8



TYPE_BYTE
final public static int TYPE_BYTE(Code)
MMBase base type identifier for the binary (byte[]) data type Field.TYPE_BINARY



TYPE_DATETIME
final public static int TYPE_DATETIME(Code)
MMBase base type identifier for the Date data type
since:
   MMBase-1.8



TYPE_DOUBLE
final public static int TYPE_DOUBLE(Code)
MMBase base type identifier for the Double data type



TYPE_FLOAT
final public static int TYPE_FLOAT(Code)
MMBase base type identifier for the Float data type



TYPE_INTEGER
final public static int TYPE_INTEGER(Code)
MMBase base type identifier for the Integer data type



TYPE_LIST
final public static int TYPE_LIST(Code)
MMBase base type identifier for the List data type
since:
   MMBase-1.8



TYPE_LONG
final public static int TYPE_LONG(Code)
MMBase base type identifier for the Long data type



TYPE_NODE
final public static int TYPE_NODE(Code)
MMBase base type identifier for the Node data type



TYPE_STRING
final public static int TYPE_STRING(Code)
MMBase base type identifier for the String data type



TYPE_UNKNOWN
final public static int TYPE_UNKNOWN(Code)
MMBase base type identifier for data types whose type is unknown



TYPE_XML
final public static int TYPE_XML(Code)
MMBase base type identifier for the DOM Document data type





Method Detail
getDataType
public DataType getDataType()(Code)
Returns the data type this field contains. a DataType object describing the constraints on this field.
since:
   MMBase-1.8



getEditPosition
public int getEditPosition()(Code)
Retrieve the position of the field when editing. A value of -1 indicates the field cannot be edited.
since:
   MMBase-1.8



getGUIType
public String getGUIType()(Code)
Returns the GUI name for the data type this field contains. Field.getDataType DataType.getName
See Also:   Field.getDataType



getListItemType
public int getListItemType()(Code)
If the type of this field is TYPE_LIST, this method returns the MMBase base type for the list elements. This represents one of field type constants. This basic type determines how data is stored in MMBase. For any field types other that TYPE_LIST, this method returns TYPE_UNKNOWN. an int which identifies the base type



getListPosition
public int getListPosition()(Code)
Retrieve the position of the field when listing. A value of -1 indicates the field is unavailable in a list.
since:
   MMBase-1.8



getMaxLength
public int getMaxLength()(Code)
Returns the maximum length of data this field can contain. For example if a field contains characters the size indicates the maximum number of characters it can contain. If the field is a numeric field (such as an integer), the result is -1. the maximum length of data this field can contain



getNodeManager
public NodeManager getNodeManager()(Code)
Returns the node manager this field belongs to. the node manager this field belongs to



getSearchPosition
public int getSearchPosition()(Code)
Retrieve the position of the field when searching. A value of -1 indicates the field is unavailable during search.
since:
   MMBase-1.8



getState
public int getState()(Code)
Returns this field's state identifier (virtual, persistent, system, systemvirtual). an int which identifies the state of this field



getStoragePosition
public int getStoragePosition()(Code)
Retrieve the position of the field in the database table.
since:
   MMBase-1.8



getType
public int getType()(Code)
Returns the identifier for the MMBase base type for this field. This represents one of field type constants. This basic type determines how data is stored in MMBase. Note that it is possible that the datatype for a field (used for validation and in/out put) can be of a different basic type than how it is stored in the database. This shoudl not occur often, but is possible in some cases, such as when you use older clod models (which used INTEGER fields for dates). In general this should not prove a [problem - however you shoudl not assumeto know the classtype iof data of a field based on this method. To acquire the datatype's type, use getDataType.getBaseType() instead. an int which identifies the base type



hasIndex
public boolean hasIndex()(Code)
Returns whether this field is a key field, meaning that the storage layer should define an index for it, allowing optimization with search and sort actions. Note that MMBase lets the storage layer decide whether an index is actually defined. Some implementations or configurations may not do this. Note: Currently, this method only returns true if the field is the primary key (number field) or a Node field. true if the field has a key defined
since:
   MMBase-1.7



isReadOnly
public boolean isReadOnly()(Code)
Returns whether a field is 'read only' - that is, a user cannot edit it. In general, fields with state SYSTEM or SYSTEM_VIRTUAL are defined as read only, while others are not. It is possible to override this behaviour per field. true when a field is read only
since:
   MMBase-1.8



isRequired
public boolean isRequired()(Code)
Returns whether this field is required (should have content). Note that MMBase does not generally enforce required fields to be filled - If not provided, a default value (generally an empty string or the integer value -1) is filled in by the system. As such, isRequired will mostly be used as an indicator for (generic) editors. true if the field is required
since:
   MMBase-1.6



isUnique
public boolean isUnique()(Code)
Returns whether this field is part of a unique key (a set of fields whose combined content should occur only once). Note that MMBase lets the storage layer handle this. If your storage implementation or configuration does not support this the uniqueness may not be enforced. true if the field is part of a unique key
since:
   MMBase-1.6



isVirtual
public boolean isVirtual()(Code)
A field's state is 'virtual' if it is not persistent in storage. true when a field is virtual
since:
   MMBase-1.8



validate
public java.util.Collection validate(Object value)(Code)
Checks whether a given value is valid for this field. Collection of error-strings (describing the problem) in the current locale, or an empty collection if the value is ok.
since:
   MMBase-1.8



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.