Service Bulider SQL Types


Service-Builder provides flexibility to map Java data types into SQL data types as follows:

<column name="type" type="String" />
<column name="type" type="long" />
<column name="answerOrder" type="int" />

Java data type                     SQL data type                   Description
boolean, Boolean                 BOOLEAN                            Boolean type
Double, Double                    DOUBLE                               Double type
float, Float                            FLOAT                                  Float type
int, Integer                            INTEGER                              Integer type
long, Long                            BIGINT                                  Long type
short, Short                           INTEGER                              Short type
Date                                      TIMESTAMP                        Date type
String                                    CLOB                                     Max-Length = 2000000
                                              TEXT                                     Max-Length > 4000
                                              STRING                                Max-Length = 4000
                                              VARCHAR                            Max-Length < 4000

We use Java Data types in the service.xml

Comments

  1. Selenium WebDriver fits in the same role as RC did, and has incorporated the original 1.x bindings. It refers to both the language bindings and the implementations of the individual browser controlling code. This is commonly referred to as just "WebDriver" or sometimes as Selenium 2.
    Selenium Training Institute in Chennai

    ReplyDelete

Post a Comment

Popular posts from this blog

Theme display in javascript

How to know which liferay version we are using

Viewing the SQL Query in liferay : debugging the SQL Query in Hibernate