Java Doc for CoreField.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
         org.mmbase.core.CoreField

All known Subclasses:   org.mmbase.module.corebuilders.FieldDefs,
CoreField
public class CoreField extends AbstractField implements Field,Storable,Cloneable(Code)

since:
   MMBase-1.8



Constructor Summary
public  CoreField(Field field)
     Creates a CoreField object based on a more generic 'Field'.
protected  CoreField(String name, int type, int listItemType, int state, DataType dataType)
    
protected  CoreField(String name, CoreField coreField)
     Copy constructor.

Method Summary
public  Objectclone()
    
public  Objectclone(String name)
    
public  intcompareTo(Field o)
    
public  booleanequals(Object o)
    
public  voidfinish()
    
public  intgetEditPosition()
     Retrieve the position of the field when editing.
public  StringgetGUIType()
     Retrieve the GUI type of the field.
public  intgetListPosition()
     Retrieve the position of the field when listing.
public  intgetMaxLength()
     Returns the (maximum) size of this field, as determined by the storage layer.
public  NodeManagergetNodeManager()
    
public  MMObjectBuildergetParent()
    
public  intgetSearchPosition()
     Retrieve the position of the field when searching.
public  ObjectgetStorageIdentifier()
    
public  intgetStoragePosition()
     Retrieve the position of the field in the database table.
public  intgetStorageType()
    
public  inthashCode()
    
public  booleaninStorage()
    
public  booleanisNotNull()
    
public  voidrewrite()
    
public  voidsetDataType(DataType dataType)
    
public  voidsetEditPosition(int i)
     Set the position of the field when editing.
public  voidsetListItemType(int listItemType)
    
public  voidsetListPosition(int i)
     Set the position of the field when listing.
public  voidsetMaxLength(int size)
    
public  voidsetNotNull(boolean nl)
    
public  voidsetParent(MMObjectBuilder parent)
    
public  voidsetReadOnly(boolean readOnly)
    
public  voidsetSearchPosition(int i)
     Set the position of the field when searching.
public  voidsetState(int state)
    
public  voidsetStoragePosition(int i)
     Set the position of the field in the database table.
public  voidsetStorageType(int type)
    
public  voidsetType(int type)
    
public  voidsetUnique(boolean unique)
    
public  booleanstorageEquals(CoreField f)
    
public  StringtoString()
    
public  Collection<String>validate(Object value)
    


Constructor Detail
CoreField
public CoreField(Field field)(Code)
Creates a CoreField object based on a more generic 'Field'.
since:
   MMBase-1.8.1



CoreField
protected CoreField(String name, int type, int listItemType, int state, DataType dataType)(Code)
Create a core object
Parameters:
  name - the name of the data type
Parameters:
  dataType - the data type for this field



CoreField
protected CoreField(String name, CoreField coreField)(Code)
Copy constructor.
Parameters:
  name - the name of the data type
Parameters:
  coreField -




Method Detail
clone
public Object clone()(Code)



clone
public Object clone(String name)(Code)



compareTo
public int compareTo(Field o)(Code)
Compare this object to the supplied one (should be a CoreField)
Parameters:
  o - the object to compare to -1,1, or 0 according to wether this object is smaller, greater, or equalto the supplied one.



equals
public boolean equals(Object o)(Code)

See Also:   java.lang.Object.equals(java.lang.Object)
since:
   MMBase-1.7



finish
public void finish()(Code)



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



getGUIType
public String getGUIType()(Code)
Retrieve the GUI type of the field.



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.



getMaxLength
public int getMaxLength()(Code)
Returns the (maximum) size of this field, as determined by the storage layer. 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 size of data this field can contain



getNodeManager
public NodeManager getNodeManager()(Code)



getParent
public MMObjectBuilder getParent()(Code)
Retrieves the parent builder for this field



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



getStorageIdentifier
public Object getStorageIdentifier() throws StorageException(Code)

since:
   MMBase 1.7



getStoragePosition
public int getStoragePosition()(Code)
Retrieve the position of the field in the database table.



getStorageType
public int getStorageType()(Code)



hashCode
public int hashCode()(Code)

See Also:   java.lang.Object.hashCode



inStorage
public boolean inStorage()(Code)



isNotNull
public boolean isNotNull()(Code)



rewrite
public void rewrite()(Code)



setDataType
public void setDataType(DataType dataType) throws IllegalArgumentException(Code)



setEditPosition
public void setEditPosition(int i)(Code)
Set the position of the field when editing.
See Also:   CoreField.getEditPosition



setListItemType
public void setListItemType(int listItemType)(Code)



setListPosition
public void setListPosition(int i)(Code)
Set the position of the field when listing.
See Also:   CoreField.getListPosition



setMaxLength
public void setMaxLength(int size)(Code)



setNotNull
public void setNotNull(boolean nl)(Code)



setParent
public void setParent(MMObjectBuilder parent)(Code)
Set the parent builder for this field
Parameters:
  parent - the parent builder



setReadOnly
public void setReadOnly(boolean readOnly)(Code)



setSearchPosition
public void setSearchPosition(int i)(Code)
Set the position of the field when searching.
See Also:   CoreField.getSearchPosition



setState
public void setState(int state)(Code)



setStoragePosition
public void setStoragePosition(int i)(Code)
Set the position of the field in the database table.



setStorageType
public void setStorageType(int type)(Code)



setType
public void setType(int type)(Code)



setUnique
public void setUnique(boolean unique)(Code)



storageEquals
public boolean storageEquals(CoreField f)(Code)
Whether this CoreField is equal to another for storage purposes (so, ignoring gui and documentation fields)
since:
   MMBase-1.7



toString
public String toString()(Code)



validate
public Collection<String> validate(Object value)(Code)



Fields inherited from org.mmbase.core.AbstractField
protected DataType<Object> dataType(Code)(Java Doc)
protected int listItemType(Code)(Java Doc)
protected boolean readOnly(Code)(Java Doc)
protected int state(Code)(Java Doc)
protected int type(Code)(Java Doc)

Methods inherited from org.mmbase.core.AbstractField
public Object clone()(Code)(Java Doc)
public Object clone(String name, boolean copyDataTypeForRewrite)(Code)(Java Doc)
public int compareTo(Field f)(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
public DataType<Object> getDataType()(Code)(Java Doc)
abstract public int getEditPosition()(Code)(Java Doc)
abstract public String getGUIType()(Code)(Java Doc)
public int getListItemType()(Code)(Java Doc)
abstract public int getListPosition()(Code)(Java Doc)
abstract public int getMaxLength()(Code)(Java Doc)
abstract public NodeManager getNodeManager()(Code)(Java Doc)
abstract public int getSearchPosition()(Code)(Java Doc)
public int getState()(Code)(Java Doc)
abstract public int getStoragePosition()(Code)(Java Doc)
public int getType()(Code)(Java Doc)
public boolean hasIndex()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean isReadOnly()(Code)(Java Doc)
public boolean isRequired()(Code)(Java Doc)
public boolean isTemporary()(Code)(Java Doc)
public boolean isUnique()(Code)(Java Doc)
public boolean isVirtual()(Code)(Java Doc)
public void setDataType(DataType<Object> dataType) throws IllegalArgumentException(Code)(Java Doc)
protected void setState(int state)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

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.