Java Doc for AbstractField.java in  » Database-ORM » MMBase » org » mmbase » core » 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.core 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.mmbase.core.AbstractDescriptor
      org.mmbase.core.AbstractField

All known Subclasses:   org.mmbase.core.CoreField,  org.mmbase.bridge.util.DataTypeField,  org.mmbase.bridge.implementation.BasicField,
AbstractField
abstract public class AbstractField extends AbstractDescriptor implements Field(Code)

author:
   Pierre van Rooden
author:
   Michiel Meeuwissen
since:
   MMBase-1.8
version:
   $Id: AbstractField.java,v 1.17 2008/02/16 22:13:53 nklasens Exp $


Field Summary
protected  DataType<Object>dataType
    
protected  intlistItemType
    
protected  booleanreadOnly
    
protected  intstate
    
protected  inttype
    

Constructor Summary
protected  AbstractField(String name, Field field)
     Create a field object based on another field.
protected  AbstractField(String name, Field field, boolean cloneDataForRewrite)
     Create a field object based on another field.
protected  AbstractField(String name, int type, int listItemType, int state, DataType<Object> dataType)
    

Method Summary
public  Objectclone()
    
public  Objectclone(String name, boolean copyDataTypeForRewrite)
    
public  intcompareTo(Field f)
    
public  booleanequals(Object o)
     Whether data type equals to other data type.
public  DataType<Object>getDataType()
    
abstract public  intgetEditPosition()
    
abstract public  StringgetGUIType()
    
public  intgetListItemType()
    
abstract public  intgetListPosition()
    
abstract public  intgetMaxLength()
    
abstract public  NodeManagergetNodeManager()
    
abstract public  intgetSearchPosition()
    
public  intgetState()
    
abstract public  intgetStoragePosition()
    
public  intgetType()
    
public  booleanhasIndex()
    
public  inthashCode()
    
public  booleanisReadOnly()
     Returns whether a field is a read only.
public  booleanisRequired()
    
public  booleanisTemporary()
     Returns whether a field is a temporary field.
public  booleanisUnique()
     Retrieve whether the field is a key and thus need be unique.
public  booleanisVirtual()
    
public  voidsetDataType(DataType<Object> dataType)
     Sets the datatype of a field.
protected  voidsetState(int state)
    
public  StringtoString()
     Returns a description for this field.

Field Detail
dataType
protected DataType<Object> dataType(Code)



listItemType
protected int listItemType(Code)



readOnly
protected boolean readOnly(Code)



state
protected int state(Code)



type
protected int type(Code)




Constructor Detail
AbstractField
protected AbstractField(String name, Field field)(Code)
Create a field object based on another field. The newly created field shared the datatype of it's parent (which means that any changes to the datatype affects both fields).
Parameters:
  name - the name of the field
Parameters:
  field - the parent field



AbstractField
protected AbstractField(String name, Field field, boolean cloneDataForRewrite)(Code)
Create a field object based on another field.
Parameters:
  name - the name of the field
Parameters:
  field - the parent field
Parameters:
  cloneDataForRewrite - determines whether the datatype of the parent field is copied (which means it can be alteredwithout affecting the original datatype)



AbstractField
protected AbstractField(String name, int type, int listItemType, int state, DataType<Object> dataType)(Code)
Create a field object
Parameters:
  name - the name of the field
Parameters:
  type - the identifier for the MMBase base type for this field
Parameters:
  listItemType - If the type of this field is TYPE_LIST, then this is the MMBase base type for the list elements.
Parameters:
  state - identifier (virtual, persistent, system, systemvirtual)
Parameters:
  dataType - the data type of the field




Method Detail
clone
public Object clone()(Code)



clone
public Object clone(String name, boolean copyDataTypeForRewrite)(Code)



compareTo
public int compareTo(Field f)(Code)



equals
public boolean equals(Object o)(Code)
Whether data type equals to other data type. Only key and type are considered. DefaultValue and required properties are only 'utilities'.
Parameters:
  o - the reference object with which to compare. true if o is a DataType of which key and type equal to this' key and type.



getDataType
public DataType<Object> getDataType()(Code)



getEditPosition
abstract public int getEditPosition()(Code)



getGUIType
abstract public String getGUIType()(Code)



getListItemType
public int getListItemType()(Code)



getListPosition
abstract public int getListPosition()(Code)



getMaxLength
abstract public int getMaxLength()(Code)



getNodeManager
abstract public NodeManager getNodeManager()(Code)



getSearchPosition
abstract public int getSearchPosition()(Code)



getState
public int getState()(Code)



getStoragePosition
abstract public int getStoragePosition()(Code)



getType
public int getType()(Code)



hasIndex
public boolean hasIndex()(Code)



hashCode
public int hashCode()(Code)



isReadOnly
public boolean isReadOnly()(Code)
Returns whether a field is a read only. true when read only
See Also:   org.mmbase.bridge.Field.isVirtual



isRequired
public boolean isRequired()(Code)

See Also:   org.mmbase.bridge.Field.isRequired



isTemporary
public boolean isTemporary()(Code)
Returns whether a field is a temporary field. Temporary fields hold data needed by a builder to facilitate certain functionality, such as holding node references in a transaction. Temporary fields are never persistent and should normally be ignored. true when temporary
since:
   MMBase-1.8



isUnique
public boolean isUnique()(Code)
Retrieve whether the field is a key and thus need be unique. true when field is unique



isVirtual
public boolean isVirtual()(Code)

See Also:   org.mmbase.bridge.Field.isVirtual



setDataType
public void setDataType(DataType<Object> dataType) throws IllegalArgumentException(Code)
Sets the datatype of a field. It is possible that the datatype of a field is different from the actual field type.
Parameters:
  dataType -
throws:
  IllegalArgumentException -
See Also:   AbstractField.getType



setState
protected void setState(int state)(Code)



toString
public String toString()(Code)
Returns a description for this field. a string representation of the object.



Fields inherited from org.mmbase.core.AbstractDescriptor
protected LocalizedString description(Code)(Java Doc)
protected LocalizedString guiName(Code)(Java Doc)
protected String key(Code)(Java Doc)

Methods inherited from org.mmbase.core.AbstractDescriptor
public Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public Object clone(String name) throws CloneNotSupportedException(Code)(Java Doc)
protected Locale getDefaultLocale()(Code)(Java Doc)
public String getDescription(Locale locale)(Code)(Java Doc)
public String getDescription()(Code)(Java Doc)
public String getGUIName(Locale locale)(Code)(Java Doc)
public String getGUIName()(Code)(Java Doc)
public LocalizedString getLocalizedDescription()(Code)(Java Doc)
public LocalizedString getLocalizedGUIName()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public void setDescription(String desc, Locale locale)(Code)(Java Doc)
public void setDescription(String desc)(Code)(Java Doc)
public void setGUIName(String g, Locale locale)(Code)(Java Doc)
public void setGUIName(String g)(Code)(Java Doc)
protected void setLocalizedDescription(LocalizedString description)(Code)(Java Doc)
protected void setLocalizedGUIName(LocalizedString value)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

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