Package org.dbwiki.data.provenance

Examples of org.dbwiki.data.provenance.ProvenanceUnknown


 
  public synchronized void deleteSchemaNode(ResourceIdentifier identifier, User user) throws org.dbwiki.exception.WikiException {
    Connection con = _connector.getConnection();

    SchemaNode schemaNode = _schema.get(((SchemaNodeIdentifier)identifier).nodeID());
    Version version = _versionIndex.getNextVersion(new ProvenanceUnknown(user));
   
    try {
      con.setAutoCommit(false);
      try {
        // delete all nodes whose types are schemaNode
View Full Code Here


  public synchronized void insertSchemaNode(GroupSchemaNode parent, String name, byte type, User user) throws org.dbwiki.exception.WikiException {
    if (!DatabaseSchema.isValidName(name)) {
      throw new WikiSchemaException(WikiSchemaException.SyntaxError, "Invalid element name " + name);
    }
   
    Version version = _versionIndex.getNextVersion(new ProvenanceUnknown(user));
   
    SchemaNode schema = null;
    if (type == SchemaNodeTypeAttribute) {
      if (_schema.size() == 0) {
        throw new WikiSchemaException(WikiSchemaException.InvalidSchemaType, "Schema root cannot be an attribute");
View Full Code Here

TOP

Related Classes of org.dbwiki.data.provenance.ProvenanceUnknown

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.