com.scooterframework.builtin.databrowser
Class Record

java.lang.Object
  extended by com.scooterframework.builtin.databrowser.Record
Direct Known Subclasses:
Vrecord

public class Record
extends java.lang.Object

Record model class handles record related access.


Constructor Summary
Record()
           
 
Method Summary
static RowData createRecord(java.util.Map<java.lang.String,java.lang.Object> inputs, java.lang.String connName, java.lang.String table)
           
static int deleteRecord(java.util.Map<java.lang.String,java.lang.Object> inputs, java.lang.String connName, java.lang.String table, java.lang.String restfulId)
           
static java.lang.String getFinderSql(java.lang.String connName, java.lang.String table)
           
static RowData getRow(java.lang.String connName, java.lang.String table, java.lang.String restfulId)
           
static RowInfo getRowInfo(java.lang.String connName, java.lang.String table)
           
static java.util.List<RowData> getRows(java.lang.String connName, java.lang.String table)
           
static java.util.List<RowData> getRows(java.lang.String connName, java.lang.String table, java.lang.String whereClause)
           
static java.lang.String prepareDynamicWhereClauseForRestfulId(java.util.Map<java.lang.String,java.lang.Object> inputs, RowInfo ri, java.lang.String restfulId)
           
static java.lang.String prepareInsertSQL(RowInfo ri, java.util.Map<java.lang.String,java.lang.Object> inputs)
           
static java.lang.String prepareSetSQL(RowInfo ri, java.util.Map<java.lang.String,java.lang.Object> inputs)
           
static int updateRecord(java.util.Map<java.lang.String,java.lang.Object> inputs, java.lang.String connName, java.lang.String table, java.lang.String restfulId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Record

public Record()
Method Detail

getFinderSql

public static java.lang.String getFinderSql(java.lang.String connName,
                                            java.lang.String table)

getRows

public static java.util.List<RowData> getRows(java.lang.String connName,
                                              java.lang.String table)

getRows

public static java.util.List<RowData> getRows(java.lang.String connName,
                                              java.lang.String table,
                                              java.lang.String whereClause)

getRow

public static RowData getRow(java.lang.String connName,
                             java.lang.String table,
                             java.lang.String restfulId)

createRecord

public static RowData createRecord(java.util.Map<java.lang.String,java.lang.Object> inputs,
                                   java.lang.String connName,
                                   java.lang.String table)

updateRecord

public static int updateRecord(java.util.Map<java.lang.String,java.lang.Object> inputs,
                               java.lang.String connName,
                               java.lang.String table,
                               java.lang.String restfulId)

deleteRecord

public static int deleteRecord(java.util.Map<java.lang.String,java.lang.Object> inputs,
                               java.lang.String connName,
                               java.lang.String table,
                               java.lang.String restfulId)

getRowInfo

public static RowInfo getRowInfo(java.lang.String connName,
                                 java.lang.String table)

prepareInsertSQL

public static java.lang.String prepareInsertSQL(RowInfo ri,
                                                java.util.Map<java.lang.String,java.lang.Object> inputs)

prepareSetSQL

public static java.lang.String prepareSetSQL(RowInfo ri,
                                             java.util.Map<java.lang.String,java.lang.Object> inputs)

prepareDynamicWhereClauseForRestfulId

public static java.lang.String prepareDynamicWhereClauseForRestfulId(java.util.Map<java.lang.String,java.lang.Object> inputs,
                                                                     RowInfo ri,
                                                                     java.lang.String restfulId)