index int64 0 0 | repo_id stringlengths 9 205 | file_path stringlengths 31 246 | content stringlengths 1 12.2M | __index_level_0__ int64 0 10k |
|---|---|---|---|---|
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/UniqueConstraint.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({})
@Retention(RetentionPolicy.RUNTIME)
public @interface UniqueConstraint {
String[] columnNames();
}
| 200 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/PostLoad.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target( { ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface PostLoad {
} | 201 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/JoinColumns.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.ElementType;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface JoinColumns {
JoinColumn[] value();
}
| 202 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/LockModeType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
/**
* @version $Rev$ $Date$
*/
public enum LockModeType {
READ, WRITE
}
| 203 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/ManyToMany.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ManyToMany {
Class targetEntity() default void.class;
CascadeType[] cascade() default {};
FetchType fetch() default FetchType.LAZY;
String mappedBy() default "";
}
| 204 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/PersistenceUnits.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.ElementType;
/**
* @version $Rev$ $Date$
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface PersistenceUnits {
PersistenceUnit[] value();
}
| 205 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/SqlResultSetMapping.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface SqlResultSetMapping {
String name();
EntityResult[] entities() default {};
ColumnResult[] columns() default {};
}
| 206 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/PersistenceProperty.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({})
@Retention(RetentionPolicy.RUNTIME)
public @interface PersistenceProperty {
String name();
String value();
}
| 207 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/NonUniqueResultException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
/**
* @version $Rev$ $Date$
*/
public class NonUniqueResultException extends PersistenceException {
/**
*
*/
private static final long serialVersionUID = 8841586522747620836L;
public NonUniqueResultException() {
super();
}
public NonUniqueResultException(String message) {
super(message);
}
}
| 208 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/EntityNotFoundException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
/**
* @version $Rev$ $Date$
*/
public class EntityNotFoundException extends PersistenceException {
/**
*
*/
private static final long serialVersionUID = 737197424871374104L;
public EntityNotFoundException() {
super();
}
public EntityNotFoundException(String message) {
super(message);
}
}
| 209 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/InheritanceType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
/**
* @version $Rev$ $Date$
*/
public enum InheritanceType {
SINGLE_TABLE, JOINED, TABLE_PER_CLASS
};
| 210 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/Table.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.ElementType;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface Table {
String name() default "";
String catalog() default "";
String schema() default "";
UniqueConstraint[] uniqueConstraints() default {};
}
| 211 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/AssociationOverride.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface AssociationOverride {
String name();
JoinColumn[] joinColumns();
}
| 212 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/TemporalType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
/**
* @version $Rev$ $Date$
*/
public enum TemporalType {
DATE, TIME, TIMESTAMP
}
| 213 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/GenerationType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
/**
* @version $Rev$ $Date$
*/
public enum GenerationType {
TABLE, SEQUENCE, IDENTITY, AUTO
};
| 214 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/CascadeType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
/**
* @version $Rev$ $Date$
*/
public enum CascadeType {
ALL, PERSIST, MERGE, REMOVE, REFRESH};
| 215 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/NamedNativeQueries.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface NamedNativeQueries {
NamedNativeQuery[] value();
}
| 216 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/PostUpdate.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target( { ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface PostUpdate {
} | 217 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/OptimisticLockException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
public class OptimisticLockException extends PersistenceException {
private final Object entity;
public OptimisticLockException() {
this.entity = null;
}
public OptimisticLockException(Object entity){
super();
this.entity = entity;
}
public OptimisticLockException(String string) {
super(string);
this.entity = null;
}
public OptimisticLockException(String string, Throwable throwable) {
super(string, throwable);
this.entity = null;
}
public OptimisticLockException(String string, Throwable throwable, Object entity) {
super(string, throwable);
this.entity = entity;
}
public OptimisticLockException(Throwable throwable) {
super(throwable);
this.entity = null;
}
public Object getEntity() {
return entity;
}
}
| 218 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/ManyToOne.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ManyToOne {
Class targetEntity() default void.class;
CascadeType[] cascade() default {};
FetchType fetch() default FetchType.EAGER;
boolean optional() default true;
}
| 219 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/GeneratedValue.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.ElementType;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.METHOD, ElementType.FIELD}) @Retention(RetentionPolicy.RUNTIME)
public @interface GeneratedValue {
GenerationType strategy() default GenerationType.AUTO;
String generator() default "";
}
| 220 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/JoinTable.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface JoinTable {
String name() default "";
String catalog() default "";
String schema() default "";
JoinColumn[] joinColumns() default {};
JoinColumn[] inverseJoinColumns() default {};
UniqueConstraint[] uniqueConstraints() default {};
}
| 221 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/EmbeddedId.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.ElementType;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface EmbeddedId {
}
| 222 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/SecondaryTable.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.ElementType;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface SecondaryTable {
String name();
String catalog() default "";
String schema() default "";
PrimaryKeyJoinColumn[] pkJoinColumns() default {};
UniqueConstraint[] uniqueConstraints() default {};
}
| 223 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/NamedQueries.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface NamedQueries {
NamedQuery[] value();
}
| 224 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/Inheritance.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.ElementType;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface Inheritance {
InheritanceType strategy() default InheritanceType.SINGLE_TABLE;
}
| 225 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/SqlResultSetMappings.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @version $Revision$ $Date$
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface SqlResultSetMappings {
SqlResultSetMapping[] value();
}
| 226 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/NoResultException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
/**
* @version $Rev$ $Date$
*/
public class NoResultException extends PersistenceException {
/**
*
*/
private static final long serialVersionUID = 4123871304568481301L;
public NoResultException() {
super();
}
public NoResultException(String message) {
super(message);
}
}
| 227 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/Embedded.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Embedded {
}
| 228 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/Column.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Column {
String name() default "";
boolean unique() default false;
boolean nullable() default true;
boolean insertable() default true;
boolean updatable() default true;
String columnDefinition() default "";
String table() default "";
int length() default 255;
int precision() default 0;
int scale() default 0;
}
| 229 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/ColumnResult.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({})
@Retention(RetentionPolicy.RUNTIME)
public @interface ColumnResult {
String name();
}
| 230 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/PreRemove.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target( { ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface PreRemove {
} | 231 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/OneToOne.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface OneToOne {
Class targetEntity() default void.class;
CascadeType[] cascade() default {};
FetchType fetch() default FetchType.EAGER;
boolean optional() default true;
String mappedBy() default "";
}
| 232 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/EnumType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
/**
* @version $Rev$ $Date$
*/
public enum EnumType {
ORDINAL,
STRING
}
| 233 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/FlushModeType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
package javax.persistence;
/**
* @version $Rev$ $Date$
*/
public enum FlushModeType {
COMMIT, AUTO
}
| 234 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/Transient.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Transient {
}
| 235 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/ExcludeDefaultListeners.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target( { ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
public @interface ExcludeDefaultListeners {
}
| 236 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/AssociationOverrides.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @version $Revision$ $Date$
*/
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface AssociationOverrides {
AssociationOverride[] value();
}
| 237 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/PrePersist.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target( { ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface PrePersist {
} | 238 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/Query.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.util.Date;
import java.util.Calendar;
import java.util.List;
/**
* @version $Rev$ $Date$
*/
public interface Query {
public List getResultList();
public Object getSingleResult();
public int executeUpdate();
public Query setMaxResults(int maxResult);
public Query setFirstResult(int startPosition);
public Query setFlushMode(FlushModeType flushModeType);
public Query setHint(String hintName, Object value);
public Query setParameter(String name, Object value);
public Query setParameter(String name, Date value, TemporalType temporalType);
public Query setParameter(String name, Calendar value, TemporalType temporalType);
public Query setParameter(int position, Object value);
public Query setParameter(int position, Date value, TemporalType temporalType);
public Query setParameter(int position, Calendar value, TemporalType temporalType);
}
| 239 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/PersistenceException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
/**
* @version $Rev$ $Date$
*/
public class PersistenceException extends RuntimeException {
private static final long serialVersionUID = -8734504053550505412L;
public PersistenceException() {
super();
}
public PersistenceException(String string) {
super(string);
}
public PersistenceException(String string, Throwable throwable) {
super(string, throwable);
}
public PersistenceException(Throwable throwable) {
super(throwable);
}
}
| 240 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/SequenceGenerator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface SequenceGenerator {
String name();
String sequenceName() default "";
int initialValue() default 1;
int allocationSize() default 50;
}
| 241 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/Embeddable.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface Embeddable {
}
| 242 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/EntityTransaction.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
/**
* @version $Rev$ $Date$
*/
public interface EntityTransaction {
public void begin();
public void commit();
public void rollback();
public boolean isActive();
public void setRollbackOnly();
public boolean getRollbackOnly();
}
| 243 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/Enumerated.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Enumerated {
EnumType value() default EnumType.ORDINAL;
}
| 244 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/EntityResult.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({})
@Retention(RetentionPolicy.RUNTIME)
public @interface EntityResult {
Class entityClass();
FieldResult[] fields() default {};
String discriminatorColumn() default "";
}
| 245 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/QueryHint.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* @version $Rev$ $Date$
*/
@Target({})
@Retention(RetentionPolicy.RUNTIME)
public @interface QueryHint {
String name();
String value();
}
| 246 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/DiscriminatorType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
/**
* @version $Rev$ $Date$
*/
public enum DiscriminatorType {
STRING, CHAR, INTEGER };
| 247 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/TableGenerator.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface TableGenerator {
String name();
String table() default "";
String catalog() default "";
String schema() default "";
String pkColumnName() default "";
String valueColumnName() default "";
String pkColumnValue() default "";
int initialValue() default 0;
int allocationSize() default 50;
UniqueConstraint[] uniqueConstraints() default {};
}
| 248 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/MapKey.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface MapKey {
String name() default "";
}
| 249 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/ExcludeSuperclassListeners.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target( { ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
public @interface ExcludeSuperclassListeners {
}
| 250 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/MappedSuperclass.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.ElementType;
/**
* @version $Rev$ $Date$
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface MappedSuperclass {
}
| 251 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/PrimaryKeyJoinColumn.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface PrimaryKeyJoinColumn {
String name() default "";
String referencedColumnName() default "";
String columnDefinition() default "";
}
| 252 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/EntityManagerFactory.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.util.Map;
/**
* @version $Rev$ $Date$
*/
public interface EntityManagerFactory {
EntityManager createEntityManager();
EntityManager createEntityManager(Map map);
void close();
public boolean isOpen();
}
| 253 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/TransactionRequiredException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
/**
* @version $Rev$ $Date$
*/
public class TransactionRequiredException extends PersistenceException {
/**
*
*/
private static final long serialVersionUID = 2115931496795913403L;
public TransactionRequiredException() {
super();
}
public TransactionRequiredException(String string) {
super(string);
}
}
| 254 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/FieldResult.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({})
@Retention(RetentionPolicy.RUNTIME)
public @interface FieldResult {
String name();
String column();
}
| 255 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/Entity.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
public @interface Entity {
String name() default "";
} | 256 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/AttributeOverrides.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface AttributeOverrides {
AttributeOverride[] value();
}
| 257 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/SecondaryTables.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.ElementType;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface SecondaryTables {
SecondaryTable[] value();
}
| 258 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/PersistenceUnit.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface PersistenceUnit {
String name() default "";
String unitName() default "";
}
| 259 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/AttributeOverride.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface AttributeOverride {
String name();
Column column();
}
| 260 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/NamedNativeQuery.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface NamedNativeQuery {
String name();
String query();
QueryHint[] hints() default {};
Class resultClass() default void.class;
String resultSetMapping() default "";
}
| 261 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/DiscriminatorValue.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
public @interface DiscriminatorValue {
String value();
}
| 262 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/FetchType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
/**
* @version $Rev$ $Date$
*/
public enum FetchType {
LAZY, EAGER
};
| 263 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/Version.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Version {
}
| 264 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/PreUpdate.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target( { ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface PreUpdate {
} | 265 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/JoinColumn.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface JoinColumn {
String name() default "";
String referencedColumnName() default "";
boolean unique() default false;
boolean nullable() default true;
boolean insertable() default true;
boolean updatable() default true;
String columnDefinition() default "";
String table() default "";
}
| 266 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/EntityManager.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
/**
* @version $Rev$ $Date$
*/
public interface EntityManager {
public void persist(Object entity);
public <T> T merge(T entity);
public void remove(Object entity);
public <T> T find(Class<T> entityClass, Object primaryKey);
public <T> T getReference(Class<T> entityClass, Object primaryKey);
public void flush();
public void setFlushMode(FlushModeType flushMode);
public FlushModeType getFlushMode();
public void lock(Object entity, LockModeType lockMode);
public void refresh(Object entity);
public void clear();
public boolean contains(Object entity);
public Query createQuery(String ejbqlString);
public Query createNamedQuery(String name);
public Query createNativeQuery(String sqlString);
public Query createNativeQuery(String sqlString, Class resultClass);
public Query createNativeQuery(String sqlString, String resultSetMapping);
public void close();
public boolean isOpen();
public EntityTransaction getTransaction();
public void joinTransaction();
public Object getDelegate();
}
| 267 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/EntityListeners.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target( { ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
public @interface EntityListeners {
Class[] value();
} | 268 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/PostPersist.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence;
import java.lang.annotation.Target;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target( { ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
public @interface PostPersist {
}
| 269 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/spi/ClassTransformer.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add/change/or delete method signatures!
//
package javax.persistence.spi;
import java.security.ProtectionDomain;
import java.lang.instrument.IllegalClassFormatException;
/**
* @version $Rev$ $Date$
*/
public interface ClassTransformer {
/**
* Invoked when a class is being loaded or redefined. The implementation of this
* method may transform the supplied class file and return a new replacement class
* file.
*
* @param loader The defining loader of the class to be transformed, may be null if
* the bootstrap loader
* @param className The name of the class in the internal form of fully qualified
* class and interface names
* @param classBeingRedefined If this is a redefine, the class being redefined,
* otherwise null
* @param protectionDomain The protection domain of the class being defined or
* redefined
* @param classfileBuffer The input byte buffer in class file format - must not be
* modified
* @return A well-formed class file buffer (the result of the transform), or null if
* no transform is performed
* @throws java.lang.instrument.IllegalClassFormatException
* If the input does not represent a well-formed
* class file
*/
byte[] transform(
ClassLoader loader,
String className,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer) throws IllegalClassFormatException;
}
| 270 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/spi/PersistenceUnitInfo.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence.spi;
import java.net.URL;
import java.util.List;
import java.util.Properties;
import javax.sql.DataSource;
/**
* @version $Rev$ $Date$
*/
public interface PersistenceUnitInfo {
public String getPersistenceUnitName();
public String getPersistenceProviderClassName();
public PersistenceUnitTransactionType getTransactionType();
public DataSource getJtaDataSource();
public DataSource getNonJtaDataSource();
public List<String> getMappingFileNames();
public List<URL> getJarFileUrls();
public URL getPersistenceUnitRootUrl();
public List<String> getManagedClassNames();
public boolean excludeUnlistedClasses();
public Properties getProperties();
public ClassLoader getClassLoader();
public void addTransformer(ClassTransformer transformer);
public ClassLoader getNewTempClassLoader();
}
| 271 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/spi/PersistenceProvider.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence.spi;
import javax.persistence.EntityManagerFactory;
import java.util.Map;
/**
* @version $Rev$ $Date$
*/
public interface PersistenceProvider {
public EntityManagerFactory createEntityManagerFactory(String emName, Map map);
public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map map);
}
| 272 |
0 | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence | Create_ds/geronimo-specs/geronimo-jpa_1.0_spec/src/main/java/javax/persistence/spi/PersistenceUnitTransactionType.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.persistence.spi;
/**
* @version $Rev$ $Date$
*/
public enum PersistenceUnitTransactionType {
JTA, RESOURCE_LOCAL
} | 273 |
0 | Create_ds/geronimo-specs/geronimo-interceptor_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-interceptor_3.0_spec/src/main/java/javax/interceptor/AroundInvoke.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.interceptor;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface AroundInvoke {
}
| 274 |
0 | Create_ds/geronimo-specs/geronimo-interceptor_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-interceptor_3.0_spec/src/main/java/javax/interceptor/ExcludeClassInterceptors.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.interceptor;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ExcludeClassInterceptors {
}
| 275 |
0 | Create_ds/geronimo-specs/geronimo-interceptor_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-interceptor_3.0_spec/src/main/java/javax/interceptor/InvocationContext.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.interceptor;
import java.lang.reflect.Method;
/**
* @version $Rev$ $Date$
*/
public interface InvocationContext {
public Object getTarget();
public Method getMethod();
public Object[] getParameters();
public void setParameters(Object[] parameters);
public java.util.Map<String,Object> getContextData();
public Object proceed() throws Exception;
}
| 276 |
0 | Create_ds/geronimo-specs/geronimo-interceptor_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-interceptor_3.0_spec/src/main/java/javax/interceptor/Interceptors.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.interceptor;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Interceptors {
Class[] value();
}
| 277 |
0 | Create_ds/geronimo-specs/geronimo-interceptor_3.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-interceptor_3.0_spec/src/main/java/javax/interceptor/ExcludeDefaultInterceptors.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.interceptor;
import java.lang.annotation.Target;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* @version $Rev$ $Date$
*/
@Target({ElementType.TYPE, ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ExcludeDefaultInterceptors {
}
| 278 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax/jms/MessageNotReadableExceptionTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class MessageNotReadableExceptionTest extends TestCase {
public void testConstructorNull() {
MessageNotReadableException ex = new MessageNotReadableException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
MessageNotReadableException ex = new MessageNotReadableException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
MessageNotReadableException ex = new MessageNotReadableException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
MessageNotReadableException ex = new MessageNotReadableException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
MessageNotReadableException ex = new MessageNotReadableException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
MessageNotReadableException ex = new MessageNotReadableException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
| 279 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax/jms/MessageFormatExceptionTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class MessageFormatExceptionTest extends TestCase {
public void testConstructorNull() {
MessageFormatException ex = new MessageFormatException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
MessageFormatException ex = new MessageFormatException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
MessageFormatException ex = new MessageFormatException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
MessageFormatException ex = new MessageFormatException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
MessageFormatException ex = new MessageFormatException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
MessageFormatException ex = new MessageFormatException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
| 280 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax/jms/TopicRequestorTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import com.mockobjects.jms.MockTopic;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class TopicRequestorTest extends TestCase {
public void testConstructorNullTopic() {
MockTopic topic = new MockTopic();
try {
new TopicRequestor(null, topic);
fail();
} catch (JMSException ex) {
fail("JMSException should not have been thrown.");
} catch (NullPointerException ex) {
// success.
}
topic.verify();
}
}
| 281 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax/jms/InvalidSelectorExceptionTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class InvalidSelectorExceptionTest extends TestCase {
public void testConstructorNull() {
InvalidSelectorException ex = new InvalidSelectorException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
InvalidSelectorException ex = new InvalidSelectorException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
InvalidSelectorException ex = new InvalidSelectorException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
InvalidSelectorException ex = new InvalidSelectorException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
InvalidSelectorException ex = new InvalidSelectorException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
InvalidSelectorException ex = new InvalidSelectorException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
| 282 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax/jms/InvalidDestinationExceptionTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class InvalidDestinationExceptionTest extends TestCase {
public void testConstructorNull() {
InvalidDestinationException ex = new InvalidDestinationException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
InvalidDestinationException ex = new InvalidDestinationException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
InvalidDestinationException ex = new InvalidDestinationException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
InvalidDestinationException ex = new InvalidDestinationException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
InvalidDestinationException ex = new InvalidDestinationException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
InvalidDestinationException ex = new InvalidDestinationException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
| 283 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax/jms/MessageNotWriteableExceptionTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class MessageNotWriteableExceptionTest extends TestCase {
public void testConstructorNull() {
MessageNotWriteableException ex = new MessageNotWriteableException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
MessageNotWriteableException ex = new MessageNotWriteableException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
MessageNotWriteableException ex = new MessageNotWriteableException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
MessageNotWriteableException ex = new MessageNotWriteableException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
MessageNotWriteableException ex = new MessageNotWriteableException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
MessageNotWriteableException ex = new MessageNotWriteableException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
| 284 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax/jms/TransactionInProgressExceptionTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class TransactionInProgressExceptionTest extends TestCase {
public void testConstructorNull() {
TransactionInProgressException ex = new TransactionInProgressException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
TransactionInProgressException ex = new TransactionInProgressException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
TransactionInProgressException ex = new TransactionInProgressException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
TransactionInProgressException ex = new TransactionInProgressException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
TransactionInProgressException ex = new TransactionInProgressException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
TransactionInProgressException ex = new TransactionInProgressException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
| 285 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax/jms/IllegalStateExceptionTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class IllegalStateExceptionTest extends TestCase {
public void testConstructorNull() {
IllegalStateException ex = new IllegalStateException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
IllegalStateException ex = new IllegalStateException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
IllegalStateException ex = new IllegalStateException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
IllegalStateException ex = new IllegalStateException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
IllegalStateException ex = new IllegalStateException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
IllegalStateException ex = new IllegalStateException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
| 286 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax/jms/JMSExceptionTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class JMSExceptionTest extends TestCase {
public void testConstructorNull() {
JMSException ex = new JMSException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
JMSException ex = new JMSException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
JMSException ex = new JMSException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
JMSException ex = new JMSException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
JMSException ex = new JMSException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
JMSException ex = new JMSException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testSetLinkedException() {
Exception expected = new Exception();
JMSException ex = new JMSException(null);
ex.setLinkedException(expected);
assertEquals(expected, ex.getLinkedException());
}
}
| 287 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax/jms/QueueRequestorTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import com.mockobjects.jms.MockMessage;
import com.mockobjects.jms.MockQueue;
import com.mockobjects.jms.MockQueueReceiver;
import com.mockobjects.jms.MockQueueSender;
import com.mockobjects.jms.MockQueueSession;
import com.mockobjects.jms.MockTemporaryQueue;
import com.mockobjects.jms.MockTextMessage;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class QueueRequestorTest extends TestCase {
public void testConstructorNullQueue() {
MockQueue queue = new MockQueue();
try {
new QueueRequestor(null, queue);
fail();
} catch (JMSException ex) {
fail("JMSException should not have been thrown.");
} catch (NullPointerException ex) {
// success.
}
queue.verify();
}
public void testConstructorSessionNull() {
MockQueueSession session = new MockQueueSession();
try {
new QueueRequestor(session, null);
fail();
} catch (JMSException ex) {
// success
}
session.verify();
}
public void testConstructorSessionQueue() {
MockQueue queue = new MockQueue();
MockQueueReceiver receiver = new MockQueueReceiver();
MockQueueSender sender = new MockQueueSender();
MockQueueSession session = new MockQueueSession();
MockTemporaryQueue tempQueue = new MockTemporaryQueue();
session.setupReceiver(receiver);
session.setupSender(sender);
session.setupTemporaryQueue(tempQueue);
try {
new QueueRequestor(session, queue);
// success
} catch (JMSException ex) {
fail();
}
queue.verify();
receiver.verify();
sender.verify();
session.verify();
tempQueue.verify();
}
public void testRequestNull() {
MockQueue queue = new MockQueue();
MockQueueReceiver receiver = new MockQueueReceiver();
MockQueueSender sender = new MockQueueSender();
MockQueueSession session = new MockQueueSession();
MockTemporaryQueue tempQueue = new MockTemporaryQueue();
session.setupReceiver(receiver);
session.setupSender(sender);
session.setupTemporaryQueue(tempQueue);
try {
QueueRequestor requestor = new QueueRequestor(session, queue);
requestor.request(null);
fail();
} catch (JMSException ex) {
fail("JMSException should not have been thrown.");
} catch (NullPointerException ex) {
// success
}
queue.verify();
receiver.verify();
sender.verify();
session.verify();
tempQueue.verify();
}
public void testRequestMessage() {
MockMessage reply = new MockTextMessage();
MockMessage request = new MockTextMessage();
MockQueue queue = new MockQueue();
MockQueueReceiver receiver = new MockQueueReceiver();
MockQueueSender sender = new MockQueueSender();
MockQueueSession session = new MockQueueSession();
MockTemporaryQueue tempQueue = new MockTemporaryQueue();
request.setExpectedJMSReplyTo(tempQueue);
receiver.setExpectedReceiveCalls(1);
receiver.setupReceivedMessage(reply);
sender.setExpectedSendCalls(1);
session.setupReceiver(receiver);
session.setupSender(sender);
session.setupTemporaryQueue(tempQueue);
try {
QueueRequestor requestor = new QueueRequestor(session, queue);
Message jmsReply = requestor.request(request);
assertEquals(jmsReply, reply);
} catch (JMSException ex) {
fail("JMSException should not have been thrown.");
}
reply.verify();
request.verify();
queue.verify();
receiver.verify();
sender.verify();
session.verify();
tempQueue.verify();
}
public void testClose() {
MockQueue queue = new MockQueue();
MockQueueReceiver receiver = new MockQueueReceiver();
MockQueueSender sender = new MockQueueSender();
MockQueueSession session = new MockQueueSession();
MockTemporaryQueue tempQueue = new MockTemporaryQueue();
session.setExpectedCloseCalls(1);
session.setupReceiver(receiver);
session.setupSender(sender);
session.setupTemporaryQueue(tempQueue);
tempQueue.setExpectedDeleteCalls(1);
try {
QueueRequestor requestor = new QueueRequestor(session, queue);
requestor.close();
} catch (JMSException ex) {
fail();
}
queue.verify();
receiver.verify();
sender.verify();
session.verify();
tempQueue.verify();
}
}
| 288 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax/jms/InvalidClientIDExceptionTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class InvalidClientIDExceptionTest extends TestCase {
public void testConstructorNull() {
InvalidClientIDException ex = new InvalidClientIDException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
InvalidClientIDException ex = new InvalidClientIDException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
InvalidClientIDException ex = new InvalidClientIDException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
InvalidClientIDException ex = new InvalidClientIDException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
InvalidClientIDException ex = new InvalidClientIDException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
InvalidClientIDException ex = new InvalidClientIDException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
| 289 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax/jms/TransactionRolledBackExceptionTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class TransactionRolledBackExceptionTest extends TestCase {
public void testConstructorNull() {
TransactionRolledBackException ex = new TransactionRolledBackException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
TransactionRolledBackException ex = new TransactionRolledBackException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
TransactionRolledBackException ex = new TransactionRolledBackException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
TransactionRolledBackException ex = new TransactionRolledBackException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
TransactionRolledBackException ex = new TransactionRolledBackException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
TransactionRolledBackException ex = new TransactionRolledBackException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
| 290 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax/jms/ResourceAllocationExceptionTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class ResourceAllocationExceptionTest extends TestCase {
public void testConstructorNull() {
ResourceAllocationException ex = new ResourceAllocationException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
ResourceAllocationException ex = new ResourceAllocationException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
ResourceAllocationException ex = new ResourceAllocationException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
ResourceAllocationException ex = new ResourceAllocationException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
ResourceAllocationException ex = new ResourceAllocationException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
ResourceAllocationException ex = new ResourceAllocationException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
| 291 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax/jms/MessageEOFExceptionTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class MessageEOFExceptionTest extends TestCase {
public void testConstructorNull() {
MessageEOFException ex = new MessageEOFException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
MessageEOFException ex = new MessageEOFException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
MessageEOFException ex = new MessageEOFException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
MessageEOFException ex = new MessageEOFException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
MessageEOFException ex = new MessageEOFException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
MessageEOFException ex = new MessageEOFException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
| 292 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/test/java/javax/jms/JMSSecurityExceptionTest.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import junit.framework.TestCase;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class JMSSecurityExceptionTest extends TestCase {
public void testConstructorNull() {
JMSSecurityException ex = new JMSSecurityException(null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullNull() {
JMSSecurityException ex = new JMSSecurityException(null, null);
assertNull(ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorNullString() {
String expected = "some code";
JMSSecurityException ex = new JMSSecurityException(null, expected);
assertNull(ex.getMessage());
assertEquals(expected, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorString() {
String expected = "some message";
JMSSecurityException ex = new JMSSecurityException(expected);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringNull() {
String expected = "some message";
JMSSecurityException ex = new JMSSecurityException(expected, null);
assertEquals(expected, ex.getMessage());
assertNull(ex.getErrorCode());
assertNull(ex.getLinkedException());
}
public void testConstructorStringString() {
String expectedMessage = "some message";
String expectedCode = "some code";
JMSSecurityException ex = new JMSSecurityException(expectedMessage, expectedCode);
assertEquals(expectedMessage, ex.getMessage());
assertEquals(expectedCode, ex.getErrorCode());
assertNull(ex.getLinkedException());
}
}
| 293 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/XAJMSContext.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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 javax.jms;
import javax.transaction.xa.XAResource;
public interface XAJMSContext extends JMSContext {
void commit();
JMSContext getContext();
boolean getTransacted();
XAResource getXAResource();
void rollback();
} | 294 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/IllegalStateRuntimeException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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 javax.jms;
public class IllegalStateRuntimeException extends JMSRuntimeException {
public IllegalStateRuntimeException(String message) {
super(message);
}
public IllegalStateRuntimeException(String message, String errorCode) {
super(message, errorCode);
}
public IllegalStateRuntimeException(String message, String errorCode, Throwable cause) {
super(message, errorCode, cause);
}
}
| 295 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/TopicSession.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface TopicSession extends Session {
Topic createTopic(String topicName) throws JMSException;
TopicSubscriber createSubscriber(Topic topic) throws JMSException;
TopicSubscriber createSubscriber(
Topic topic,
String messageSelector,
boolean noLocal)
throws JMSException;
TopicSubscriber createDurableSubscriber(Topic topic, String name)
throws JMSException;
TopicSubscriber createDurableSubscriber(
Topic topic,
String name,
String messageSelector,
boolean noLocal)
throws JMSException;
TopicPublisher createPublisher(Topic topic) throws JMSException;
TemporaryTopic createTemporaryTopic() throws JMSException;
void unsubscribe(String name) throws JMSException;
}
| 296 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/InvalidSelectorRuntimeException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
public class InvalidSelectorRuntimeException extends JMSRuntimeException {
public InvalidSelectorRuntimeException(String message) {
super(message);
}
public InvalidSelectorRuntimeException(String message, String errorCode) {
super(message, errorCode);
}
public InvalidSelectorRuntimeException(String message, String errorCode, Throwable cause) {
super(message, errorCode, cause);
}
}
| 297 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/IllegalStateException.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public class IllegalStateException extends JMSException {
public IllegalStateException(String reason, String errorCode) {
super(reason, errorCode);
}
public IllegalStateException(String reason) {
this(reason, null);
}
}
| 298 |
0 | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax | Create_ds/geronimo-specs/geronimo-jms_2.0_spec/src/main/java/javax/jms/Message.java | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*/
//
// This source code implements specifications defined by the Java
// Community Process. In order to remain compliant with the specification
// DO NOT add / change / or delete method signatures!
//
package javax.jms;
import java.util.Enumeration;
/**
* @version $Rev: 467553 $ $Date: 2006-10-25 00:01:51 -0400 (Wed, 25 Oct 2006) $
*/
public interface Message {
static final int DEFAULT_DELIVERY_MODE = DeliveryMode.PERSISTENT;
static final int DEFAULT_PRIORITY = 4;
static final long DEFAULT_TIME_TO_LIVE = 0;
static final long DEFAULT_DELIVERY_DELAY = 0l;
String getJMSMessageID() throws JMSException;
void setJMSMessageID(String id) throws JMSException;
long getJMSTimestamp() throws JMSException;
void setJMSTimestamp(long timestamp) throws JMSException;
byte[] getJMSCorrelationIDAsBytes() throws JMSException;
void setJMSCorrelationIDAsBytes(byte[] correlationID) throws JMSException;
void setJMSCorrelationID(String correlationID) throws JMSException;
String getJMSCorrelationID() throws JMSException;
Destination getJMSReplyTo() throws JMSException;
void setJMSReplyTo(Destination replyTo) throws JMSException;
Destination getJMSDestination() throws JMSException;
void setJMSDestination(Destination destination) throws JMSException;
int getJMSDeliveryMode() throws JMSException;
void setJMSDeliveryMode(int deliveryMode) throws JMSException;
boolean getJMSRedelivered() throws JMSException;
void setJMSRedelivered(boolean redelivered) throws JMSException;
String getJMSType() throws JMSException;
void setJMSType(String type) throws JMSException;
long getJMSExpiration() throws JMSException;
void setJMSExpiration(long expiration) throws JMSException;
int getJMSPriority() throws JMSException;
void setJMSPriority(int priority) throws JMSException;
void clearProperties() throws JMSException;
boolean propertyExists(String name) throws JMSException;
boolean getBooleanProperty(String name) throws JMSException;
byte getByteProperty(String name) throws JMSException;
short getShortProperty(String name) throws JMSException;
int getIntProperty(String name) throws JMSException;
long getLongProperty(String name) throws JMSException;
float getFloatProperty(String name) throws JMSException;
double getDoubleProperty(String name) throws JMSException;
String getStringProperty(String name) throws JMSException;
Object getObjectProperty(String name) throws JMSException;
Enumeration getPropertyNames() throws JMSException;
void setBooleanProperty(String name, boolean value) throws JMSException;
void setByteProperty(String name, byte value) throws JMSException;
void setShortProperty(String name, short value) throws JMSException;
void setIntProperty(String name, int value) throws JMSException;
void setLongProperty(String name, long value) throws JMSException;
void setFloatProperty(String name, float value) throws JMSException;
void setDoubleProperty(String name, double value) throws JMSException;
void setStringProperty(String name, String value) throws JMSException;
void setObjectProperty(String name, Object value) throws JMSException;
void acknowledge() throws JMSException;
void clearBody() throws JMSException;
long getJMSDeliveryTime() throws JMSException;
void setJMSDeliveryTime(long deliveryTime) throws JMSException;
<T> T getBody(Class<T> c) throws JMSException;
boolean isBodyAssignableTo(Class c) throws JMSException;
}
| 299 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.