www.element4solution.com

e4s.db
Class E4DBColumnName

java.lang.Object
  extended by e4s.util.E4Object
      extended by e4s.util.E4String
          extended by e4s.db.E4DBColumnName
All Implemented Interfaces:
E4InputFieldName_Intf, java.lang.Comparable

public class E4DBColumnName
extends E4String
implements E4InputFieldName_Intf

Defines a column name for a database table.

Since:
JDK 1.4
See Also:
E4DBColumn, E4DBTableName

Field Summary
 
Fields inherited from class e4s.util.E4String
CLASSNAME, m_maxsize, m_nullable, m_string
 
Fields inherited from class e4s.util.E4Object
CRLF, E4S_CORE_SYSTEM_LANGUAGE, NBSP, NULLSTR, URL_ENCODING_CHARSET
 
Constructor Summary
E4DBColumnName(java.lang.String columnName)
          Deprecated.  
 
Method Summary
static java.lang.String _getSVNVersionString()
          Get version info string from subversion.
 boolean equals(E4DBColumnName columnname)
          Compare with the given column name.
 boolean equals(E4InputFieldName_Intf columnname)
          Compare with the given column name.
 boolean equalsIgnoreCase(E4InputFieldName_Intf name2)
           
 java.lang.String getHtmlParamName()
          Get the name for the input field when used in an HTML context for input fields.
static E4DBColumnName getInstance(E4String columnName)
          Finds or creates an instance of E4DBColumnName object by the given column (database-field) name.
static E4DBColumnName getInstance(java.lang.String columnName)
          Finds or creates an instance of E4DBColumnName object by the given column (database-field) name.
 java.lang.String getName()
          Get the name for the input field.
static E4DBColumnName newInstance(java.lang.String columnname)
           
 
Methods inherited from class e4s.util.E4String
_equals, charAt, clone, compareTo, compareTo, compareTo, compareToIgnoreCase, compareToIgnoreCase, concat, concat, concat, concat, concat, cut, cut, endsWith, endsWith, equals, equals, equalsIgnoreCase, equalsIgnoreCase, fixed, fixedRight, getMaxSize, getNullable, getString, hashCode, indexOf, indexOf, indexOf, indexOf, indexOf, indexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, lastIndexOf, left, left, length, matches, matchesIgnoreCase, regionMatches, regionMatches, regionMatches, regionMatches, remove, removeSpaces, removeSpaces, replace, replace, replace, replace, replace, replaceIgnoreCase, right, right, setMaxSize, setNullable, setString, startsWith, startsWith, startsWith, startsWith, substring, substring, toCharArray, toLowerCase, toLowerCase, toString, toUpperCase, toUpperCase, trim, validate
 
Methods inherited from class e4s.util.E4Object
Calendar, CName, CName, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelApp, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelNone, E4LabelSys, E4LabelSys, e4sCopyright, e4sVersion, encode, encode, encode, encodeHtml, encodeHtml, encodeHtml, encodeURL, encodeURL, encodeURL, finalize, getLINE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTRACE, getTraceMemory, HtmlEncode, HtmlEncode, HtmlEncode, isdecimal, isdigit, isnotok, isnotok, isnumeric, isok, isok, isok, isok, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingFunction, lastCallingStack, mkdirs, null2nbsp, null2nbsp, null2nbsp, ok, ok, ok, ok, outPrintln, setLogFile4Trace, setTraceMemory, STACKTRACE, toDebug, toDouble, toFloat, toFloat, TRACE_CALLS, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, TRACE, wait
 
Methods inherited from class java.lang.Object
equals, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

E4DBColumnName

public E4DBColumnName(java.lang.String columnName)
Deprecated. 

Creates the E4DBColumnName object by the given database table - column (field) name.

Parameters:
columnName - is the name of a column within a database table. Note that internally it is converted to uppercase characters, that means that column names cannot be case sensitive, independet weather your database does sopport or not case sensitive names!
See Also:
getInstance(String)
Method Detail

getInstance

public static E4DBColumnName getInstance(E4String columnName)
Finds or creates an instance of E4DBColumnName object by the given column (database-field) name.

Parameters:
columnName - is the name of a column within a database table. Note that internally it is converted to uppercase characters, that means that column names cannot be case sensitive, independet weather your database does sopport or not case sensitive names!

getInstance

public static E4DBColumnName getInstance(java.lang.String columnName)
Finds or creates an instance of E4DBColumnName object by the given column (database-field) name.

Parameters:
columnName - is the name of a column within a database table. Note that internally it is converted to uppercase characters, that means that column names cannot be case sensitive, independet weather your database does sopport or not case sensitive names!

getName

public java.lang.String getName()
Get the name for the input field. This is the same as getHtmlParamName().

Specified by:
getName in interface E4InputFieldName_Intf
Returns:
the name

getHtmlParamName

public java.lang.String getHtmlParamName()
Get the name for the input field when used in an HTML context for input fields. This is the same as getName().

Specified by:
getHtmlParamName in interface E4InputFieldName_Intf
Returns:
the name

equals

public boolean equals(E4InputFieldName_Intf columnname)
Compare with the given column name.

Specified by:
equals in interface E4InputFieldName_Intf
Parameters:
columnname - column name to compare with
Returns:
true, if both columnnames are equal
See Also:
E4String.compareTo(Object)

equals

public boolean equals(E4DBColumnName columnname)
Compare with the given column name.

Parameters:
columnname - column name to compare with
Returns:
true, if both columnnames are equal
See Also:
#compareTo(e4s.db.E4DBColumnName), E4String.compareTo(String), E4String.compareTo(e4s.util.E4String)

equalsIgnoreCase

public boolean equalsIgnoreCase(E4InputFieldName_Intf name2)
Specified by:
equalsIgnoreCase in interface E4InputFieldName_Intf

newInstance

public static E4DBColumnName newInstance(java.lang.String columnname)

_getSVNVersionString

public static java.lang.String _getSVNVersionString()
Get version info string from subversion.

Returns:
the version info string.
See Also:
E4Util.getRevisionCodeFromSVN(Class)

www.element4solution.com