com.dynamide.db
Class RDBTable

java.lang.Object
  extended by com.dynamide.DynamideObject
      extended by com.dynamide.db.RDBTable
All Implemented Interfaces:
IGet

public class RDBTable
extends DynamideObject


Field Summary
 
Fields inherited from class com.dynamide.DynamideObject
m_id
 
Constructor Summary
RDBTable(RDBDatabase database, java.lang.String tableName)
           
 
Method Summary
 boolean cancel()
           
 boolean close()
           
 boolean edit()
           
 int getColumnCount()
           
 java.util.Iterator getColumnNames()
           
 boolean getDebugSQL()
           
 java.lang.String getErrors()
           
 StringList getFields()
           
 java.sql.ResultSet getResultSet()
           
 java.sql.ResultSetMetaData getResultSetMetaData()
           
static RDBTable getTestTable(java.lang.String user, java.lang.String password)
           
 int insert(java.util.Map values)
           
 boolean isOpen()
           
static void main(java.lang.String[] Args)
           
 java.lang.String makeKeyConditions()
           
 boolean open()
           
 boolean open(java.lang.String criteria, java.lang.String orderBy)
          Caller is responsible for closing the connection by calling RDBTable.close after calling this method.
 boolean post()
           
 boolean post(java.util.Map values, java.lang.String conditions)
           
 void setColumnCount(int new_value)
           
 void setDebugSQL(boolean new_value)
           
 void setFields(StringList new_value)
           
 int update(java.util.Map values, java.lang.String conditions)
           
 int updateOrInsert(java.util.Map values, java.lang.String conditions)
           
 
Methods inherited from class com.dynamide.DynamideObject
clearProfiler, dump, dump, dumpHTML, expand, finalize, findParentExpander, findParentPage, findParentSession, findTopParentPage, get, getCategoryID, getDotName, getID, getNextGetter, getObjectID, getOwner, getProfiler, isDebugEnabled, isInfoEnabled, logDebug, logDebug, logDebug, logDebug, logError, logError, logError, logError, logInfo, logInfo, logInfo, logInfo, logWarn, logWarn, logWarn, logWarn, popLogContext, printf, printProfiler, profileEnter, profileLeave, pushLogContext, setDotName, setID, setNextGetter, setObjectID, setOwner, sprintf, useProfiler, walkParents
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDBTable

public RDBTable(RDBDatabase database,
                java.lang.String tableName)
Method Detail

getDebugSQL

public boolean getDebugSQL()

setDebugSQL

public void setDebugSQL(boolean new_value)

getErrors

public java.lang.String getErrors()

getResultSetMetaData

public java.sql.ResultSetMetaData getResultSetMetaData()

isOpen

public boolean isOpen()

getFields

public StringList getFields()

setFields

public void setFields(StringList new_value)

getColumnCount

public int getColumnCount()

setColumnCount

public void setColumnCount(int new_value)

getColumnNames

public java.util.Iterator getColumnNames()

getResultSet

public java.sql.ResultSet getResultSet()

open

public boolean open()

open

public boolean open(java.lang.String criteria,
                    java.lang.String orderBy)
Caller is responsible for closing the connection by calling RDBTable.close after calling this method.


close

public boolean close()

edit

public boolean edit()

cancel

public boolean cancel()

makeKeyConditions

public java.lang.String makeKeyConditions()

post

public boolean post()

post

public boolean post(java.util.Map values,
                    java.lang.String conditions)

insert

public int insert(java.util.Map values)

update

public int update(java.util.Map values,
                  java.lang.String conditions)

updateOrInsert

public int updateOrInsert(java.util.Map values,
                          java.lang.String conditions)

getTestTable

public static RDBTable getTestTable(java.lang.String user,
                                    java.lang.String password)

main

public static void main(java.lang.String[] Args)
                 throws java.lang.Exception
Throws:
java.lang.Exception


Copyright 2001-2013 DYNAMIDE.COM. All Rights Reserved.