32 lines
1.1 KiB
Groovy
32 lines
1.1 KiB
Groovy
/*******************************************************************************
|
|
* Copyright (c) 2012 IT Just working.
|
|
* All rights reserved. This program and the accompanying materials
|
|
* are made available under the terms of the Eclipse Public License v1.0
|
|
* which accompanies this distribution, and is available at
|
|
* http://www.eclipse.org/legal/epl-v10.html
|
|
*
|
|
* Contributors:
|
|
* IT Just working - initial API and implementation
|
|
*******************************************************************************/
|
|
package com.minres.scviewer.database.text
|
|
|
|
import com.minres.scviewer.database.AssociationType;
|
|
import com.minres.scviewer.database.DataType;
|
|
import com.minres.scviewer.database.ITxAttributeType;
|
|
|
|
class TxAttributeType implements ITxAttributeType {
|
|
String name
|
|
DataType dataType
|
|
AssociationType type
|
|
|
|
static TxAttributeType getAttrType(String name, DataType dataType, AssociationType type){
|
|
TxAttributeTypeFactory.instance.getAttrType(name, dataType, type)
|
|
}
|
|
|
|
TxAttributeType(String name, DataType dataType, AssociationType type){
|
|
this.name=name
|
|
this.dataType=dataType
|
|
this.type=type
|
|
}
|
|
}
|