newSharedObjects.remove( i ); } else { elementToUpdate.setObjectId( idToFind ); // because some clones don't clone the ID!!! newSharedObjects.set( i, (SharedObjectInterface) elementToUpdate ); elementToUpdate.setObjectId( idToFind ); // because some clones don't clone the ID!!! newSharedObjects.add( (SharedObjectInterface) elementToUpdate );
protected void savePartitionSchema( final RepositoryElementInterface element, final String versionComment, Calendar versionDate ) { try { // Even if the object id is null, we still have to check if the element is not present in the PUR // For example, if we import data from an XML file and there is a element with the same name in it. // if ( element.getObjectId() == null ) { element.setObjectId( getPartitionSchemaID( element.getName() ) ); } saveRepositoryElement( element, versionComment, partitionSchemaTransformer, getPartitionSchemaParentFolderId() ); } catch ( KettleException ke ) { ke.printStackTrace(); } }
protected void saveSlaveServer( final RepositoryElementInterface element, final String versionComment, Calendar versionDate ) throws KettleException { try { // Even if the object id is null, we still have to check if the element is not present in the PUR // For example, if we import data from an XML file and there is a element with the same name in it. // if ( element.getObjectId() == null ) { element.setObjectId( getSlaveID( element.getName() ) ); } saveRepositoryElement( element, versionComment, slaveTransformer, getSlaveServerParentFolderId() ); } catch ( KettleException ke ) { ke.printStackTrace(); } }
protected void saveClusterSchema( final RepositoryElementInterface element, final String versionComment, Calendar versionDate ) { try { // Even if the object id is null, we still have to check if the element is not present in the PUR // For example, if we import data from an XML file and there is a element with the same name in it. // if ( element.getObjectId() == null ) { element.setObjectId( getClusterID( element.getName() ) ); } saveRepositoryElement( element, versionComment, clusterTransformer, getClusterSchemaParentFolderId() ); } catch ( KettleException ke ) { ke.printStackTrace(); } }
repositoryElement.setObjectId( objectId );
element.setObjectId( getDatabaseID( element.getName() ) ); element.setObjectId( objectId ); element.setObjectRevision( getObjectRevision( objectId, null ) ); if ( element instanceof ChangedFlagInterface ) {
element.setObjectId( objectId ); if ( loadRevision ) { element.setObjectRevision( getObjectRevision( objectId, null ) );
element.setObjectId( objectId ); element.setObjectRevision( getObjectRevision( objectId, null ) ); if ( element instanceof ChangedFlagInterface ) {