Package org.apache.ws.jaxme.sqls

Examples of org.apache.ws.jaxme.sqls.Schema$Name


                                BigInteger.valueOf(55L).toByteArray())
                            ));
            GeneralName san1 = new GeneralName(1, "rfc@822.Name");
            GeneralName san2 = new GeneralName(2, "dNSName");
            GeneralName san3 = new GeneralName(new ORAddress());
            GeneralName san4 = new GeneralName(new Name("O=Organization"));
            GeneralName san5 =
                new GeneralName(new EDIPartyName("assigner", "party"));
            GeneralName san6 = new GeneralName(6, "http://uniform.Resource.Id");
            GeneralName san7 = new GeneralName(new byte[] {1, 1, 1, 1});
            GeneralName san8 = new GeneralName(8, "1.2.3.4444.55555");
View Full Code Here


        X509CertSelector selector = new X509CertSelector();
        String subject = "O=Organization";
        X500Principal x500Subject = new X500Principal(subject);
        try {
            Name nameSubject = new Name(subject);
            for (int i=0; i<name_constraints.length; i++) {
                // make the subtrees (part of name constraints)
                // this subtrees will be used as permited and as excluded
                GeneralSubtree subtree =
                    new GeneralSubtree(name_constraints[i]);
View Full Code Here

        X509CertSelector selector = new X509CertSelector();
        String subject = "O=Organization";
        X500Principal x500Subject = new X500Principal(subject);
        try {
            Name nameSubject = new Name(subject);
            for (int i=0; i<name_constraints.length; i++) {
                // make the subtrees (part of name constraints)
                // this subtrees will be used as permited and as excluded
                GeneralSubtree subtree =
                    new GeneralSubtree(name_constraints[i]);
View Full Code Here

        X509CertSelector selector = new X509CertSelector();
        try {
            for (int i=0; i<variants.length; i++) {
                // make the names objects
                X500Principal subject = new X500Principal(variants[i][0]);
                Name subject_name = new Name(variants[i][0]);
                GeneralName alt_name = new GeneralName(4, variants[i][1]);
                // make the certificate to be checked
                GeneralNames alt_names_extension = new GeneralNames();
                alt_names_extension.addName(alt_name);
                TestCert certificate = new TestCert(alt_names_extension);
View Full Code Here

                                                        throws IOException {
        // make the TBSCertificate for Certificate
        int version = 2; //v3
        BigInteger serialNumber = BigInteger.valueOf(555L);
        AlgorithmIdentifier signature = new AlgorithmIdentifier("1.2.3.44.555");
        Name issuer = new Name("O=Certificate Issuer");
        Validity validity = new Validity(new Date(100000000),
                                         new Date(200000000));
        SubjectPublicKeyInfo subjectPublicKeyInfo =
            new SubjectPublicKeyInfo(
                    new AlgorithmIdentifier("1.2.840.113549.1.1.2"),
View Full Code Here

        throw new NullPointerException("Missing 'verColumn' attribute");
      }
      Column.Name columnName = new ColumnImpl.NameImpl(getVerColumn());

      SQLFactory factory = new SQLFactoryImpl();
      Schema sch = factory.getSchema(getConnection(), getSchema());

      VersionGenerator versionGenerator = new VersionGenerator();
      versionGenerator.setGeneratingLogging(isGeneratingLogging());
      boolean isFirstTable = true;

      for (Iterator iter = myTables.iterator();  iter.hasNext()) {
        String tableName = (String) iter.next();
        Table table = sch.getTable(tableName);
        if (table == null) {
          throw new IllegalArgumentException("Invalid table name: " + tableName);
        }

        VersionGenerator.ColumnUpdater columnUpdater;
View Full Code Here

    if (maxLength != null  &&
  pName.getName().length() > maxLength.intValue()) {
      throw new IllegalArgumentException("The length of the schema name " + pName +
           " exceeds the valid maximum of " + maxLength);
    }
    Schema schema = getSchema(pName);
    if (schema != null) {
      throw new IllegalStateException("A schema named " + schema.getName() + " already exists.")
    }
    schema = newSchemaImpl(pName);
    schemas.add(schema);
    return schema;
  }
View Full Code Here

  public Schema getSchema(Schema.Name pName) {
    if (pName == null) {
      throw new NullPointerException("A schema name must not be null.");
    }
    for (Iterator iter = getSchemas(); iter.hasNext();) {
      Schema schema = (Schema) iter.next();
      if (isSchemaNameCaseSensitive()) {
        if (pName.getName().equalsIgnoreCase(schema.getName().getName())) {
          return schema;
        }
      } else {
        if (pName.equals(schema.getName())) {
          return schema;
        }
      }
    }
    return null;
View Full Code Here

      }
    }
  }

  protected Schema makeSchema(Schema.Name pName) {
    Schema schema;
    if (pName == null) {
       schema = getDefaultSchema();
    } else {
       schema = getSchema(pName);
       if (schema == null) {
View Full Code Here

  public Schema getSchema(Connection pConn, Schema.Name pName) throws SQLException {
    final String mName = "getSchema(Connection,Schema.Name)";
    logger.finest(mName, "->", new Object[]{pConn, pName});

    Schema schema = makeSchema(pName);
    DatabaseMetaData metaData = pConn.getMetaData();
    JDBCTable[] tables = readTables(metaData, pName, null);
    for (int i = 0;  i < tables.length;  i++) {
      readTable(metaData, schema, tables[i]);
      readPrimaryKey(metaData, tables[i]);
View Full Code Here

TOP

Related Classes of org.apache.ws.jaxme.sqls.Schema$Name

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.