com.liferay.portal.kernel.dao.jdbc
Class SmartResultSet

java.lang.Object
  extended by com.liferay.portal.kernel.dao.jdbc.SmartResultSet

public class SmartResultSet
extends java.lang.Object

View Source

Author:
Minhchau Dang, Brian Wing Shun Chan

Constructor Summary
SmartResultSet(java.sql.ResultSet rs)
           
 
Method Summary
 int findColumn(java.lang.String columnName)
           
 boolean first()
           
 java.sql.Date getDate(int columnIndex)
           
 java.sql.Date getDate(java.lang.String columnName)
           
 double getDouble(int columnIndex)
           
 double getDouble(java.lang.String columnName)
           
 float getFloat(int columnIndex)
           
 float getFloat(java.lang.String columnName)
           
 int getInt(int columnIndex)
           
 int getInt(java.lang.String columnName)
           
 long getLong(int columnIndex)
           
 long getLong(java.lang.String columnName)
           
 short getShort(int columnIndex)
           
 short getShort(java.lang.String columnName)
           
 java.lang.String getString(int columnIndex)
           
 java.lang.String getString(java.lang.String columnName)
           
 java.sql.Timestamp getTimestamp(int columnIndex)
           
 java.sql.Timestamp getTimestamp(java.lang.String columnName)
           
 boolean last()
           
 boolean next()
           
 boolean previous()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmartResultSet

public SmartResultSet(java.sql.ResultSet rs)
               throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

findColumn

public int findColumn(java.lang.String columnName)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

first

public boolean first()
              throws java.sql.SQLException
Throws:
java.sql.SQLException

getDate

public java.sql.Date getDate(int columnIndex)
                      throws java.sql.SQLException
Throws:
java.sql.SQLException

getDate

public java.sql.Date getDate(java.lang.String columnName)
                      throws java.sql.SQLException
Throws:
java.sql.SQLException

getDouble

public double getDouble(int columnIndex)
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

getDouble

public double getDouble(java.lang.String columnName)
                 throws java.sql.SQLException
Throws:
java.sql.SQLException

getFloat

public float getFloat(int columnIndex)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

getFloat

public float getFloat(java.lang.String columnName)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

getInt

public int getInt(int columnIndex)
           throws java.sql.SQLException
Throws:
java.sql.SQLException

getInt

public int getInt(java.lang.String columnName)
           throws java.sql.SQLException
Throws:
java.sql.SQLException

getLong

public long getLong(int columnIndex)
             throws java.sql.SQLException
Throws:
java.sql.SQLException

getLong

public long getLong(java.lang.String columnName)
             throws java.sql.SQLException
Throws:
java.sql.SQLException

getShort

public short getShort(int columnIndex)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

getShort

public short getShort(java.lang.String columnName)
               throws java.sql.SQLException
Throws:
java.sql.SQLException

getString

public java.lang.String getString(int columnIndex)
                           throws java.sql.SQLException
Throws:
java.sql.SQLException

getString

public java.lang.String getString(java.lang.String columnName)
                           throws java.sql.SQLException
Throws:
java.sql.SQLException

getTimestamp

public java.sql.Timestamp getTimestamp(int columnIndex)
                                throws java.sql.SQLException
Throws:
java.sql.SQLException

getTimestamp

public java.sql.Timestamp getTimestamp(java.lang.String columnName)
                                throws java.sql.SQLException
Throws:
java.sql.SQLException

last

public boolean last()
             throws java.sql.SQLException
Throws:
java.sql.SQLException

next

public boolean next()
             throws java.sql.SQLException
Throws:
java.sql.SQLException

previous

public boolean previous()
                 throws java.sql.SQLException
Throws:
java.sql.SQLException