Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
SIX OVAL - Copyright (C) 2010 National Institute of Advanced Industrial Science and Technology (AIST) Registration Number: H22PRO-1124 Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
package jp.go.aist.six.oval.core.repository.morphia.variables;

Akihito Nakamura, AIST
$Id: 3110 2013-04-26 10:41:44Z $
public class OvalVariablesDAO
    extends BaseDAO<OvalVariablesString>

    public OvalVariablesDAO(
                    final Datastore ds
        superOvalVariables.classds );
    //  DAO
    public Key<OvalVariablessave(
                    final OvalVariables oval_variables
        String  pid = oval_variables.getPersistentID();
        if (pid == null) {
            pid = UUID.randomUUID().toString();
            oval_variables.setPersistentIDpid );
        VariablesType  variables = oval_variables.getVariables();
        if (variables != null) {
            DAO<VariableTypeString>  dao = _getForwardingDAOVariableType.class );
            for (VariableType  variable : variables.getVariable()) {
//                variable.ovalSetGenerator( oval_variables.getGenerator() );
                dao.savevariable );
        return super.saveoval_variables );
New to GrepCode? Check out our FAQ X