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


org.mmbase.core.CoreField
   org.mmbase.module.corebuilders.FieldDefs

FieldDefs
public class FieldDefs extends org.mmbase.core.CoreField (Code)
One of the core objects. It is not itself a builder, but is used by builders. Defines one field of a object type / builder.
author:
   Daniel Ockeloen
author:
   Hans Speijer
author:
   Pierre van Rooden
version:
   $Id: FieldDefs.java,v 1.60 2008/02/03 17:33:57 nklasens Exp $
See Also:   org.mmbase.bridge.FieldCoreField

Inner Class :protected class LocaleToStringMap extends AbstractMap

Field Summary
final public static  intDBSTATE_PERSISTENT
    
final public static  intDBSTATE_SYSTEM
    
final public static  intDBSTATE_UNKNOWN
    
final public static  intDBSTATE_VIRTUAL
    
final public static  intORDER_CREATE
    
final public static  intORDER_EDIT
    
final public static  intORDER_LIST
    
final public static  intORDER_SEARCH
    

Constructor Summary
public  FieldDefs(String name, int type, int listItemType, int state, DataType<? extends Object> dataType)
    
public  FieldDefs(String guiName, String guiType, int searchPos, int listPos, String name, int type)
     Constructor for FieldDefs with partially initialized fields.
Parameters:
  guiName - the default GUIName for a field
Parameters:
  guiType - the GUI type (i.e.
public  FieldDefs(String guiName, String guiType, int searchPos, int listPos, String name, int type, int guiPos, int state)
     Constructor for FieldDefs with partially initialized fields.
Parameters:
  guiName - the default GUIName for a field
Parameters:
  guiType - the GUI type (i.e.

Method Summary
public  StringgetDBName()
     Retrieve the database name of the field.
public  booleangetDBNotNull()
     Retrieve whether the field can be left blank.
public  intgetDBPos()
    
public  intgetDBSize()
     Retrieve size of the field.
public  intgetDBState()
    
public  intgetDBType()
     Retrieves the basic MMBase type of the field.
public  StringgetDescription(String lang)
    
public  Map<String, String>getDescriptions()
    
public  intgetGUIList()
    
public  StringgetGUIName(String lang)
    
public  Map<String, String>getGUINames()
    
public  intgetGUIPos()
    
public  intgetGUISearch()
    
public  booleanisKey()
     Retrieve whether the field is a key and thus need be 'unique'.
public  voidsetDBKey(boolean value)
     Set whether the field is a key and thus needs to be 'unique'.
public  voidsetDBNotNull(boolean value)
     Set whether the field can be left blank.
public  voidsetDBPos(int value)
     Set the position of the field in the database table.
public  voidsetDBSize(int value)
     Set size of the field.
public  voidsetDBState(String value)
    
public  voidsetDBState(int i)
    
public  voidsetDescription(String lang, String value)
     Set the description of the field for a specified langauge.
public  voidsetGUIList(int value)
     Set the position of the field when listing.
public  voidsetGUIName(String lang, String value)
     SetUI the GUI name of the field for a specified langauge.
public  voidsetGUIPos(int value)
     Set the position of the field when editing.
public  voidsetGUISearch(int value)
     Set the position of the field when searching.
public static  voidsort(List<FieldDefs> fielddefs)
    
public static  voidsort(List<CoreField> fielddefs, int order)
    

Field Detail
DBSTATE_PERSISTENT
final public static int DBSTATE_PERSISTENT(Code)



DBSTATE_SYSTEM
final public static int DBSTATE_SYSTEM(Code)



DBSTATE_UNKNOWN
final public static int DBSTATE_UNKNOWN(Code)



DBSTATE_VIRTUAL
final public static int DBSTATE_VIRTUAL(Code)



ORDER_CREATE
final public static int ORDER_CREATE(Code)



ORDER_EDIT
final public static int ORDER_EDIT(Code)



ORDER_LIST
final public static int ORDER_LIST(Code)



ORDER_SEARCH
final public static int ORDER_SEARCH(Code)




Constructor Detail
FieldDefs
public FieldDefs(String name, int type, int listItemType, int state, DataType<? extends Object> dataType)(Code)



FieldDefs
public FieldDefs(String guiName, String guiType, int searchPos, int listPos, String name, int type)(Code)
Constructor for FieldDefs with partially initialized fields.
Parameters:
  guiName - the default GUIName for a field
Parameters:
  guiType - the GUI type (i.e. "integer' or 'field')
Parameters:
  searchPos - position in the editor for this field when searching
Parameters:
  listPos - position in the editor for this field when listing
Parameters:
  name - the actual name of the field in the database
Parameters:
  type - the basic MMBase type of the field



FieldDefs
public FieldDefs(String guiName, String guiType, int searchPos, int listPos, String name, int type, int guiPos, int state)(Code)
Constructor for FieldDefs with partially initialized fields.
Parameters:
  guiName - the default GUIName for a field
Parameters:
  guiType - the GUI type (i.e. "integer' or 'field')
Parameters:
  searchPos - position in the editor for this field when searching
Parameters:
  listPos - position in the editor for this field when listing
Parameters:
  name - the actual name of the field in the database
Parameters:
  type - the basic MMBase type of the field
Parameters:
  guiPos - position in the editor for this field when editing
Parameters:
  state - the state of the field (persistent, virtual, etc.)




Method Detail
getDBName
public String getDBName()(Code)
Retrieve the database name of the field. FieldDefs.getName



getDBNotNull
public boolean getDBNotNull()(Code)
Retrieve whether the field can be left blank. FieldDefs.isRequired



getDBPos
public int getDBPos()(Code)
FieldDefs.getStoragePosition



getDBSize
public int getDBSize()(Code)
Retrieve size of the field. This may not be specified for some field types. FieldDefs.getMaxLength



getDBState
public int getDBState()(Code)
FieldDefs.getState



getDBType
public int getDBType()(Code)
Retrieves the basic MMBase type of the field. The type, this is one of the values defined in this class.FieldDefs.getDataType



getDescription
public String getDescription(String lang)(Code)
FieldDefs.getDescription(Locale locale)



getDescriptions
public Map<String, String> getDescriptions()(Code)
FieldDefs.getDescription()



getGUIList
public int getGUIList()(Code)
FieldDefs.getListPosition



getGUIName
public String getGUIName(String lang)(Code)
FieldDefs.getGUIName(Locale locale)



getGUINames
public Map<String, String> getGUINames()(Code)
FieldDefs.getGUIName()



getGUIPos
public int getGUIPos()(Code)
FieldDefs.getEditPosition



getGUISearch
public int getGUISearch()(Code)
FieldDefs.getSearchPosition



isKey
public boolean isKey()(Code)
Retrieve whether the field is a key and thus need be 'unique'. FieldDefs.isUnique



setDBKey
public void setDBKey(boolean value)(Code)
Set whether the field is a key and thus needs to be 'unique'.
Parameters:
  value - the value to setCoreField.setUnique



setDBNotNull
public void setDBNotNull(boolean value)(Code)
Set whether the field can be left blank.
Parameters:
  value - the value to setFieldDefs.getDataType



setDBPos
public void setDBPos(int value)(Code)
Set the position of the field in the database table.
Parameters:
  value - the value to setFieldDefs.setStoragePosition



setDBSize
public void setDBSize(int value)(Code)
Set size of the field.
Parameters:
  value - the value to setCoreField.setMaxLength



setDBState
public void setDBState(String value)(Code)
Set the basic MMBase state of the field, using the state description
Parameters:
  value - the name of the stateFieldDefs.setState



setDBState
public void setDBState(int i)(Code)
FieldDefs.getState



setDescription
public void setDescription(String lang, String value)(Code)
Set the description of the field for a specified langauge.
Parameters:
  lang - the language to set the description for
Parameters:
  value - the value to setFieldDefs.getLocalizedDescription



setGUIList
public void setGUIList(int value)(Code)
Set the position of the field when listing. A value of -1 indicates teh field is unavailable in a list.
Parameters:
  value - the value to setFieldDefs.setListPosition



setGUIName
public void setGUIName(String lang, String value)(Code)
SetUI the GUI name of the field for a specified langauge.
Parameters:
  lang - the language to set the name for
Parameters:
  value - the value to setFieldDefs.getDataType



setGUIPos
public void setGUIPos(int value)(Code)
Set the position of the field when editing. A value of -1 indicates the field cannot be edited.
Parameters:
  value - the value to setFieldDefs.setEditPosition



setGUISearch
public void setGUISearch(int value)(Code)
Set the position of the field when searching. A value of -1 indicates teh field is unavailable during search.
Parameters:
  value - the value to setFieldDefs.setSearchPosition



sort
public static void sort(List<FieldDefs> fielddefs)(Code)
Sorts a list with FieldDefs objects, using the default order (ORDER_CREATE)
Parameters:
  fielddefs - the list to sort



sort
public static void sort(List<CoreField> fielddefs, int order)(Code)
Sorts a list with FieldDefs objects, using the specified order
Parameters:
  fielddefs - the list to sort
Parameters:
  order - one of ORDER_CREATE, ORDER_EDIT, ORDER_LIST,ORDER_SEARCHFields.sort



Methods inherited from org.mmbase.core.CoreField
public Object clone()(Code)(Java Doc)
public Object clone(String name)(Code)(Java Doc)
public int compareTo(Field o)(Code)(Java Doc)
public boolean equals(Object o)(Code)(Java Doc)
public void finish()(Code)(Java Doc)
public int getEditPosition()(Code)(Java Doc)
public String getGUIType()(Code)(Java Doc)
public int getListPosition()(Code)(Java Doc)
public int getMaxLength()(Code)(Java Doc)
public NodeManager getNodeManager()(Code)(Java Doc)
public MMObjectBuilder getParent()(Code)(Java Doc)
public int getSearchPosition()(Code)(Java Doc)
public Object getStorageIdentifier() throws StorageException(Code)(Java Doc)
public int getStoragePosition()(Code)(Java Doc)
public int getStorageType()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public boolean inStorage()(Code)(Java Doc)
public boolean isNotNull()(Code)(Java Doc)
public void rewrite()(Code)(Java Doc)
public void setDataType(DataType dataType) throws IllegalArgumentException(Code)(Java Doc)
public void setEditPosition(int i)(Code)(Java Doc)
public void setListItemType(int listItemType)(Code)(Java Doc)
public void setListPosition(int i)(Code)(Java Doc)
public void setMaxLength(int size)(Code)(Java Doc)
public void setNotNull(boolean nl)(Code)(Java Doc)
public void setParent(MMObjectBuilder parent)(Code)(Java Doc)
public void setReadOnly(boolean readOnly)(Code)(Java Doc)
public void setSearchPosition(int i)(Code)(Java Doc)
public void setState(int state)(Code)(Java Doc)
public void setStoragePosition(int i)(Code)(Java Doc)
public void setStorageType(int type)(Code)(Java Doc)
public void setType(int type)(Code)(Java Doc)
public void setUnique(boolean unique)(Code)(Java Doc)
public boolean storageEquals(CoreField f)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
public Collection<String> validate(Object value)(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.