com.sibvisions.rad.persist.jdbc
Class Name

java.lang.Object
  extended by com.sibvisions.rad.persist.jdbc.Name
All Implemented Interfaces:
Cloneable

public class Name
extends Object
implements Cloneable

A ServerColumnMetaData is a description of the data type and other attributes of a table storage column. (persists on server) It also includes the server relevant infos, in addition to the ColumnMetaData just for the client.

See Also:
IDataType, ColumnMetaData

Constructor Summary
Name()
          Constructs a Name object.
Name(String pRealName, String pQuotedName)
          Constructs a Name with a specific real name.
 
Method Summary
 Name clone()
          
 boolean equals(Object pObject)
          
 String getName()
          Returns the name to use in the application. default is toUpperCase().
 String getQuotedName()
          Returns the quoted name to use in the database.
 String getRealName()
          Returns the real name.
 int hashCode()
          
 boolean isQuoted()
          Returns true if the quoted name should be used.
 void setName(String pName)
          Sets the name use in the application.
 void setQuotedName(String pQuotedName)
          Sets the quoted name to use in the database.
 void setRealName(String pRealName)
          Sets the real name.
 String toString()
          
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Name

public Name()
Constructs a Name object.


Name

public Name(String pRealName,
            String pQuotedName)
Constructs a Name with a specific real name.

Parameters:
pRealName - the real name to use.
pQuotedName - the quoted name to use for the database.
Method Detail

toString

public String toString()

Overrides:
toString in class Object

clone

public Name clone()

Overrides:
clone in class Object

equals

public boolean equals(Object pObject)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

setRealName

public void setRealName(String pRealName)
Sets the real name.

Parameters:
pRealName - the real name to use.

getRealName

public String getRealName()
Returns the real name.

Returns:
the real name

setName

public void setName(String pName)
Sets the name use in the application.

Parameters:
pName - the name to us in the application

getName

public String getName()
Returns the name to use in the application. default is toUpperCase().

Returns:
the name to use in the application.

setQuotedName

public void setQuotedName(String pQuotedName)
Sets the quoted name to use in the database.

Parameters:
pQuotedName - the quoted name to use in the database

getQuotedName

public String getQuotedName()
Returns the quoted name to use in the database.

Returns:
the quoted name to use in the database.

isQuoted

public boolean isQuoted()
Returns true if the quoted name should be used.

Returns:
true if the quoted name should be used.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.