org.mmbase.module.database.support
Class PostgreSQL71

java.lang.Object
  |
  +--org.mmbase.module.database.support.PostgreSQL71
All Implemented Interfaces:
MMJdbc2NodeInterface

public class PostgreSQL71
extends java.lang.Object
implements MMJdbc2NodeInterface


Constructor Summary
PostgreSQL71()
           
 
Method Summary
 boolean addField(MMObjectBuilder bul, java.lang.String fieldname)
           
 boolean changeField(MMObjectBuilder bul, java.lang.String fieldname)
           
 boolean commit(MMObjectBuilder bul, MMObjectNode node)
          commit this node to the database
 boolean create(MMObjectBuilder bul)
           
 boolean created(java.lang.String tableName)
           
 boolean createObjectTable(java.lang.String baseName)
           
 MMObjectNode decodeDBnodeField(MMObjectNode node, java.lang.String fieldname, java.sql.ResultSet rs, int i)
           
 MMObjectNode decodeDBnodeField(MMObjectNode node, java.lang.String fieldname, java.sql.ResultSet rs, int i, java.lang.String prefix)
           
 boolean drop(MMObjectBuilder bul)
           
 java.lang.String getAllowedField(java.lang.String disallowedfield)
           
 MultiConnection getConnection(JDBCInterface jdbc)
           
 byte[] getDBByte(java.sql.ResultSet rs, int idx)
          is next function nessecary?
 int getDBKey()
          research for a better way to resolve the unique number...
 java.lang.String getDBText(java.sql.ResultSet rs, int idx)
          is next function nessecary?
 java.lang.String getDisallowedField(java.lang.String allowedfield)
           
 java.lang.String getMMNodeSearch2SQL(java.lang.String where, MMObjectBuilder bul)
           
 java.lang.String getNumberString()
           
 java.lang.String getOTypeString()
           
 java.lang.String getOwnerString()
           
 byte[] getShortedByte(java.lang.String tableName, java.lang.String fieldname, int number)
           
 java.lang.String getShortedText(java.lang.String tableName, java.lang.String fieldname, int number)
          is next function nessecary?
 void init(MMBase mmb, XMLDatabaseReader parser)
           
 int insert(MMObjectBuilder bul, java.lang.String owner, MMObjectNode node)
           
 boolean removeField(MMObjectBuilder bul, java.lang.String fieldname)
           
 void removeNode(MMObjectBuilder bul, MMObjectNode node)
           
 void setDBByte(int i, java.sql.PreparedStatement stmt, byte[] bytes)
          is next function nessecary?
protected  boolean setValuePreparedStatement(java.sql.PreparedStatement stmt, MMObjectNode node, java.lang.String key, int i)
           
 boolean updateTable(MMObjectBuilder bul)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PostgreSQL71

public PostgreSQL71()
Method Detail

init

public void init(MMBase mmb,
                 XMLDatabaseReader parser)
Specified by:
init in interface MMJdbc2NodeInterface

getConnection

public MultiConnection getConnection(JDBCInterface jdbc)
                              throws java.sql.SQLException
Specified by:
getConnection in interface MMJdbc2NodeInterface

created

public boolean created(java.lang.String tableName)
Specified by:
created in interface MMJdbc2NodeInterface

createObjectTable

public boolean createObjectTable(java.lang.String baseName)
Specified by:
createObjectTable in interface MMJdbc2NodeInterface

getDisallowedField

public java.lang.String getDisallowedField(java.lang.String allowedfield)
Specified by:
getDisallowedField in interface MMJdbc2NodeInterface

getAllowedField

public java.lang.String getAllowedField(java.lang.String disallowedfield)
Specified by:
getAllowedField in interface MMJdbc2NodeInterface

getNumberString

public java.lang.String getNumberString()
Specified by:
getNumberString in interface MMJdbc2NodeInterface

getOTypeString

public java.lang.String getOTypeString()
Specified by:
getOTypeString in interface MMJdbc2NodeInterface

getOwnerString

public java.lang.String getOwnerString()
Specified by:
getOwnerString in interface MMJdbc2NodeInterface

create

public boolean create(MMObjectBuilder bul)
Specified by:
create in interface MMJdbc2NodeInterface

insert

public int insert(MMObjectBuilder bul,
                  java.lang.String owner,
                  MMObjectNode node)
Specified by:
insert in interface MMJdbc2NodeInterface

setValuePreparedStatement

protected boolean setValuePreparedStatement(java.sql.PreparedStatement stmt,
                                            MMObjectNode node,
                                            java.lang.String key,
                                            int i)
                                     throws java.sql.SQLException

decodeDBnodeField

public MMObjectNode decodeDBnodeField(MMObjectNode node,
                                      java.lang.String fieldname,
                                      java.sql.ResultSet rs,
                                      int i)
Specified by:
decodeDBnodeField in interface MMJdbc2NodeInterface

decodeDBnodeField

public MMObjectNode decodeDBnodeField(MMObjectNode node,
                                      java.lang.String fieldname,
                                      java.sql.ResultSet rs,
                                      int i,
                                      java.lang.String prefix)
Specified by:
decodeDBnodeField in interface MMJdbc2NodeInterface

commit

public boolean commit(MMObjectBuilder bul,
                      MMObjectNode node)
commit this node to the database
Specified by:
commit in interface MMJdbc2NodeInterface

removeNode

public void removeNode(MMObjectBuilder bul,
                       MMObjectNode node)
Specified by:
removeNode in interface MMJdbc2NodeInterface

getMMNodeSearch2SQL

public java.lang.String getMMNodeSearch2SQL(java.lang.String where,
                                            MMObjectBuilder bul)
Specified by:
getMMNodeSearch2SQL in interface MMJdbc2NodeInterface

getShortedByte

public byte[] getShortedByte(java.lang.String tableName,
                             java.lang.String fieldname,
                             int number)
Specified by:
getShortedByte in interface MMJdbc2NodeInterface

drop

public boolean drop(MMObjectBuilder bul)
Specified by:
drop in interface MMJdbc2NodeInterface

updateTable

public boolean updateTable(MMObjectBuilder bul)
Specified by:
updateTable in interface MMJdbc2NodeInterface

addField

public boolean addField(MMObjectBuilder bul,
                        java.lang.String fieldname)
Specified by:
addField in interface MMJdbc2NodeInterface

removeField

public boolean removeField(MMObjectBuilder bul,
                           java.lang.String fieldname)
Specified by:
removeField in interface MMJdbc2NodeInterface

changeField

public boolean changeField(MMObjectBuilder bul,
                           java.lang.String fieldname)
Specified by:
changeField in interface MMJdbc2NodeInterface

getDBByte

public byte[] getDBByte(java.sql.ResultSet rs,
                        int idx)
is next function nessecary?
Specified by:
getDBByte in interface MMJdbc2NodeInterface

setDBByte

public void setDBByte(int i,
                      java.sql.PreparedStatement stmt,
                      byte[] bytes)
is next function nessecary?
Specified by:
setDBByte in interface MMJdbc2NodeInterface

getDBKey

public int getDBKey()
research for a better way to resolve the unique number...
Specified by:
getDBKey in interface MMJdbc2NodeInterface

getShortedText

public java.lang.String getShortedText(java.lang.String tableName,
                                       java.lang.String fieldname,
                                       int number)
is next function nessecary?
Specified by:
getShortedText in interface MMJdbc2NodeInterface

getDBText

public java.lang.String getDBText(java.sql.ResultSet rs,
                                  int idx)
is next function nessecary?
Specified by:
getDBText in interface MMJdbc2NodeInterface


MMBase 2001