|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.mmbase.module.database.support.MMSQL92Node
|
+--org.mmbase.module.database.support.MMInformix42Node
MMInformix42Node extends MMSQL92Node and implements the MMJdbc2NodeInterface. This class overrides the methods which needed substitution to make mmbase work with informix dynamic server.
Tested on:
| Fields inherited from class org.mmbase.module.database.support.MMSQL92Node |
allowed2disallowed, disallowed2allowed, mmb, name, parser, typeMapping |
| Constructor Summary | |
MMInformix42Node()
Class Constructor |
|
| Method Summary | |
boolean |
addField(MMObjectBuilder bul,
java.lang.String fieldname)
|
boolean |
changeField(MMObjectBuilder bul,
java.lang.String fieldname)
|
boolean |
commit(MMObjectBuilder bul,
MMObjectNode node)
Method: commit commit this node to the database |
java.lang.String |
convertXMLType(FieldDefs def)
Converts XML-field-definition to a string ??? |
boolean |
create(MMObjectBuilder bul)
Creates the database-table for the specified builder |
boolean |
createObjectTable(java.lang.String baseName)
|
MMObjectNode |
decodeDBnodeField(MMObjectNode node,
java.lang.String fieldname,
java.sql.ResultSet rs,
int i,
java.lang.String prefix)
|
boolean |
drop_real(MMObjectBuilder bul,
java.lang.String tableName)
Will be removed once the xml setup system is done (?) |
java.util.Vector |
getAllNames()
|
byte[] |
getDBByte(java.sql.ResultSet rs,
int idx)
Get byte of a database blob |
int |
getDBKey()
getDBKey() uses a user defined routine (fetchrelkey()) at the database side to get a number (10) of keys at once. |
int |
getDBKeyOld()
Overriding getDBKeyOld because the one in MMSQL92Node doesn't really work |
java.lang.String |
getDBText(java.sql.ResultSet rs,
int idx)
Get text of a database blob |
byte[] |
getShortedByte(java.lang.String tableName,
java.lang.String fieldname,
int number)
Method: getShortedByte get byte of a database blob |
java.lang.String |
getShortedText(java.lang.String tableName,
java.lang.String fieldname,
int number)
Method: getShortedText get text from blob |
int |
insert(MMObjectBuilder bul,
java.lang.String owner,
MMObjectNode node)
This method inserts a new object, normally not used (only subtables are used) Only fields with DBState value = DBSTATE_PERSISTENT or DBSTATE_SYSTEM are inserted. |
boolean |
isAllowedParentBuilder(MMObjectBuilder builder)
Returns whether this database support layer allows for builder to be a parent builder (that is, other builders can 'extend' this builder and its database tables). |
java.lang.String |
parseFieldPart(java.lang.String fieldname,
java.lang.String dbtype,
java.lang.String part)
|
boolean |
removeField(MMObjectBuilder bul,
java.lang.String fieldname)
|
void |
removeNode(MMObjectBuilder bul,
MMObjectNode node)
Method: removeNode |
void |
setDBByte(int i,
java.sql.PreparedStatement stmt,
byte[] bytes)
Add a byte-array to the PreparedStatement |
void |
setDBClob(int i,
java.sql.PreparedStatement stmt,
java.lang.String body)
Creates a smart large object in the database using the MMBase character encoding, and sets the field using PreparedStatement.setClob. |
void |
setDBText(int i,
java.sql.PreparedStatement stmt,
java.lang.String body)
Inserts the given string into the passed PreparedStatement using the MMBase characterencoding. |
| Methods inherited from class org.mmbase.module.database.support.MMSQL92Node |
create_real, created, decodeDBnodeField, decodeStringField, drop, getAllowedField, getConnection, getDisallowedField, getMatchCREATE, getMMNodeSearch2SQL, getNumberString, getOTypeString, getOwnerString, getReverseHash, init, insert_real, matchType, parseFieldPart, registerParentBuilder, size, tableSizeProtection, updateTable |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.mmbase.module.database.support.MMJdbc2NodeInterface |
created, decodeDBnodeField, drop, getAllowedField, getConnection, getDisallowedField, getMMNodeSearch2SQL, getNumberString, getOTypeString, getOwnerString, init, registerParentBuilder, updateTable |
| Constructor Detail |
public MMInformix42Node()
| Method Detail |
public boolean createObjectTable(java.lang.String baseName)
createObjectTable in interface MMJdbc2NodeInterfacecreateObjectTable in class MMSQL92Nodepublic boolean create(MMObjectBuilder bul)
Creates the database-table for the specified builder
create in interface MMJdbc2NodeInterfacecreate in class MMSQL92Nodebul - Builder which will be used to create the object-tablepublic java.lang.String convertXMLType(FieldDefs def)
convertXMLType in class MMSQL92Nodedef - FieldDef
public int insert(MMObjectBuilder bul,
java.lang.String owner,
MMObjectNode node)
insert in interface MMJdbc2NodeInterfaceinsert in class MMSQL92Nodebul - The MMObjectBuilder.owner - The nodes' owner.node - The current node that's to be inserted.
public MMObjectNode decodeDBnodeField(MMObjectNode node,
java.lang.String fieldname,
java.sql.ResultSet rs,
int i,
java.lang.String prefix)
decodeDBnodeField in interface MMJdbc2NodeInterfacedecodeDBnodeField in class MMSQL92Nodepublic boolean isAllowedParentBuilder(MMObjectBuilder builder)
isAllowedParentBuilder in interface MMJdbc2NodeInterfaceisAllowedParentBuilder in class MMSQL92Nodebuilder - the builder to test
public java.lang.String getDBText(java.sql.ResultSet rs,
int idx)
MMSQL92NodegetDBText in interface MMJdbc2NodeInterfacegetDBText in class MMSQL92Node
public byte[] getDBByte(java.sql.ResultSet rs,
int idx)
MMSQL92NodegetDBByte in interface MMJdbc2NodeInterfacegetDBByte in class MMSQL92Node
public java.lang.String parseFieldPart(java.lang.String fieldname,
java.lang.String dbtype,
java.lang.String part)
public byte[] getShortedByte(java.lang.String tableName,
java.lang.String fieldname,
int number)
getShortedByte in interface MMJdbc2NodeInterfacegetShortedByte in class MMSQL92Node
public java.lang.String getShortedText(java.lang.String tableName,
java.lang.String fieldname,
int number)
getShortedText in interface MMJdbc2NodeInterfacegetShortedText in class MMSQL92Node
public void setDBText(int i,
java.sql.PreparedStatement stmt,
java.lang.String body)
setDBText in class MMSQL92Nodei - parameterIndex - the first parameter is 1, the second is 2, ...stmt - PreparedStatement - holds a precompiled SQL statementbody - String that needs to be added to the statement
public void setDBClob(int i,
java.sql.PreparedStatement stmt,
java.lang.String body)
i - parameterIndex the first parameter is 1, the second one is 2, ...stmt - object that represents a precompiled SQL Statementbody - value that needs to be inserted/updated
public void setDBByte(int i,
java.sql.PreparedStatement stmt,
byte[] bytes)
setDBByte in interface MMJdbc2NodeInterfacesetDBByte in class MMSQL92Nodei - parameterIndex the first parameter is 1, the second one is 2, ...stmt - object that represents a precompiled SQL Statementbytes - bytearray that needs to be inserted/updated
public boolean commit(MMObjectBuilder bul,
MMObjectNode node)
commit in interface MMJdbc2NodeInterfacecommit in class MMSQL92Node
public void removeNode(MMObjectBuilder bul,
MMObjectNode node)
removeNode in interface MMJdbc2NodeInterfaceremoveNode in class MMSQL92Nodepublic int getDBKeyOld()
getDBKeyOld in class MMSQL92Nodepublic int getDBKey()
getDBKey in interface MMJdbc2NodeInterfacegetDBKey in class MMSQL92Nodeorg.mmbase.module.database.support.MMJdbc2NodeInterfacepublic java.util.Vector getAllNames()
public boolean addField(MMObjectBuilder bul,
java.lang.String fieldname)
addField in interface MMJdbc2NodeInterfaceaddField in class MMSQL92Node
public boolean removeField(MMObjectBuilder bul,
java.lang.String fieldname)
removeField in interface MMJdbc2NodeInterfaceremoveField in class MMSQL92Node
public boolean changeField(MMObjectBuilder bul,
java.lang.String fieldname)
changeField in interface MMJdbc2NodeInterfacechangeField in class MMSQL92Node
public boolean drop_real(MMObjectBuilder bul,
java.lang.String tableName)
MMSQL92Nodedrop_real in class MMSQL92Node
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||