Java Doc for DataFieldMetaData.java in  » J2EE » Expresso » com » jcorporate » expresso » core » dataobjects » 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 » J2EE » Expresso » com.jcorporate.expresso.core.dataobjects 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.jcorporate.expresso.core.dataobjects.DataFieldMetaData

All known Subclasses:   com.jcorporate.expresso.core.dbobj.DBField,
DataFieldMetaData
public interface DataFieldMetaData (Code)
This interface will eventually have the same public functionality as DBField. It is just used as "Interface"e; glue right now. It will be fleshed out significantly in future versions.

This interface represents the descriptive data for a particular DataField.


author:
   Michael Rimov
since:
   Expresso 5.0




Method Summary
public  booleanallowsNull()
    
public  java.util.SetgetAllAttributes()
    
public  ObjectgetAttribute(String attribName)
     Returns an attribute keyed by name.
public  IteratorgetAttributesIterator()
     Returns a copy of all attributes associated with this field.
public  StringgetDefaultValue()
     Retrieve the default value of the field.
public  StringgetDescription()
     Return the description of this field.
public  intgetLengthInt()
    
public  StringgetLookupDefinition()
     Future versions of Expresso will rely more on objects that are shown as unique by a combination of their classname and their definition names.
public  StringgetLookupField()
     When you get a lookup object, to perform a complete mapping between the two, you need to know what field name in the remote object maps to this field.
public  StringgetLookupObject()
    
public  PatterngetMask()
     Get the compiled regular expression for this field.
public  StringgetName()
    
public  intgetPrecision()
    
public  StringgetTypeString()
    
public  booleanisAutoIncremented()
    
public  booleanisBinaryObjectType()
     Is it a BLOB? This is calculated by if it is a long object and is NOT a character long object.
public  booleanisBooleanType()
    
public  booleanisCharacterLongObjectType()
    
public  booleanisDateOnlyType()
    
public  booleanisDateTimeType()
    
public  booleanisDateType()
    
public  booleanisEncrypted()
    
public  booleanisFloatingPointType()
    
public  booleanisHashed()
    
public  booleanisKey()
    
public  booleanisLongBinaryType()
     Is it a BLOB? This is calculated by if it is a long object and is NOT a character long object.
public  booleanisLongCharacterType()
     Is it a BLOB? This is calculated by if it is a long object and is NOT a character long object.
public  booleanisLongObjectType()
    
public  booleanisMasked()
    
public  booleanisMultiValued()
    
public  booleanisNumericType()
    
public  booleanisQuotedTextType()
    
public  booleanisReadOnly()
    
public  booleanisSecret()
    
public  booleanisTimeType()
    
public  booleanisVirtual()
     Is this field a virtual field? E.g.
public  voidremoveAttribute(String attribName)
     Removes an attribute from this Field object.
public  voidsetAttribute(String attribName, Object attribValue)
     Sets an attribute for this particular field.
public  voidsetDefaultValue(String newValue)
     Sets the new default value as a string for the field.
public  voidsetEncrypted(boolean newValue)
    
public  voidsetHashed(boolean newValue)
     Set the field's hashed status.
public  voidsetKey(boolean newKey)
    
public  voidsetLookupObject(String objectName)
     Set the value for the "lookup object" for this field.
public  voidsetMask(Pattern newMask)
     Set a regular expression "mask" for this field that specifies it's valid values.
public  voidsetMultiValued(boolean newMulti)
     Set this field to be "multi-valued".
public  voidsetReadOnly()
     Set the field as a read-only field.
public  voidsetSecret()
     Set the field as a 'secret' field.
public  voidsetVirtual(boolean newVirtual)
     Set this field as a virtual field.



Method Detail
allowsNull
public boolean allowsNull()(Code)
Does this field allow nulls? boolean True if the field allows null, else false if it does not



getAllAttributes
public java.util.Set getAllAttributes()(Code)
Retrieve a list of all attribute names in the field java.util.Set



getAttribute
public Object getAttribute(String attribName)(Code)
Returns an attribute keyed by name. An attribute is an arbitrary object you can associate with a particular db field.
Parameters:
  attribName - the name of the attribute to get java.lang.Object the object associated with this attribute name



getAttributesIterator
public Iterator getAttributesIterator()(Code)
Returns a copy of all attributes associated with this field. a valid Iterator to a HashMap OR null if no attributes exist forthis field



getDefaultValue
public String getDefaultValue()(Code)
Retrieve the default value of the field. String java.lang.String



getDescription
public String getDescription()(Code)
Return the description of this field. This field name is not i18n'ized, use DataObjectMetaData with Locale parameter to get the i18n'ized escription String Description of the field



getLengthInt
public int getLengthInt()(Code)
Return the length of this field as an integer int The length of this field in characters



getLookupDefinition
public String getLookupDefinition()(Code)
Future versions of Expresso will rely more on objects that are shown as unique by a combination of their classname and their definition names. All instances of Defineable must have a corresponding definition name. java.lang.String



getLookupField
public String getLookupField()(Code)
When you get a lookup object, to perform a complete mapping between the two, you need to know what field name in the remote object maps to this field. java.lang.String or null if there is no lookup field
throws:
  IllegalArgumentException - if the field name does not exist



getLookupObject
public String getLookupObject()(Code)
Return the value for the lookupObject for this field String for the lookup object for this field



getMask
public Pattern getMask()(Code)
Get the compiled regular expression for this field. the precompiled regular expression mask



getName
public String getName()(Code)
Return the name of the field String The name of this field



getPrecision
public int getPrecision()(Code)
Return the precision of this field as an integer int The precision of this field



getTypeString
public String getTypeString()(Code)
Return the database type of the field as specified with a string in the DBObject itself The type of this field



isAutoIncremented
public boolean isAutoIncremented()(Code)
Is this field an auto-incremented field? true if this field is autoincremented



isBinaryObjectType
public boolean isBinaryObjectType()(Code)
Is it a BLOB? This is calculated by if it is a long object and is NOT a character long object. boolean True if it is



isBooleanType
public boolean isBooleanType()(Code)
is the field a boolean? cache answer for efficiency, since field type is immutable True if the field is boolean



isCharacterLongObjectType
public boolean isCharacterLongObjectType()(Code)
Is this field fall into the classification of a long character object? boolean true if it does



isDateOnlyType
public boolean isDateOnlyType()(Code)
is the field a date or time field? cache answer for efficiency, since field type is immutable author Yves Henri AMAIZO true if the field is date field



isDateTimeType
public boolean isDateTimeType()(Code)
is the field a date or time field? cache answer for efficiency, since field type is immutable author Yves Henri AMAIZO true if the field is dateTime or Timestamp field



isDateType
public boolean isDateType()(Code)
is the field a date or time field? cache answer for efficiency, since field type is immutable true if the field is date or time field



isEncrypted
public boolean isEncrypted()(Code)
Return the field's hashed status True if the field is secret, else false if it is not



isFloatingPointType
public boolean isFloatingPointType()(Code)



isHashed
public boolean isHashed()(Code)
Return the field's hashed status True if the field is secret, else false if it is not



isKey
public boolean isKey()(Code)
Is this field a key field? true if this field is a key field



isLongBinaryType
public boolean isLongBinaryType()(Code)
Is it a BLOB? This is calculated by if it is a long object and is NOT a character long object. boolean True if it is



isLongCharacterType
public boolean isLongCharacterType()(Code)
Is it a BLOB? This is calculated by if it is a long object and is NOT a character long object. boolean True if it is



isLongObjectType
public boolean isLongObjectType()(Code)
Does this field fall into a class of BLOB object data types? boolean true if it does



isMasked
public boolean isMasked()(Code)
Return boolean if the field has a mask set True if the field mask is set, else false if it is not



isMultiValued
public boolean isMultiValued()(Code)
Is this field multi-valued? boolean True if the field is multi-valued, else false



isNumericType
public boolean isNumericType()(Code)
is the field a numeric field? cache answer for efficiency, since field type is immutable true if the field is numberic field



isQuotedTextType
public boolean isQuotedTextType()(Code)
is the field a quoted text field? cache answer for efficiency, since field type is immutable True if the field is text field



isReadOnly
public boolean isReadOnly()(Code)
Return the field's read-only True if the field is readonly, else false if it is not



isSecret
public boolean isSecret()(Code)
Return the field's secret status True if the field is secret, else false if it is not



isTimeType
public boolean isTimeType()(Code)
is the field a date or time field? cache answer for efficiency, since field type is immutable author Yves Henri AMAIZO true if the field is time field



isVirtual
public boolean isVirtual()(Code)
Is this field a virtual field? E.g. not stored in the database boolean True if the field is virtual, else false



removeAttribute
public void removeAttribute(String attribName)(Code)
Removes an attribute from this Field object.
Parameters:
  attribName - The name of the attribute to remove from this field.



setAttribute
public void setAttribute(String attribName, Object attribValue)(Code)
Sets an attribute for this particular field.
Parameters:
  attribName - the name of the attribute
Parameters:
  attribValue - the value of the attribute by this name



setDefaultValue
public void setDefaultValue(String newValue)(Code)
Sets the new default value as a string for the field.
Parameters:
  newValue - String



setEncrypted
public void setEncrypted(boolean newValue)(Code)
Set the field's encrypted status
Parameters:
  newValue - new value if you want an encrypted field



setHashed
public void setHashed(boolean newValue)(Code)
Set the field's hashed status. Only works if the field is a string data type (in the future CLOB should be ok too) [This is currently not yet implemented and tested]
Parameters:
  newValue - true if you want this field hashed.



setKey
public void setKey(boolean newKey)(Code)
Set this field as a key field (or not)
Parameters:
  newKey - Is this field a key?



setLookupObject
public void setLookupObject(String objectName)(Code)
Set the value for the "lookup object" for this field. This is a database object name which can be used to look up valid values for this field by the user. This is used by the standard maintenance forms to create a "Lookup" link alongside the field if this value is set
Parameters:
  objectName - the classname of the lookup object



setMask
public void setMask(Pattern newMask)(Code)
Set a regular expression "mask" for this field that specifies it's valid values. The mask should already be compiled by the regular expression compiler
Parameters:
  newMask - The compiled regular expression mask



setMultiValued
public void setMultiValued(boolean newMulti)(Code)
Set this field to be "multi-valued". A multi-valued field has a specific set of valid values, often from another database object. Any multi-valued field may be used in a call to the getValues method, which will return a hashtable of the valid values for the field and descriptions for those values.
Parameters:
  newMulti - True if the field is multi-valued, false if it is not



setReadOnly
public void setReadOnly()(Code)
Set the field as a read-only field. Read only fields are still used against the database, but are not offered for updating when the automatic database maintenance servlet creates a form on the screen. Note this is different from the setAutoIncremented method below, which means this field will not participate in any add or update statement to the database.



setSecret
public void setSecret()(Code)
Set the field as a 'secret' field. Secret fields are not shown in listings of data from this database object, and are only available to users with update, add or delete permissions



setVirtual
public void setVirtual(boolean newVirtual)(Code)
Set this field as a virtual field. A virtual field is part of the object but not stored in the database table.
Parameters:
  newVirtual - True to make this object virtual, false if it is not



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