Examples of validate()


Examples of org.hibernate.hql.ast.tree.InsertStatement.validate()

            || PostInsertIdentifierGenerator.class.isAssignableFrom( generator.getClass() );
  }

  protected void postProcessInsert(AST insert) throws SemanticException, QueryException {
    InsertStatement insertStatement = ( InsertStatement ) insert;
    insertStatement.validate();

    SelectClause selectClause = insertStatement.getSelectClause();
    Queryable persister = insertStatement.getIntoClause().getQueryable();

    if ( !insertStatement.getIntoClause().isExplicitIdInsertion() ) {
View Full Code Here

Examples of org.hibernate.hql.internal.ast.tree.InsertStatement.validate()

  }

  @Override
  protected void postProcessInsert(AST insert) throws SemanticException, QueryException {
    InsertStatement insertStatement = (InsertStatement) insert;
    insertStatement.validate();

    SelectClause selectClause = insertStatement.getSelectClause();
    Queryable persister = insertStatement.getIntoClause().getQueryable();

    if ( !insertStatement.getIntoClause().isExplicitIdInsertion() ) {
View Full Code Here

Examples of org.hibernate.tool.hbm2ddl.SchemaValidator.validate()

   
    // we can run schema validation. Note that in the setUp method a *wrong* table
    // has been created with different column names
    // if schema validator chooses the bad db schema, then the testcase will fail (exception)
    SchemaValidator sv = new SchemaValidator(getCfg());
    sv.validate();
   
    // it's time to clean our database
    se.drop(true,true);
   
    // then the schemas and false table.
View Full Code Here

Examples of org.hivedb.util.GetOpt.validate()

    opt.add("db", true);
    opt.add("user", true);
    opt.add("pw", true);

    Map<String, String> argMap = opt.toMap(argz);
    if (!opt.validate())
      throw new IllegalArgumentException(
        "Usage: java -jar hivedb-installer.jar -host <host> -db <database name> -user <username> -pw <password>");
    else {
      try {
        //Tickle driver
View Full Code Here

Examples of org.hornetq.jms.server.impl.JMSServerDeployer.validate()

      JMSServerDeployer deployer = new JMSServerDeployer(jmsServer, deploymentManager);

      String xml = "<configuration xmlns='urn:hornetq'> " + "</configuration>";

      Element rootNode = org.hornetq.utils.XMLUtil.stringToElement(xml);
      deployer.validate(rootNode);
   }

   public void testDeployUnusualQueueNames() throws Exception
   {
      doTestDeployQueuesWithUnusualNames("queue.with.dots.in.name", "/myqueue");
View Full Code Here

Examples of org.impalaframework.command.framework.CommandInfo.validate()

        CommandDefinition commandDefinition = command.getCommandDefinition();
        assertEquals(1, commandDefinition.getCommandInfos().size());
        CommandInfo ci = commandDefinition.getCommandInfos().get(0);
       
        String numberErrorMessage = "Invalid Selection. Selected number does not correspond with one of the values.\nPlease select a number between 1 and 2";
        assertEquals(numberErrorMessage, ci.validate("-1"));
        assertEquals(numberErrorMessage, ci.validate("3"));
       
        String alphaErrorMessage = "Invalid Selection. Please select a number corresponding with one of the alternative choices";
        assertEquals(alphaErrorMessage , ci.validate("a value"));
        assertEquals(null, ci.validate("2"));
View Full Code Here

Examples of org.infinispan.persistence.rest.configuration.RestStoreConfigurationBuilder.validate()

      RestStoreConfigurationBuilder storeConfigurationBuilder = TestCacheManagerFactory.getDefaultCacheConfiguration(false).persistence()
            .addStore(RestStoreConfigurationBuilder.class);
      storeConfigurationBuilder.host(restServer.getHost()).port(restServer.getPort()).path("/rest/" + REMOTE_CACHE);
      storeConfigurationBuilder.connectionPool().maxTotalConnections(10).maxConnectionsPerHost(10);
      storeConfigurationBuilder.validate();
      RestStore restStore = new RestStore();
      restStore.init(new DummyInitializationContext(storeConfigurationBuilder.create(), getCache(), getMarshaller(),
                                                    new ByteBufferFactoryImpl(), new MarshalledEntryFactoryImpl(getMarshaller())));
      InternalEntryFactoryImpl iceFactory = new InternalEntryFactoryImpl();
      iceFactory.injectTimeService(TIME_SERVICE);
View Full Code Here

Examples of org.infoglue.cms.entities.content.ContentVO.validate()

  {
    super.initialize(getContentId());

    ContentVO oldContentVO = ContentController.getContentController().getContentVOWithId(getContentId());

    ceb = oldContentVO.validate();
   
    ceb.throwIfNotEmpty();

      ContentControllerProxy.getController().acUpdate(this.getInfoGluePrincipal(), oldContentVO, this.newContentTypeDefinitionId);
View Full Code Here

Examples of org.infoglue.cms.util.validators.EmailValidator.validate()

              v.setIsRequired(cr.required);
              v.setMustBeUnique(cr.unique);
              v.setExcludeId(intId);

            // Do the limbo
              v.validate((String) cr.getValue(), ceb);
             
              // <todo>
              // Note: the actual value validated should be extracted
              // from the vo using the fieldname with reflection.
              // </todo>
View Full Code Here

Examples of org.infoglue.cms.util.validators.StringValidator.validate()

              v.setRange(cr.getValidRange());
              v.setIsRequired(cr.required);
              v.setMustBeUnique(cr.unique);
              v.setExcludeId(intId);

              v.validate((String) cr.getValue(), ceb);
          }             
            break;
          }
          case Constants.FLOAT:
          {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.