org.objectweb.jorm.mapper.rdb.adapter.api
Interface ValueAsSQLStringAdapter

All Known Subinterfaces:
RdbAdapter, RdbAdapter
All Known Implementing Classes:
BasicRdbAdapter

public interface ValueAsSQLStringAdapter

Author:
S.Chassande-Barrioz

Method Summary
 java.lang.String getValueAsSQLString(boolean value)
          This method returns a String value that represents a boolean value.
 java.lang.String getValueAsSQLString(byte value)
          This method returns a String value that represents a byte value.
 java.lang.String getValueAsSQLString(char value)
          This method returns a String value that represents a char value.
 java.lang.String getValueAsSQLString(double value)
          This method returns a String value that represents a double value.
 java.lang.String getValueAsSQLString(float value)
          This method returns a String value that represents a float value.
 java.lang.String getValueAsSQLString(int value)
          This method returns a String value that represents a int value.
 java.lang.String getValueAsSQLString(long value)
          This method returns a String value that represents a long value.
 java.lang.String getValueAsSQLString(java.lang.Object value, int typeCode)
          This method returns a String value that represents a value.
 java.lang.String getValueAsSQLString(short value)
          This method returns a String value that represents a short value.
 

Method Detail

getValueAsSQLString

public java.lang.String getValueAsSQLString(java.lang.Object value,
                                            int typeCode)
This method returns a String value that represents a value. This method can be used for the constant parameters of SQL queries.

Parameters:
value -
typeCode - is the java type of the value

getValueAsSQLString

public java.lang.String getValueAsSQLString(boolean value)
This method returns a String value that represents a boolean value. This method can be used for the constant parameters of SQL queries.


getValueAsSQLString

public java.lang.String getValueAsSQLString(byte value)
This method returns a String value that represents a byte value. This method can be used for the constant parameters of SQL queries.


getValueAsSQLString

public java.lang.String getValueAsSQLString(char value)
This method returns a String value that represents a char value. This method can be used for the constant parameters of SQL queries.


getValueAsSQLString

public java.lang.String getValueAsSQLString(short value)
This method returns a String value that represents a short value. This method can be used for the constant parameters of SQL queries.


getValueAsSQLString

public java.lang.String getValueAsSQLString(int value)
This method returns a String value that represents a int value. This method can be used for the constant parameters of SQL queries.


getValueAsSQLString

public java.lang.String getValueAsSQLString(long value)
This method returns a String value that represents a long value. This method can be used for the constant parameters of SQL queries.


getValueAsSQLString

public java.lang.String getValueAsSQLString(float value)
This method returns a String value that represents a float value. This method can be used for the constant parameters of SQL queries.


getValueAsSQLString

public java.lang.String getValueAsSQLString(double value)
This method returns a String value that represents a double value. This method can be used for the constant parameters of SQL queries.