org.mmbase.module.database.support
Class Sql92WithViews

java.lang.Object
  extended byorg.mmbase.module.database.support.BaseJdbc2Node
      extended byorg.mmbase.module.database.support.Sql92SingleFields
          extended byorg.mmbase.module.database.support.Sql92WithViews
All Implemented Interfaces:
MMJdbc2NodeInterface, SearchQueryHandler

Deprecated. This code is scheduled for removal once MMBase has been fully converted to the new StorageManager implementation.

public class Sql92WithViews
extends Sql92SingleFields
implements MMJdbc2NodeInterface

Database driver with views driver for MMBase

Since:
MMBase-1.7
Version:
$Id: Sql92WithViews.java,v 1.6.2.1 2004/06/15 21:38:36 robmaris Exp $
Author:
Eduard Witteveen

Field Summary
 
Fields inherited from class org.mmbase.module.database.support.Sql92SingleFields
allowed2disallowed, disallowed2allowed, mmb
 
Fields inherited from interface org.mmbase.storage.search.SearchQueryHandler
FEATURE_MAX_NUMBER, FEATURE_OFFSET, SUPPORT_NONE, SUPPORT_NORMAL, SUPPORT_OPTIMAL, SUPPORT_WEAK
 
Constructor Summary
Sql92WithViews()
          Deprecated.  
 
Method Summary
 boolean addField(MMObjectBuilder bul, java.lang.String fieldname)
          Deprecated.  
 boolean changeField(MMObjectBuilder bul, java.lang.String fieldname)
          Deprecated.  
 boolean commit(MMObjectBuilder bul, MMObjectNode node)
          Deprecated. commit this node to the database
 boolean create(MMObjectBuilder bul)
          Deprecated.  
 boolean created(java.lang.String tableName)
          Deprecated. Tells if a table already exists
 boolean createObjectTable(java.lang.String notUsed)
          Deprecated. is next function nessecary?
protected  boolean createSequence()
          Deprecated.  
 java.lang.String getAllowedField(java.lang.String disallowedfield)
          Deprecated.  
protected  java.lang.String getDbFieldDef(FieldDefs def, MMObjectBuilder bul)
          Deprecated.  
 int getDBKey()
          Deprecated. Gives an unique number for a node to be inserted.
 java.lang.String getDisallowedField(java.lang.String allowedfield)
          Deprecated.  
protected  int insertRecord(MMObjectBuilder bul, java.lang.String owner, MMObjectNode node)
          Deprecated.  
 boolean removeField(MMObjectBuilder bul, java.lang.String fieldname)
          Deprecated.  
 void removeNode(MMObjectBuilder bul, MMObjectNode node)
          Deprecated.  
 
Methods inherited from class org.mmbase.module.database.support.Sql92SingleFields
changeMetaData, decodeDBnodeField, decodeDBnodeField, drop, getConnection, getDBByte, getDbFieldType, getDBText, getInheritBuilder, getInheritTableName, getMMNodeSearch2SQL, getNumberString, getOTypeString, getOwnerString, getShortedByte, getShortedText, init, insert, isAllowedParentBuilder, isBuilderField, isInheritedField, isReferenceField, numberCheckNameName, objectTableName, registerParentBuilder, sequenceTableName, setDBByte, setValuePreparedStatement, updateTable
 
Methods inherited from class org.mmbase.module.database.support.BaseJdbc2Node
getNodes, getSupportLevel, getSupportLevel, init
 
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
decodeDBnodeField, decodeDBnodeField, drop, getConnection, getDBByte, getDBText, getMMNodeSearch2SQL, getNumberString, getOTypeString, getOwnerString, getShortedByte, getShortedText, init, insert, isAllowedParentBuilder, registerParentBuilder, setDBByte, updateTable
 
Methods inherited from interface org.mmbase.storage.search.SearchQueryHandler
getNodes, getSupportLevel, getSupportLevel
 

Constructor Detail

Sql92WithViews

public Sql92WithViews()
Deprecated. 
Method Detail

createSequence

protected boolean createSequence()
Deprecated. 
Specified by:
createSequence in class Sql92SingleFields

create

public boolean create(MMObjectBuilder bul)
Deprecated. 
Specified by:
create in interface MMJdbc2NodeInterface
Specified by:
create in class Sql92SingleFields

getDbFieldDef

protected java.lang.String getDbFieldDef(FieldDefs def,
                                         MMObjectBuilder bul)
Deprecated. 
Specified by:
getDbFieldDef in class Sql92SingleFields

getDBKey

public int getDBKey()
Deprecated. 
Description copied from interface: MMJdbc2NodeInterface
Gives an unique number for a node to be inserted. This method should be implemneted to work with multiple mmbase instances working on the same storage.

Specified by:
getDBKey in interface MMJdbc2NodeInterface
Specified by:
getDBKey in class Sql92SingleFields
Returns:
a new unique number for new nodes or -1 on failure

removeNode

public void removeNode(MMObjectBuilder bul,
                       MMObjectNode node)
Deprecated. 
Specified by:
removeNode in interface MMJdbc2NodeInterface
Overrides:
removeNode in class Sql92SingleFields

insertRecord

protected int insertRecord(MMObjectBuilder bul,
                           java.lang.String owner,
                           MMObjectNode node)
Deprecated. 
Specified by:
insertRecord in class Sql92SingleFields

commit

public boolean commit(MMObjectBuilder bul,
                      MMObjectNode node)
Deprecated. 
Description copied from class: Sql92SingleFields
commit this node to the database

Specified by:
commit in interface MMJdbc2NodeInterface
Specified by:
commit in class Sql92SingleFields

created

public boolean created(java.lang.String tableName)
Deprecated. 
Description copied from interface: MMJdbc2NodeInterface
Tells if a table already exists

Specified by:
created in interface MMJdbc2NodeInterface
Overrides:
created in class Sql92SingleFields

getDisallowedField

public java.lang.String getDisallowedField(java.lang.String allowedfield)
Deprecated. 
Specified by:
getDisallowedField in interface MMJdbc2NodeInterface
Overrides:
getDisallowedField in class Sql92SingleFields

getAllowedField

public java.lang.String getAllowedField(java.lang.String disallowedfield)
Deprecated. 
Specified by:
getAllowedField in interface MMJdbc2NodeInterface
Overrides:
getAllowedField in class Sql92SingleFields

addField

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

removeField

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

changeField

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

createObjectTable

public boolean createObjectTable(java.lang.String notUsed)
Deprecated. 
Description copied from class: Sql92SingleFields
is next function nessecary?

Specified by:
createObjectTable in interface MMJdbc2NodeInterface
Overrides:
createObjectTable in class Sql92SingleFields


MMBase build 1.7.1.20041002